# Free Republic Replies (`thescrapelab/free-republic-replies`) Actor

Export written replies from public Free Republic boards, tags, and threads. Each CSV or JSON row includes a source permalink, timestamp, commenter, and explicit parent link when available. Built for news and political-discourse research.

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

## Pricing

$1.50 / 1,000 written replies

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

## Free Republic Replies

Scrape Free Republic forum comments from a public board, tag, or thread and export written reader replies as CSV or JSON. Each row links to the original reply and includes the thread title, reply number, timestamp, commenter, and parent reply when the forum provides an explicit link.

The Actor keeps the commenter, thread starter, and linked publisher in separate fields so news researchers can attribute replies and trace them to the source.

### Get started

1. Paste a public Free Republic board, tag, or thread URL.
2. Choose the maximum number of written replies to collect.
3. Run the Actor and open its dataset to export JSON or CSV, or to open the results in Excel.

### Input

| Field | Description |
| --- | --- |
| `url` | One public Free Republic board, tag, or thread URL. |
| `maxReplies` | Optional cap of 1 to 1,000 written replies. The API default is 100. The Store example requests 10. |

```json
{
  "url": "https://freerepublic.com/focus/f-news/4403367/posts",
  "maxReplies": 10
}
```

### Output

Each dataset row is one written reply. Use `threadId` and `replyNumber` together to identify it. `sourceUrl` opens the original post. `timestamp` includes the source's Pacific time offset and `collectedAt` is UTC. Parent fields are filled when the source provides an explicit link. A publisher field is null when no corresponding publisher link or name is visible.

Illustrative output with fictional reply text and handles:

```json
{
  "threadId": "4403367",
  "threadUrl": "https://freerepublic.com/focus/f-news/4403367/posts",
  "threadTitle": "Example news discussion",
  "board": "News/Activism",
  "publisherName": "Example News",
  "publisherUrl": "https://example.com/story",
  "threadStarter": "example-starter",
  "replyNumber": 2,
  "sourceUrl": "https://freerepublic.com/focus/f-news/4403367/posts?page=2#2",
  "timestamp": "2026-11-17T08:07:23-08:00",
  "collectedAt": "2026-11-23T11:25:00Z",
  "commenter": "example-reader",
  "text": "I would like to see the follow-up.",
  "parentReplyNumber": null,
  "parentUrl": null
}
```

### Use cases

- Export a public discussion with stable permalinks for a research notebook.
- Compare how readers respond across public news threads.
- Review reply chains using any explicit parent links the forum provides.
- Import the CSV into a spreadsheet or pull JSON through the Apify API for a repeatable research workflow.

### Pricing

The Store price is **$0.0015 per delivered written reply** ($1.50 per 1,000), with platform usage included. Each delivered row is one billing event. A set of 100 delivered replies costs $0.15. A spending limit can stop the run before it reaches your requested reply count.

### Limits and FAQ

**Why are there fewer rows than the source count?** The Actor excludes the thread starter, moderator removal notices, media-only posts, and replies that contain only recognizable quotes. It removes marked quotations and identifiable excerpts from replies with original commentary. Copied text without quotation marks, attribution, or a match in the thread can slip through.

**Why is a parent field empty?** Some thread layouts display only the addressee's screen name. Parent fields require a source link.

**What if a page is unavailable?** The run keeps the rows it already delivered. Open the `COVERAGE` key-value record to see checked pages, reply-number gaps, and any source or spending limits that stopped collection.

**What happens if I run the same URL again?** Each standard run collects a fresh copy, so two run datasets can contain the same replies. Use `threadId` and `replyNumber` to combine results without duplicates. The run dataset holds reply text under Apify's storage settings. Recovery within a run uses reply identifiers.

For help with a missing reply or incomplete run, open an issue from the Store listing. Include the run ID and the public source link.

### Apify API

```python
import os
from apify_client import ApifyClient

client = ApifyClient(os.environ["APIFY_TOKEN"])
run = client.actor("thescrapelab/free-republic-replies").call(
    run_input={"url": "https://freerepublic.com/focus/f-news/4403367/posts", "maxReplies": 10}
)
if run:
    for reply in client.dataset(run["defaultDatasetId"]).iterate_items():
        print(reply["sourceUrl"], reply["replyNumber"])
```

# Actor input Schema

## `url` (type: `string`):

A public Free Republic board, tag or thread URL.

## `maxReplies` (type: `integer`):

Stop after delivering this many written replies.

## `_pilotCheckpoint` (type: `boolean`):

Use the private test checkpoint for this exact URL.

## Actor input object example

```json
{
  "url": "https://freerepublic.com/focus/f-news/4403367/posts",
  "maxReplies": 10,
  "_pilotCheckpoint": false
}
```

# Actor output Schema

## `replies` (type: `string`):

No description

## `coverage` (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 = {
    "url": "https://freerepublic.com/focus/f-news/4403367/posts",
    "maxReplies": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("thescrapelab/free-republic-replies").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 = {
    "url": "https://freerepublic.com/focus/f-news/4403367/posts",
    "maxReplies": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("thescrapelab/free-republic-replies").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 '{
  "url": "https://freerepublic.com/focus/f-news/4403367/posts",
  "maxReplies": 10
}' |
apify call thescrapelab/free-republic-replies --silent --output-dataset

```

## MCP server setup

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

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/G2f7VDaVQtRYLqwg3/builds/qKa62wJtyZgOqsKh5/openapi.json
