# Reddit Front Page & AMA Monitor (`xyrelith-data/reddit-frontpage-ama-monitor`) Actor

Monitor Reddit's front page, rising and top feeds by country, and turn AMA threads into question-and-answer records. Uses Reddit Atom RSS and the free Arctic Shift archive. No login, API key or proxy.

- **URL**: https://apify.com/xyrelith-data/reddit-frontpage-ama-monitor.md
- **Developed by:** [Xyrelith Data](https://apify.com/xyrelith-data) (community)
- **Categories:** Social media, News, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.49 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## Reddit Front Page & AMA Monitor

Track what Reddit is pushing to its front page right now — by country, feed and ranking order — and turn AMA threads into clean question-and-answer datasets. No Reddit account, API key, cookie or proxy setup.

### What this actor does

- **Front page snapshots** — reads Reddit's current **r/popular** listing for any supported country or worldwide, plus an **r/all-style broad feed**, in **hot**, **rising**, **top** (hour/day/week/month/year/all) or **new** order. Reddit blocks r/all for anonymous clients, so `all` uses a 25-community broad feed and marks those rows `feedScope: multi-community`.
- **Country comparison** — pass several country codes in one run and get one row set per country. Add repeated snapshots to see how a post's rank moves between reads.
- **Rich post rows** — rank, feed, country, post ID, subreddit, author, title, post type, linked URL or media URL, score, comment count, creation time, NSFW/spoiler flags and permalink.
- **AMA discovery** — finds AMA threads in r/IAmA and any other AMA-style community over a date window, ordered by newest, score or comment count.
- **Question-and-answer pairs** — reads the complete public comment thread, identifies replies written by the AMA host, and pairs each answer with the question it responds to: question text, asker, score, time, permalink; answer text, score, time, permalink.
- **AMA summaries and unanswered questions** — one summary row per AMA (host, date, comments read, host answers, questions answered) and, optionally, the top unanswered questions.
- **Clean output** — empty values are omitted at every depth. Records never contain `null`, `""`, `[]` or `{}`.

### Modes

| `mode` | What it returns | Main inputs |
|---|---|---|
| `frontPage` | One row per post in each snapshot of r/popular, or the r/all-style broad feed | `feeds`, `countries`, `sort`, `timeFilter`, `snapshots`, `maxItems` |
| `ama` | AMA summaries, Q\&A pairs and optionally unanswered questions | `amaSubreddits`, `amaKeyword`, `amaSort`, `amaPeriod`, `maxAmas`, `maxItems` |

### Data sources

Reddit's anonymous `.json` endpoints return HTTP 403 from datacenter clients and the browser UI is challenge-gated, so this actor uses two public, cookieless sources:

1. **Reddit Atom RSS** for the current front-page order (`/r/popular/hot/.rss`, `/r/popular/rising/.rss`, `/r/popular/top/.rss?t=week&geo_filter=GB`, and a multi-community feed for `all`). RSS supplies the live rank, title, author, subreddit, permalink, publication time and rendered content. It does not expose scores or comment counts. Reddit's `/r/all` Atom endpoint returns HTTP 403 to anonymous clients, so the `all` option reads a fixed broad set of 25 large public communities and stamps each row `feedScope: multi-community`.
2. **Arctic Shift** (`https://arctic-shift.photon-reddit.com`), a free public Reddit archive with no API key, for post enrichment (score, comment count, media, flags) and for the full comment tree behind every AMA.

Reddit limits anonymous feed reads to roughly one request per address per minute. The actor paces its feed requests and retries HTTP 429 with the server's `Retry-After` header (or a safe fixed backoff), so a run with several countries takes longer but still completes.

#### Freshness caveat

Arctic Shift archives a post when it is created and refreshes scores about a day and a half later. A very new front-page post can therefore show a low score or `0` comments in the archive even while it is rising on Reddit. The actor never invents a value: if the archive has no score, the score field is omitted rather than guessed. When the archive enrichment request itself fails, the row is still emitted from RSS with its title, rank and links — just without score-only fields.

### Output

Records are distinguished by `dataType`.

#### `frontPagePost`

- `rank`, `previousRank`, `rankChange` (positive means moved up)
- `feed` (`popular` or `all`), `feedScope` (`reddit-listing` or `multi-community`), `country` (`GLOBAL` or a two-letter code), `sort`, `timeFilter` (only for `top`)
- `snapshotIndex`, `snapshotAt`
- `postId`, `postName`, `subreddit`, `subredditPrefixed`, `author`, `title`
- `postType` (`self`, `link`, `image`, `video`, `gallery`, `poll`), `contentUrl`, `mediaUrl`, `permalink`
- `score`, `upvoteRatio`, `commentsCount`, `crosspostsCount`, `awardsReceived`, `galleryCount`
- `linkFlair`, `domain`, `thumbnailUrl`
- `createdUtc`, `createdAt`, `crawledAt`
- `isNsfw`, `isSpoiler`, `isLocked`, `isStickied`, `isVideo`, `isGallery`, `isSelf`, `isCrosspost`
- `source` (`atom-rss+arctic-shift` or `atom-rss`)

#### `amaSummary` (one per AMA, on by default)

`subreddit`, `postId`, `title`, `hostUsername`, `amaCreatedAt`, `amaCreatedUtc`, `score`, `commentsCount`, `commentsCollected`, `hostAnswerCount`, `questionsAnswered`, `unansweredTopQuestions`, `linkFlair`, `permalink`, `isNsfw`, `crawledAt`, `source`.

#### `amaQA` (one per host answer)

`subreddit`, `postId`, `amaTitle`, `hostUsername`, `amaCreatedAt`, `amaUrl`, `questionId`, `questionText`, `questionAuthor`, `questionScore`, `questionCreatedAt`, `questionPermalink`, `answerId`, `answerText`, `answerAuthor`, `answerScore`, `answerCreatedAt`, `answerDepth`, `answerPermalink`, `crawledAt`, `source`.

#### `amaQuestion` (optional unanswered questions)

The same AMA and question fields as `amaQA`, plus `replyCount`, with no answer fields.

### Input

| Field | Type | Default | Description |
|---|---|---|---|
| `mode` | select | `frontPage` | `frontPage` or `ama` |
| `maxItems` | integer | `300` | Global cap on rows pushed in the run |
| `feeds` | string list | `["popular"]` | `popular` and/or `all` |
| `countries` | string list | `["GLOBAL"]` | Country codes for r/popular hot, e.g. `US`, `GB`, `DE`, `IN`, `BR`, `JP`, or `GLOBAL` |
| `sort` | select | `hot` | `hot`, `rising`, `top`, `new` |
| `timeFilter` | select | `day` | Window for `top`: `hour` … `all` |
| `snapshots` | integer | `1` | Repeat the selected feeds 1–10 times |
| `snapshotIntervalSecs` | integer | `30` | Wait between snapshots |
| `includeNSFW` | boolean | `false` | Keep posts known to be over-18 |
| `minScore` | integer | – | Minimum archive score for front-page rows |
| `amaSubreddits` | string list | `["IAmA"]` | AMA-style communities |
| `amaKeyword` | text | – | Keep AMAs containing every word in title/body |
| `amaSort` | select | `comments` | `new`, `top`, `comments` |
| `amaPeriod` | select | `week` | `hour` … `all` (recent scan) |
| `postedAfter` / `postedBefore` | text | – | Explicit AMA date range |
| `maxAmas` | integer | `3` | Threads to read per run |
| `maxCommentsPerAma` | integer | `0` | Comments read per thread (0 = whole reachable thread) |
| `minAmaScore` / `minComments` | integer | – | AMA post thresholds |
| `minQuestionScore` / `minAnswerScore` | integer | `0` | Q\&A pair thresholds |
| `includeUnanswered` | boolean | `false` | Emit top unanswered questions |
| `maxUnansweredPerAma` | integer | `5` | How many to emit per AMA |
| `includeSummary` | boolean | `true` | Emit one summary per AMA |

### Examples

**Today's US front page (hot):**

```json
{
  "mode": "frontPage",
  "feeds": ["popular"],
  "countries": ["US"],
  "sort": "hot",
  "maxItems": 25
}
```

**Compare three countries over three snapshots:**

```json
{
  "mode": "frontPage",
  "countries": ["US", "GB", "DE"],
  "sort": "hot",
  "snapshots": 3,
  "snapshotIntervalSecs": 120,
  "maxItems": 225
}
```

**Rising posts worldwide:**

```json
{
  "mode": "frontPage",
  "feeds": ["popular"],
  "sort": "rising",
  "maxItems": 25
}
```

**Most-discussed AMAs from the past day, with unanswered questions:**

```json
{
  "mode": "ama",
  "amaSubreddits": ["IAmA"],
  "amaSort": "comments",
  "amaPeriod": "day",
  "maxAmas": 2,
  "includeUnanswered": true,
  "maxItems": 400
}
```

**Search AMAs by keyword:**

```json
{
  "mode": "ama",
  "amaKeyword": "astronaut",
  "amaPeriod": "year",
  "maxAmas": 3,
  "minAnswerScore": 2
}
```

### Scheduling

- Front page: every 15–60 minutes with one feed, one country and `maxItems` 25–50. The RSS rate limit is the pacing constraint.
- AMA monitoring: once or twice a day with `amaPeriod` set to `day` and `amaSort` set to `new` or `comments`.
- Repeated snapshots in one run are for country comparison or short-term rank tracking. For long-term tracking, schedule the actor instead and keep every run's dataset.

### FAQ

**Do I need a Reddit account or API key?** No. The actor uses Reddit's public Atom feeds and the free Arctic Shift archive. There is no login, cookie or token input.

**How many posts does a front-page feed return?** Reddit's Atom feed returns 25 entries per listing. The actor reads those entries, deduplicates them and returns up to your `maxItems`. Country feeds and r/all are separate listings.

**Does country filtering work for r/all or rising/top?** No. Reddit applies `geo_filter` to r/popular hot only. r/all, rising, top and new rows are read from the worldwide feed and labelled `country: GLOBAL`.

**Why is a score missing or low?** RSS has no score. Scores come from Arctic Shift, which may not have refreshed a brand-new post yet. A missing score is omitted, never filled with a guess. Use `minScore` only when you accept that brand-new posts with no archive score will be skipped.

**How complete is an AMA thread?** The actor pages through Arctic Shift's comment search for the post, not just the first page of the live thread. Threads with more than a thousand comments are read in 100-comment pages until the archive has no more or `maxCommentsPerAma` is reached. Deleted and removed comments are skipped as answer/question text, but their children are still processed.

**Who counts as the AMA host?** The post author. Comments marked as submitter replies (`is_submitter`) or written by the same username are treated as host answers.

**Why are some comments not paired?** A host answer needs a real question above it in the thread. Top-level host announcements, answers to deleted questions and answers below the score thresholds are not emitted as Q\&A pairs; they still count in the summary.

**What does `amaPeriod: all` mean?** The actor scans the most recent 2,000 posts in each selected community and sorts them client-side. It is not an unbounded walk of Reddit history; use `postedAfter` / `postedBefore` for older windows.

**Can I get more than 25 front-page rows per feed?** Reddit's Atom listing is 25 entries. Use more snapshots, more countries or additional feeds to collect more distinct rows. The actor does not fabricate extra pages.

**What is `feedScope`?** `reddit-listing` means the row came from the exact r/popular or selected listing. `multi-community` means it came from the broad 25-community fallback used because Reddit blocks anonymous r/all; filter on this field if you need to separate the two.

**Are media URLs usable directly?** Yes. `contentUrl` points at the linked page or image; `mediaUrl` points at the image, video file or first gallery image where the source exposes one. Permalinks always point to the Reddit discussion.

**Is a proxy required?** No proxy is required or configured by this actor. If Reddit rate-limits a large multi-country run, the actor waits and retries; reduce countries or snapshots per run for faster results.

**Is this affiliated with Reddit?** No. It reads only public data. Use it in accordance with Reddit's terms and your local data-protection rules.

### Limitations

- Atom RSS exposes at most 25 entries per listing and no scores, so scores and comment counts depend on Arctic Shift being reachable.
- Reddit rate-limits anonymous RSS reads to roughly one request per minute per address; runs with many feeds, countries or snapshots are intentionally slow.
- Reddit refuses the anonymous `/r/all` Atom feed (HTTP 403, including through proxies). The `all` option therefore returns a broad 25-community feed, not the exact r/all firehose; rows carry `feedScope: multi-community`.
- Country filtering is honoured for r/popular hot only. Rising, top and new are worldwide feeds.
- Arctic Shift may lag behind the live site for very new posts and very new comments.
- The `all` AMA period is a bounded recent scan (2,000 posts per community), not a complete history walk.
- NSFW filtering is only as good as the source flag; RSS-only rows may not carry one.

# Actor input Schema

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

Front page snapshots read Reddit's current r/popular or r/all listing by country and sort order. AMA mode finds AMA threads over a date window and returns question-and-answer pairs.

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

Global stop control for the whole run. For front page it caps snapshot rows; for AMA it caps summaries, Q\&A pairs and unanswered questions together.

## `feeds` (type: `array`):

Which Reddit feeds to snapshot: popular (curated, supports country filtering for hot) and/or all. Reddit blocks the anonymous r/all Atom feed, so all rows fall back to a broad 25-community hot feed and are marked feedScope=multi-community.

## `countries` (type: `array`):

Reddit country codes for the r/popular hot feed, for example US, GB, DE, IN, BR, MX, JP. Use GLOBAL or leave empty for worldwide. Reddit applies geo filtering to hot only; rising, top, new and r/all rows are worldwide.

## `sort` (type: `string`):

Reddit's current feed order: hot, rising, top (over the time window below) or new. Country filtering applies to hot; other orders use the worldwide feed.

## `timeFilter` (type: `string`):

Ranking window used only when sort is Top.

## `snapshots` (type: `integer`):

How many times to read the selected feeds. Use more than 1 to compare countries or capture rank changes over time. Each row carries its snapshot number, rank and rank change.

## `snapshotIntervalSecs` (type: `integer`):

Wait time between repeated snapshots. Ignored when snapshots is 1.

## `includeNSFW` (type: `boolean`):

When off, posts known to be over-18 are skipped. RSS rows without a known NSFW flag are kept because the source does not report it.

## `minScore` (type: `integer`):

Keep only posts whose Arctic Shift score is at least this value. Rows without a score (archive enrichment unavailable) are skipped when this filter is set.

## `amaSubreddits` (type: `array`):

AMA-style communities to search, for example IAmA, CasualIAmA or AMA. Accepts bare names or r/ names.

## `amaKeyword` (type: `string`):

Only keep AMAs whose title or body contains every word of this keyword. Leave empty to keep all AMAs in the selected communities.

## `amaSort` (type: `string`):

Order the discovered AMAs before reading their threads: newest first, highest score, or most comments.

## `amaPeriod` (type: `string`):

How far back to look for AMAs. Ignored when postedAfter or postedBefore is set.

## `postedAfter` (type: `string`):

Optional explicit start date or ISO date-time, for example 2026-11-01. Overrides the AMA date window start.

## `postedBefore` (type: `string`):

Optional explicit end date or ISO date-time. Overrides the end of the AMA date window.

## `maxAmas` (type: `integer`):

How many AMA threads to read in this run, across all selected subreddits.

## `maxCommentsPerAma` (type: `integer`):

Comments to read from each thread, newest first. 0 reads the whole reachable thread (up to 25,000 comments).

## `minAmaScore` (type: `integer`):

Skip AMA posts with fewer net votes than this. Archive scores can lag for very new posts.

## `minComments` (type: `integer`):

Skip AMA posts with fewer comments than this.

## `minQuestionScore` (type: `integer`):

Only keep questions with at least this score. Applies to Q\&A pairs and unanswered questions.

## `minAnswerScore` (type: `integer`):

Only keep host answers with at least this score.

## `includeUnanswered` (type: `boolean`):

Also emit top-level questions that the host never answered, as separate amaQuestion records.

## `maxUnansweredPerAma` (type: `integer`):

How many of the highest-scored unanswered questions to emit for each AMA. Ignored when includeUnanswered is off.

## `includeSummary` (type: `boolean`):

Emit an amaSummary record with the host, AMA date, comments read, host answers and number of questions answered.

## Actor input object example

```json
{
  "mode": "frontPage",
  "maxItems": 10,
  "feeds": [
    "popular",
    "all"
  ],
  "countries": [
    "US",
    "GB",
    "DE"
  ],
  "sort": "hot",
  "timeFilter": "day",
  "snapshots": 1,
  "snapshotIntervalSecs": 30,
  "includeNSFW": false,
  "amaSubreddits": [
    "IAmA",
    "CasualIAmA"
  ],
  "amaKeyword": "doctor",
  "amaSort": "comments",
  "amaPeriod": "week",
  "postedAfter": "2026-11-01",
  "postedBefore": "2026-11-15",
  "maxAmas": 1,
  "maxCommentsPerAma": 0,
  "minQuestionScore": 0,
  "minAnswerScore": 0,
  "includeUnanswered": false,
  "maxUnansweredPerAma": 5,
  "includeSummary": true
}
```

# Actor output Schema

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

Front-page snapshots and AMA question-and-answer records.

# 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 = {
    "mode": "frontPage",
    "maxItems": 10,
    "feeds": [
        "popular"
    ],
    "sort": "hot",
    "timeFilter": "day",
    "snapshots": 1,
    "snapshotIntervalSecs": 30,
    "includeNSFW": false,
    "amaSubreddits": [
        "IAmA"
    ],
    "amaSort": "comments",
    "amaPeriod": "week",
    "maxAmas": 1,
    "maxCommentsPerAma": 0,
    "minQuestionScore": 0,
    "minAnswerScore": 0,
    "includeUnanswered": false,
    "maxUnansweredPerAma": 5,
    "includeSummary": true
};

