# Discourse Forum Scraper Any Forum (`bigibyte/discourse-forum-scraper-any-forum`) Actor

Extract the latest discussions, post counts, and topic details from any public Discourse forum. Simply enter a forum URL, choose latest or specific topic mode, set your item limit, and export clean, structured datasets in JSON, CSV, or Excel.

- **URL**: https://apify.com/bigibyte/discourse-forum-scraper-any-forum.md
- **Developed by:** [BigiByte](https://apify.com/bigibyte) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

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

## 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

## Discourse Forum Scraper: Latest Topics from Any Discourse Forum

Collect public topics from Discourse forums with this Discourse Forum Scraper. Retrieve the latest discussions or look up specific topics by ID, including titles, activity statistics, timestamps, and other topic details. Export structured results as JSON, CSV, or Exceln.

### What This Actor Does

Discourse Forum Scraper collects publicly accessible topic information from Discourse-powered forums.

You can use it to retrieve the latest topics from a forum or collect details for specific topics using their IDs. The Actor supports pagination, duplicate prevention, and configurable collection limits to help you build organized forum datasets.

### Supported Modes

| Mode | Description |
|---|---|
| `latest` | Collect the latest topics from a Discourse forum |
| `topic` | Retrieve topic details using one or more topic IDs |

### Use Cases

- **Community research:** Analyze public discussions and topics across Discourse communities.
- **Trend monitoring:** Track newly active discussions and changes in forum activity.
- **Product research:** Monitor public product forums for feature requests, feedback, and community discussions.
- **Dataset building:** Create structured topic datasets for search, NLP, and analytics.
- **Competitor monitoring:** Follow discussions on public forums related to competing products or services.
- **Workflow automation:** Send collected forum data to spreadsheets, dashboards, and other connected tools.

### Input Configuration

Configure the Actor by selecting a collection mode, providing a forum URL, and setting your preferred item limit.

| Parameter | Type | Default | Description |
|---|---|---|---|
| `mode` | string | `latest` | Collection mode: `latest` or `topic` |
| `forumUrl` | string | `https://meta.discourse.org` | Base URL of the Discourse forum |
| `topicId` | integer | None | Single topic ID for topic mode |
| `topicIds` | array | None | Multiple topic IDs for topic mode |
| `maxItems` | integer | `100` | Maximum number of successful records per run, up to 1,000 |
| `userAgent` | string | BigiByte research User-Agent | User-Agent used for requests |
| `timeoutSecs` | integer | `300` | Overall run timeout in seconds |
| `requestTimeoutSecs` | integer | `30` | Timeout for an individual request |
| `proxyConfiguration` | object | Disabled | Optional proxy configuration |

#### Example Input: Latest Topics

```json
{
  "mode": "latest",
  "forumUrl": "https://meta.discourse.org",
  "maxItems": 50,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

#### Example Input: Specific Topics

```json
{
  "mode": "topic",
  "forumUrl": "https://meta.discourse.org",
  "topicId": 1,
  "maxItems": 10
}
```

### What Data Can You Extract?

The Actor collects topic information and organizes it into structured dataset records.

| Field | Description |
|---|---|
| `fancy_title` | Formatted topic title |
| `fancy_title_localized` | Indicates whether the formatted title is localized |
| `locale` | Topic language or locale |
| `id` | Unique topic identifier |
| `itemTitle` | Topic title |
| `slug` | URL-friendly topic identifier |
| `posts_count` | Total number of posts in the topic |
| `reply_count` | Number of replies |
| `highest_post_number` | Highest post number in the topic |
| `image_url` | Topic image URL, when available |
| `created_at` | Topic creation timestamp |
| `last_posted_at` | Timestamp of the latest post |
| `bumped` | Indicates whether the topic has been bumped |
| `bumped_at` | Last bumped timestamp |
| `scrapedAt` | Timestamp when the record was collected |

#### Example Output

```json
{
  "fancy_title": "New to Discourse? Start here!",
  "fancy_title_localized": false,
  "locale": "en",
  "id": 1,
  "itemTitle": "New to Discourse? Start here!",
  "slug": "new-to-discourse-start-here",
  "posts_count": 1,
  "reply_count": 5,
  "highest_post_number": 1,
  "image_url": null,
  "created_at": "2013-02-01T04:52:28.073Z",
  "last_posted_at": "2013-02-01T04:52:28.397Z",
  "bumped": true,
  "bumped_at": "2025-09-23T19:13:50.543Z",
  "scrapedAt": "2026-10-26T00:00:00+00:00"
}
```

### How It Works

1. Reads the selected forum URL, collection mode, and input settings.
2. Retrieves public topic information based on the selected mode.
3. Extracts available topic fields and organizes them into dataset records.
4. Prevents duplicate records using each topic's unique ID.
5. In latest mode, follows pagination to retrieve additional topics until the configured limit or available pages are reached.
6. Saves unsuccessful requests as error records containing the input, URL, status, and message, then continues processing.

### Usage and Limits

- **Supported modes:** `latest` and `topic`.
- **Forum compatibility:** Works with Discourse forums that expose the standard public topic data and allow anonymous access.
- **Maximum records:** Up to 1,000 successful records per run. Actual results depend on available topics and the supplied topic IDs.
- **Latest mode:** Retrieves topics through pagination until the item limit or available pages are reached.
- **Topic mode:** Requires `topicId` or `topicIds`.
- **Duplicate handling:** Topic records are deduplicated using their IDs.
- **Request pacing:** Uses low request concurrency and approximately one request per second.
- **Error handling:** Failed requests produce error records rather than automatically stopping the entire run.
- **Proxy:** Disabled by default. Optional proxy configuration is available when needed.

### Frequently Asked Questions

**Can I scrape any Discourse forum?**

You can use it with forums that expose the standard public topic data and permit anonymous reads. Private or login-restricted communities may not return usable results.

**What is the difference between `latest` and `topic` modes?**

The `latest` mode collects recently active topics from a forum. The `topic` mode retrieves information for specific topics using their IDs.

**Can I collect topics from multiple forums?**

The `forumUrl` parameter lets you target different Discourse forums. Each run uses the forum URL you provide.

**How many topics can I collect per run?**

You can collect up to 1,000 successful records per run. The default limit is 100.

**Does the Actor collect full discussion posts and replies?**

This version focuses on topic-level information. It does not provide a complete dataset of individual discussion posts and replies.

**Can I export the results to CSV or Excel?**

Yes. Apify datasets support JSON, CSV, Excel, and other export formats.

### Related Tools

Explore other BigiByte Actors for collecting public discussions and community information:

- **Lemmy Comments Scraper** – Collect public comments from Lemmy communities.
- **PeerTube Videos Search Scraper** – Discover publicly available videos across the PeerTube network.
- **Farcaster Casts Scraper** – Retrieve public Farcaster user profile information.
- **Misskey Notes Scraper** – Collect publicly featured notes from Misskey instances.

Looking for additional data fields, complete discussion collection, or a custom forum data pipeline? BigiByte builds custom web scrapers and data solutions tailored to your requirements.

Visit [BigiByte – Big Ideas, Byte Solutions](https://www.bigibyte.com) to explore our services.

### Trademark Notice

Discourse and related names, logos, and trademarks belong to their respective owners. Their use in this documentation is solely to identify the source of the data and does not imply affiliation, sponsorship, endorsement, or partnership.

### Disclaimer

This Actor is an independent data collection tool and is not affiliated with, endorsed by, sponsored by, or officially associated with Discourse or its owners. All data is collected from publicly accessible sources. Users are responsible for complying with the relevant forum's terms of use, rate limits, and applicable attribution or licensing requirements.

### Is Web Scraping Legal?

This actor extracts publicly accessible information without bypassing login screens, paywalls, or technical security layers. While collecting public web data is widely permitted, compliance depends on how data is gathered and used:

- **Personal data:** If collected results contain names, usernames, or other personal information, privacy laws such as GDPR and CCPA may apply. Ensure you have a lawful basis for collecting and using such information.
- **Copyrighted content:** Topic titles, text, images, and other creative materials may be protected by copyright. Respect applicable licences and attribution requirements.
- **Platform terms and rate limits:** Follow the source forum's terms, applicable usage restrictions, and reasonable request limits.

This information is provided for general guidance only and does not constitute legal advice.

For more information, read Apify's guide: [Is web scraping legal?](https://blog.apify.com/is-web-scraping-legal/)

### Integrations

Connect Discourse Forum Scraper with your existing workflows using [Apify integrations](https://apify.com/integrations). Send collected data to Make, Zapier, Slack, Airbyte, and Google Sheets, or trigger automated workflows using [webhooks](https://docs.apify.com/integrations/webhooks).

# Actor input Schema

## `mode` (type: `string`):

What to scrape. Latest topics pulls /latest.json. Topic posts pulls /t/{id}.json for one or more topic IDs.

## `forumUrl` (type: `string`):

Forum base URL (any Discourse site).

## `topicId` (type: `integer`):

Single topic ID for topic mode. Ignored in latest mode.

## `topicIds` (type: `array`):

Optional list of topic IDs for topic mode (one per line). Merged with topicId.

## `maxItems` (type: `integer`):

Stop after this many successful rows. Hard max is 1000.

## `userAgent` (type: `string`):

Identify your scraper

## `timeoutSecs` (type: `integer`):

Overall run budget in seconds.

## `requestTimeoutSecs` (type: `integer`):

Per-request timeout in seconds.

## `proxyConfiguration` (type: `object`):

Optional proxy. Leave off unless you need it. Public Discourse JSON usually works without a proxy.

## Actor input object example

```json
{
  "mode": "latest",
  "forumUrl": "https://meta.discourse.org",
  "topicId": 1,
  "topicIds": [
    "1",
    "2"
  ],
  "maxItems": 100,
  "userAgent": "BigiByteActorResearch/1.0 (contact: hello@bigibyte.com)",
  "timeoutSecs": 300,
  "requestTimeoutSecs": 30,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `overview` (type: `string`):

Dataset rows in the overview table.

## `dataset` (type: `string`):

Full dataset for this run.

## `items` (type: `string`):

Dataset items as JSON.

# 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 = {
    "forumUrl": "https://meta.discourse.org"
};

// Run the Actor and wait for it to finish
const run = await client.actor("bigibyte/discourse-forum-scraper-any-forum").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 = { "forumUrl": "https://meta.discourse.org" }

# Run the Actor and wait for it to finish
run = client.actor("bigibyte/discourse-forum-scraper-any-forum").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 '{
  "forumUrl": "https://meta.discourse.org"
}' |
apify call bigibyte/discourse-forum-scraper-any-forum --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,bigibyte/discourse-forum-scraper-any-forum"
        }
    }
}
```

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/gS4uVlvUDDJv3sSjY/builds/EHx5dST5bjNxtPZlW/openapi.json
