# XenForo Posts Scraper (`thescrapelab/xenforo-posts-scraper`) Actor

Export original public XenForo posts from one category, with thread discovery, pagination, dates, stable post IDs and quote references.

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

## Pricing

$1.50 / 1,000 unique 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

## XenForo Posts Scraper

Export original public discussion posts from one XenForo category URL. The Actor discovers threads and follows their post pages, giving product researchers and community operators a flat dataset of remarks, dates and source links.

Use it to inspect recurring hardware reliability problems, buying objections or support discussions without finding hundreds of thread links yourself. Analysis is yours: the Actor returns source text rather than AI summaries or inferred sentiment.

### Quick start

1. Enter a public category URL containing threads, covered by your permission to collect and reuse its content.
2. Choose the maximum number of posts.
3. Start the Actor and download the dataset as JSON, CSV or Excel.

```json
{
  "categoryUrl": "https://forums.macrumors.com/forums/macbook-pro.90/",
  "maxResults": 10
}
```

| Input | Meaning | Default |
| --- | --- | --- |
| `categoryUrl` | One public HTTPS XenForo category containing threads | MacRumors MacBook Pro example |
| `maxResults` | Maximum unique posts with original text, from 1 to 1,000 | 10 |

The example is tested with the publisher's authorized evaluation environment. Use your own authorized source for your projects.

### Output

Each dataset row is one post. Copied quote blocks are excluded from `body`; meaningful short original replies remain. Quote-only, empty, emoji-only and structurally incomplete posts do not count toward the result limit.

| Field | Description |
| --- | --- |
| `id`, `postId` | Composite source identity and numeric source post ID as strings |
| `sourceUrl` | Publisher-provided permalink to the post |
| `sourcePageUrl` | Actual thread page fetched, useful for source verification |
| `body` | Original text outside copied quote blocks; paragraph breaks preserved |
| `publishedAt` | Original posting date in UTC |
| `threadId`, `threadTitle`, `threadUrl` | Source discussion identity and title |
| `category`, `categoryUrl` | Category shown on the thread page, or null when unavailable |
| `seedCategoryUrl` | Category supplied for this collection |
| `replyToPostId` | Explicit unique parent, when available; otherwise null |
| `quotedPostIds` | Explicitly cited post IDs; citations do not prove a unique reply parent |
| `collectedAt` | UTC collection timestamp |

A post's identity does not change merely because its text changes. Fresh runs are independent snapshots, so repeat exports may contain the same source IDs. Compare IDs and content in your downstream system to find additions and edits.

#### Example post

This genuine reply is from the live-tested source.

```json
{
  "id": "https://forums.macrumors.com:34938936",
  "postId": "34938936",
  "sourceUrl": "https://forums.macrumors.com/threads/rip-macbook-pro-proled-for-pwm-sensitive-eyes-apple-cmon.2493735/?post=34938936#post-34938936",
  "sourcePageUrl": "https://forums.macrumors.com/threads/rip-macbook-pro-proled-for-pwm-sensitive-eyes-apple-cmon.2493735/",
  "body": "At least they still offer that model currently for those that need it.",
  "publishedAt": "2026-11-05T16:47:47.000Z",
  "threadId": "2493735",
  "threadTitle": "RIP MacBook Pro PROLED for PWM Sensitive Eyes -  apple cmon!",
  "threadUrl": "https://forums.macrumors.com/threads/rip-macbook-pro-proled-for-pwm-sensitive-eyes-apple-cmon.2493735/",
  "category": "MacBook Pro",
  "categoryUrl": "https://forums.macrumors.com/forums/macbook-pro.90/",
  "seedCategoryUrl": "https://forums.macrumors.com/forums/macbook-pro.90/",
  "replyToPostId": null,
  "quotedPostIds": [
    "34938900"
  ],
  "collectedAt": "2026-11-15T09:54:40.724Z"
}
```

### Pagination and recovery

The Actor follows category navigation, discovers sticky and normal threads, and rotates through discovered thread pages. It suppresses repeated post IDs inside a run. A result cap limits delivered posts, not source pages visited. Requested counts are ceilings; a small category may contain fewer usable posts.

For an interrupted run, use the platform's recovery controls with the same run storage. Delivered dataset IDs are reconciled before pending pages are processed again. Starting a separate run creates a fresh snapshot and a separate bill. Live interruption/resurrection and duplicate prevention are tested. Custom themes and unusual quote layouts can still require adjustments.

### Pricing

**$1.50 per 1,000 delivered posts ($0.0015/post), with no startup or page fee.** Platform usage is included. Ten posts cost $0.015; 100 cost $0.15. Empty records, quotes removed from replies, duplicate discoveries and request retries have no separate result charge. A fresh repeat export is billed for its delivered posts.

### Python API example

```python
from apify_client import ApifyClient
import os

client = ApifyClient(os.environ["APIFY_TOKEN"])
run = client.actor("thescrapelab/xenforo-posts-scraper").call(run_input={
    "categoryUrl": "https://forums.macrumors.com/forums/macbook-pro.90/",
    "maxResults": 100,
})
for post in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(post["publishedAt"], post["body"], post["sourceUrl"])
```

### Limitations and troubleshooting

- Compatible XenForo boards must expose standard public thread/post markup. MacRumors is the live-tested source; custom themes and older versions may require adjustments.
- Login-only boards, paywalls, CAPTCHAs and access restrictions are not bypassed. Robots restrictions are checked. An access denial stops collection; a rate limit stores its retry information.
- RSS previews and sitemap URLs are not substituted for full post bodies.
- Private, deleted and unavailable posts are not recovered. Posts made or moved during a crawl can change apparent coverage.
- Copying text into a quote wrapper removes clear authorship boundaries. Original remarks embedded inside that wrapper cannot reliably be separated; this Actor exports text outside quote blocks.
- No parent reply is inferred from chronology, mentions or a single quotation.
- A container listing only subforums is not a supported category seed. Choose its actual discussion board.
- If no usable posts can be extracted, the run reports an error rather than returning fabricated rows.

The one-category workflow has been tested with 1,000 distinct text-bearing posts, a fresh repeat, an interrupted/resumed run and native billing limits. These are bounded tests, not a claim of complete coverage of every XenForo installation.

# Actor input Schema

## `categoryUrl` (type: `string`):

Public XenForo category covered by your permission to collect and reuse posts.

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

Maximum unique posts with original text.

## Actor input object example

```json
{
  "categoryUrl": "https://forums.macrumors.com/forums/macbook-pro.90/",
  "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 = {
    "categoryUrl": "https://forums.macrumors.com/forums/macbook-pro.90/"
};

// Run the Actor and wait for it to finish
const run = await client.actor("thescrapelab/xenforo-posts-scraper").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 = { "categoryUrl": "https://forums.macrumors.com/forums/macbook-pro.90/" }

# Run the Actor and wait for it to finish
run = client.actor("thescrapelab/xenforo-posts-scraper").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 '{
  "categoryUrl": "https://forums.macrumors.com/forums/macbook-pro.90/"
}' |
apify call thescrapelab/xenforo-posts-scraper --silent --output-dataset

```

## MCP server setup

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

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/YqaY4jUu2fW5EzpC0/builds/Q48NV2GThozV4QgJc/openapi.json