// Run the Actor and wait for it to finish
const run = await client.actor("xyrelith-data/reddit-frontpage-ama-monitor").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 = {
    "mode": "frontPage",
    "maxItems": 10,
    "feeds": ["popular"],
    "sort": "hot",
    "timeFilter": "day",
    "snapshots": 1,
    "snapshotIntervalSecs": 30,
    "includeNSFW": False,
    "amaSubreddits": ["IAmA"],
    "amaSort": "comments",
    "amaPeriod": "week",
    "maxAmas": 1,
    "maxCommentsPerAma": 0,
    "minQuestionScore": 0,
    "minAnswerScore": 0,
    "includeUnanswered": False,
    "maxUnansweredPerAma": 5,
    "includeSummary": True,
}

# Run the Actor and wait for it to finish
run = client.actor("xyrelith-data/reddit-frontpage-ama-monitor").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 '{
  "mode": "frontPage",
  "maxItems": 10,
  "feeds": [
    "popular"
  ],
  "sort": "hot",
  "timeFilter": "day",
  "snapshots": 1,
  "snapshotIntervalSecs": 30,
  "includeNSFW": false,
  "amaSubreddits": [
    "IAmA"
  ],
  "amaSort": "comments",
  "amaPeriod": "week",
  "maxAmas": 1,
  "maxCommentsPerAma": 0,
  "minQuestionScore": 0,
  "minAnswerScore": 0,
  "includeUnanswered": false,
  "maxUnansweredPerAma": 5,
  "includeSummary": true
}' |
apify call xyrelith-data/reddit-frontpage-ama-monitor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,xyrelith-data/reddit-frontpage-ama-monitor"
        }
    }
}
```

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/ZJU4FGFGg9Z5yWgh9/builds/UCn2n7fCJ1cUJfqpB/openapi.json
