# Reddit Popular Posts Scraper (`scrapingdino/reddit-popular-posts-scraper`) Actor

Capture Reddit discovery feeds — Popular, Rising, Best, Top, and country charts — as structured post rows for trend dashboards. $0.50 per 1,000 posts.

- **URL**: https://apify.com/scrapingdino/reddit-popular-posts-scraper.md
- **Developed by:** [Scraping Dino](https://apify.com/scrapingdino) (community)
- **Security:** Limited permissions
- **Stats:** 1 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.50 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
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 Popular Posts Scraper - Track Rising, Best, Top & Country Feeds

### Overview

The **Reddit Popular Posts Scraper** pulls trending posts from Reddit’s discovery feeds — Popular, Rising, Best, Top, or country-specific Popular — and returns structured JSON for each post. No subreddit list required: use it to monitor what is going viral across the platform right now.

Ideal for trend analysts, social listening teams, newsrooms, and marketers who need a reliable pulse on Reddit’s homepage-scale attention. Configure feed type, optional country code, and result limits to match your monitoring cadence.

Every item is returned as **clean, structured JSON** with title, author, subreddit, score, comment counts, timestamps, and URLs.

### Features

- Feed modes: `popular`, `rising`, `best`, `top`, `country`
- Country filter (e.g. `US`, `GB`, `IN`) when `feed` is `country`
- Configurable `maxResults` (1–500)
- Structured post summaries ready for dashboards
- Automatic pagination until the limit is reached
- Error rows for recoverable feed failures
- Fast, API-backed collection without browsers

### Use Cases

- **Trend monitoring** — Spot breakout topics early via Rising / Popular
- **Content research** — Find high-engagement posts for inspiration
- **Brand monitoring** — Catch brand mentions hitting mainstream feeds
- **Market research** — See which products and niches surface globally
- **Business intelligence** — Feed daily trending snapshots into BI tools
- **AI training datasets** — Sample high-visibility Reddit posts
- **Data analytics** — Compare score/comment distributions by feed type
- **Competitor analysis** — Track when competitor stories go viral

### Input

| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| `feed` | string | No | `"popular"` | Feed to scrape: `popular`, `rising`, `best`, `top`, or `country`. |
| `country` | string | Conditional | `"US"` | ISO-style country code used when `feed` is `country` (e.g. `US`, `GB`, `IN`). |
| `maxResults` | integer | No | `50` | Maximum posts to collect (1–500). |

**How parameters affect the run:** Switching `feed` changes the ranking algorithm and content mix. For `country`, `country` scopes Popular to that geo. `maxResults` stops pagination once enough posts are collected.

#### Example input

```json
{
  "feed": "rising",
  "maxResults": 75
}
```

Country feed example:

```json
{
  "feed": "country",
  "country": "GB",
  "maxResults": 50
}
```

### Output

Each row is a post summary:

| Field | Type | Description |
|---|---|---|
| `feed` | string | Feed mode used |
| `country` | string | null | Country when applicable |
| `id` | string | null | Post ID |
| `name` | string | null | Fullname |
| `kind` | string | null | Reddit kind |
| `title` | string | null | Post title |
| `author` | string | null | Author |
| `subreddit` | string | null | Subreddit |
| `score` | number | null | Score |
| `numComments` | number | null | Comment count |
| `createdUtc` | number | string | null | Created time |
| `permalink` | string | null | Permalink |
| `url` | string | null | External or post URL |
| `body` | string | null | Selftext excerpt when present |

### Example Output

```json
{
  "feed": "rising",
  "country": null,
  "id": "1gh7890",
  "name": "t3_1gh7890",
  "kind": "t3",
  "title": "Local bakery goes viral after inventing croissant-donut hybrid",
  "author": "foodie_nyc",
  "subreddit": "mildlyinteresting",
  "score": 9204,
  "numComments": 612,
  "createdUtc": 1718222400,
  "permalink": "https://www.reddit.com/r/mildlyinteresting/comments/1gh7890/local_bakery_goes_viral/",
  "url": "https://i.redd.it/croissant-donut.jpg",
  "body": null
}
```

### Related Scrapers

- **Reddit Subreddit Posts Scraper** — Posts inside a specific community
- **Reddit Search Scraper** — Keyword search across Reddit
- **Reddit Post Scraper** — Deep details for known post URLs
- **Reddit Popular Subreddits Scraper** — Discover communities, not posts

# Actor input Schema

## `feed` (type: `string`):

Which Reddit feed to scrape: popular, rising, best, top, or country.

## `country` (type: `string`):

Required when feed is country (e.g. US, GB, IN).

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

Maximum number of posts to fetch.

## Actor input object example

```json
{
  "feed": "popular",
  "country": "US",
  "maxResults": 50
}
```

# Actor output Schema

## `results` (type: `string`):

Default dataset items produced by this Actor.

# 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 = {
    "country": "US"
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapingdino/reddit-popular-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 = { "country": "US" }

# Run the Actor and wait for it to finish
run = client.actor("scrapingdino/reddit-popular-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 '{
  "country": "US"
}' |
apify call scrapingdino/reddit-popular-posts-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,scrapingdino/reddit-popular-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/SXh5OLzyxq6QTjIYT/builds/KIWFpbhhOdDpEz7Xa/openapi.json
