# JamiiForums Discussions (`thescrapelab/jamiiforums-discussions`) Actor

Export original posts from public JamiiForums boards and threads as JSON or CSV. Follow discussion links, quoted replies and displayed organization attribution.

- **URL**: https://apify.com/thescrapelab/jamiiforums-discussions.md
- **Developed by:** [Inus Grobler](https://apify.com/thescrapelab) (community)
- **Categories:** Social media
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$1.00 / 1,000 written posts

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## JamiiForums Discussions

Scrape written posts from a public JamiiForums board or discussion into JSON or CSV. The dataset links quoted posts and shows organization attribution where JamiiForums provides it. Media analysts, telecom teams, and public-service researchers can review questions alongside an organization's published answers.

### Quick start

Enter one public JamiiForums URL. The default limit is 10 written posts. Use JamiiForums content only when your collection and reuse are authorized.

```json
{
  "startUrl": "https://www.jamiiforums.com/forums/tech-gadgets-science-forum.20/",
  "maxResults": 10
}
```

| Input | How it works |
| --- | --- |
| `startUrl` | Required. A public board or discussion URL. A numbered discussion page starts there and continues forward. |
| `maxResults` | Optional. The maximum number of unique written posts, from 1 to 1,000. |

Board runs discover listed threads and follow ordinary public pagination. The run reports why it stopped, including when fewer written posts were available than requested.

### Example workflow

Start at [page 743 of the TANESCO discussion](https://www.jamiiforums.com/threads/tanesco-special-thread-tupe-maoni-maswali-malalamiko-na-hata-ushauri.1236293/page-743) with a cap of 20. Find replies with `organizationName` set to TANESCO and open a `quotedPostUrls` link to see the customer’s question. Use the reply’s `sourceUrl` to cite the answer. Where a quote target appears on an earlier page, the link points there directly.

### Dataset

Each row contains the original written text outside copied quotes, a stable post ID, publication and collection times in UTC, and a permalink. Thread and section fields identify where the post appeared. Quote arrays hold explicitly cited IDs and any visible quote permalinks. A direct reply ID appears when JamiiForums identifies a distinct parent. Organization attribution comes from the displayed official-account label. Other contributor identity fields are omitted, and posts with recognizable personal contact details are skipped.

The following fictional example illustrates the output shape.

```json
{
  "postId": "200",
  "publishedAt": "2026-11-20T10:30:00.000Z",
  "collectedAt": "2026-11-23T09:00:00.000Z",
  "body": "Asante kwa swali. Huduma imerejea.",
  "threadId": "100",
  "threadTitle": "Mfano wa mjadala",
  "threadUrl": "https://www.jamiiforums.com/threads/mfano.100/",
  "section": "Mfano",
  "sectionUrl": "https://www.jamiiforums.com/forums/mfano.10/",
  "sourceUrl": "https://www.jamiiforums.com/threads/mfano.100/#post-200",
  "sourcePageUrl": "https://www.jamiiforums.com/threads/mfano.100/",
  "replyToPostId": null,
  "quotedPostIds": ["199"],
  "quotedPostUrls": ["https://www.jamiiforums.com/threads/mfano.100/#post-199"],
  "organizationName": "Shirika Mfano",
  "organizationAttribution": "Official Account"
}
```

Use JSON for the complete structured record. CSV preserves the written text for spreadsheet use. Quote the post ID and source link when checking a result against the forum.

### Pricing and interrupted runs

The price is **$1 per 1,000 written posts**. Each unique row added to the dataset triggers one Apify pricing event.

An interrupted run can resume from its saved page when its dataset can be reconciled. If a write remains unconfirmed, the Actor stops and explains the issue. Try resuming later to check for that write again. A new run creates its own dataset. The run keeps pending URLs, post IDs, and aggregate checks in run-local storage. The run’s restricted dataset holds the collected post text.

### Frequently asked questions

**Why did I receive fewer rows?** A discussion can contain fewer eligible written posts than requested. Access restrictions, request limits, source errors, and a run budget can also stop collection. Check the run message and the summary in its key-value store.

**Can I start at a specific discussion page?** Yes. Paste the numbered page URL. The Actor starts there and follows later pages.

**What can I collect?** The Actor serves public board and thread pages accessible to a signed-out reader. It follows the forum's robots policy and stops when the source denies access or rate-limits the run.

### Python API

With an authorized Apify client, call the Actor and iterate over the run dataset.

```python
import os
from apify_client import ApifyClient

client = ApifyClient(os.environ["APIFY_TOKEN"])
run = client.actor("thescrapelab/jamiiforums-discussions").call(run_input={
    "startUrl": "https://www.jamiiforums.com/forums/tech-gadgets-science-forum.20/",
    "maxResults": 10,
})
for row in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(row["postId"], row["publishedAt"], row["sourceUrl"])
```

# Actor input Schema

## `startUrl` (type: `string`):

Paste a public JamiiForums board or thread URL. A numbered discussion page starts there.

## `maxResults` (type: `integer`):

Stop after this many unique written posts, or when the source or run limit is reached.

## Actor input object example

```json
{
  "startUrl": "https://www.jamiiforums.com/forums/tech-gadgets-science-forum.20/",
  "maxResults": 10
}
```

# Actor output Schema

## `posts` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "startUrl": "https://www.jamiiforums.com/forums/tech-gadgets-science-forum.20/"
};

// Run the Actor and wait for it to finish
const run = await client.actor("thescrapelab/jamiiforums-discussions").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "startUrl": "https://www.jamiiforums.com/forums/tech-gadgets-science-forum.20/" }

# Run the Actor and wait for it to finish
run = client.actor("thescrapelab/jamiiforums-discussions").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "startUrl": "https://www.jamiiforums.com/forums/tech-gadgets-science-forum.20/"
}' |
apify call thescrapelab/jamiiforums-discussions --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,thescrapelab/jamiiforums-discussions"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/Z80KRnFQ1VcUnPeBC/builds/xpVxgDauXyBa8utQ4/openapi.json
