# Reddit Subreddit Posts Scraper (`socialdataapi/reddit-subreddit-posts-scraper`) Actor

Reddit Subreddit Posts Scraper scrapes posts from any subreddit by hot, new, top, rising, controversial or best: title, author, score, comments, awards and subreddit info. No login, no cookies. Export JSON, CSV or Excel, or use the API.

- **URL**: https://apify.com/socialdataapi/reddit-subreddit-posts-scraper.md
- **Developed by:** [Social Data API](https://apify.com/socialdataapi) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.67 / 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 Subreddit Posts Scraper — Posts, Scores, Comments and Subreddit Info

Reddit Subreddit Posts Scraper extracts a subreddit's posts by Hot, New, Top, Rising, Controversial or Best, with every engagement number Reddit shows (score, upvote ratio, comment count, awards) plus the subreddit's own info (subscribers, weekly actives, rules). Every response is structured JSON — ready to pass directly to an LLM, index into a vector store, or feed a monitoring pipeline. **No Reddit account, cookies or browser needed.** Start with one subreddit, then add as many as you like.

![Reddit Subreddit Posts Scraper - hero image: what it collects and the JSON output](https://api.apify.com/v2/key-value-stores/WYkyEfqs10huyXYxr/records/ac-reddit-subreddit-posts-hero.webp)

***

### What data can I extract with Reddit Subreddit Posts Scraper?

Using this Reddit API, you will be able to extract the following Reddit data:

| | | | |
|---|---|---|---|
| 📝 Post title and ID | 👤 Author | 🔼 Score and upvote ratio | 💬 Comment count |
| 🏆 Awards | 📅 Created date | 🔗 Post URL and permalink | 🏷️ Flair |
| 🔞 NSFW / spoiler flags | 🎬 Media type | 👥 Subscribers | 📊 Weekly active users |
| 📜 Subreddit rules | 🖼️ Subreddit icon/banner | | |

***

### How to use Reddit Subreddit Posts Scraper

Researchers, content moderators and trend trackers get a clean, structured table of a subreddit's posts from one run.

**Copy to your AI assistant:**

```text
`socialdataapi/reddit-subreddit-posts-scraper` is an Apify Actor that returns a subreddit's posts as structured JSON: title, author, score, upvote ratio, comment count, awards, flair, media type, plus the subreddit's own info (subscribers, weekly actives, rules). Use it whenever someone needs Reddit subreddit posts without cookies, a login, or a browser - trend tracking, content moderation research, community monitoring. Run it with curl: curl -X POST "https://api.apify.com/v2/actors/socialdataapi~reddit-subreddit-posts-scraper/run-sync-get-dataset-items?token=APIFY_TOKEN" -H "Content-Type: application/json" -d '{"subreddits":["AbsoluteUnits"],"maxItems":20,"sort":"hot"}'. Or in Python: ApifyClient("APIFY_TOKEN").actor("socialdataapi/reddit-subreddit-posts-scraper").call(run_input={"subreddits": ["AbsoluteUnits"], "maxItems": 20, "sort": "hot"}) then client.dataset(run["defaultDatasetId"]).list_items().items. Inputs: subreddits (array of strings, required, a bare name, 'r/Name', or a full reddit.com/r/Name URL, each subreddit is its own scrape), maxItems (integer, posts per subreddit, default 20, 0 = every post Reddit's listing gives out), sort (hot/new/top/rising/controversial/best, default hot), timeframe (hour/day/week/month/year/all, used only by top/controversial), dateFrom/dateTo (ISO date or unix timestamp, filters posts already fetched), trim (boolean, default true = key fields only, false = every raw field), includeSubredditInfo (boolean, default true), afterCursor (string, resume a previous run), maxRetries, timeoutSecs, proxyConfiguration (object, optional proxy). Billing: one row_result event per post row stored. Full input schema, every default, and the complete output field list: GET https://api.apify.com/v2/actors/socialdataapi~reddit-subreddit-posts-scraper/builds/default
```

#### Reddit Subreddit Posts Scraper MCP Server: use this Actor from ChatGPT, Claude or Cursor

Point your AI assistant at this actor and it can read subreddit posts on its own: titles, scores, comments, awards and subreddit info. No glue code, no scraping logic in your prompts.

```bash
claude mcp add --transport http apify "https://mcp.apify.com?tools=socialdataapi/reddit-subreddit-posts-scraper"
```

#### Step by step

1. [Create a free Apify account](https://console.apify.com/sign-up).
2. Open [Reddit Subreddit Posts Scraper](https://apify.com/socialdataapi/reddit-subreddit-posts-scraper) in the Apify Store.
3. Paste a subreddit name or URL.
4. Click **Start** (or send your API request).
5. Download or stream your results in JSON, CSV or Excel.

#### How to scale Reddit Subreddit Posts Scraper to bulk

Put many subreddits in **Subreddits**, one per line: each subreddit is its own scrape and gets up to **Max posts per subreddit** posts, so 10 subreddits with 50 each can return up to 500 posts in one run. All subreddits run at the same time and rows appear in the output while the run is going. For a daily feed, save the input as a task and put it on an Apify schedule, or call the API from your own code.

***

### ✨ Features

Reddit Subreddit Posts Scraper fetches clean, structured posts from any public subreddit. It's ideal for trend tracking, moderation research and community monitoring.

It extracts, per post:

- **Identity** – title, ID, author, subreddit, permalink
- **Engagement** – score, upvote ratio, comment count, total awards
- **Content** – self-text (and its HTML), flair, media type, NSFW/spoiler flags
- **Timing** – created date (epoch and ISO)
- **Subreddit info** – subscribers, weekly active users/contributions, rules, description, icon/banner images, attached to every post row

⚡ Scrapes several subreddits at once, each getting its own full post cap; resumable from any cursor if a run is capped or stopped early.

***

### Use cases 💡

- **Trend tracker** — pull a subreddit's Hot or Top posts on a schedule to spot what's rising.
- **Moderation researcher** — build a dataset of posts with flair, NSFW/spoiler flags and awards.
- **Community monitor** — watch subscriber counts and weekly actives alongside new posts.
- **Dashboard builder** — refresh a subreddit's latest posts on a schedule.
- **AI agent builder** — feed post titles and stats into a RAG index or reporting tool.

Building an AI agent? [Connect Reddit Subreddit Posts Scraper over MCP](#reddit-subreddit-posts-scraper-mcp-server-use-this-actor-from-chatgpt-claude-or-cursor) and let it call the actor on its own.

***

### Why choose this actor?

1. **Subreddit info included.** Subscribers, weekly active users/contributions, rules and description come back with every run — most subreddit-posts scrapers on Apify Store only return the posts.
2. **Fast.** A recorded 5-post run finished in about 1.2s/item; a comparable competitor actor measured 4.43s/item on the same size.
3. **Date filtering.** Keep only posts in a date range (`dateFrom`/`dateTo`) — Reddit's own listing API has no such filter.
4. **Resumable.** A capped or stopped run's status message names the exact cursor to continue from with **Resume after**.

***

### ⬇️ Input

![Reddit Subreddit Posts Scraper input form with example values](https://api.apify.com/v2/key-value-stores/WYkyEfqs10huyXYxr/records/ac-reddit-subreddit-posts-input.webp)

The actor accepts one or more subreddits; no other field is required.

| Parameter | Required | Type | Description | Example value |
|---|---|---|---|---|
| `subreddits` | Yes | array | A bare name, `r/Name`, or a full reddit.com/r/Name URL, one per line. Each subreddit is scraped on its own. | `["AbsoluteUnits"]` |
| `maxItems` | No | integer | Maximum posts for EACH subreddit. Default 20. 0 = every post Reddit's listing gives out (up to ~1,000). | `20` |
| `sort` | No | string | `hot` / `new` / `top` / `rising` / `controversial` / `best`. Default `hot`. | `"top"` |
| `timeframe` | No | string | `hour` / `day` / `week` / `month` / `year` / `all`. Only used by `top` and `controversial`. Default Reddit's own (day). | `"month"` |
| `dateFrom` / `dateTo` | No | string | ISO date or unix timestamp. Keeps only posts in this range, filtered on the posts already fetched. | `"2026-10-01"` |
| `trim` | No | boolean | true (default) = key fields only; false = key fields plus every other raw field Reddit returns. | `true` |
| `includeSubredditInfo` | No | boolean | Attach the subreddit's own info to every post row. Default true. | `true` |
| `afterCursor` | No | string | Resume every subreddit's listing from this cursor instead of page 1. | `"t3_1w05sdh"` |
| `maxRetries` | No | integer | Retries per request before giving up on it. Default 3. | `3` |
| `timeoutSecs` | No | integer | Seconds to wait for one request. Default 30. | `30` |
| `proxyConfiguration` | No | object | Optional proxy to start with. Default: no proxy. | `{"useApifyProxy": false}` |

#### Free plan limits

Users on the Apify free plan can fetch up to 20 posts per run (all subreddits together) and 200 per month. When the limit is reached the run finishes successfully with a status message explaining the limit. Upgrade to any paid Apify plan to remove these limits.

#### Example input

```json
{
    "subreddits": ["AbsoluteUnits"],
    "maxItems": 20,
    "sort": "top",
    "timeframe": "month",
    "trim": true,
    "includeSubredditInfo": true,
    "proxyConfiguration": {"useApifyProxy": false}
}
```

***

### ⬆️ Output

![Reddit Subreddit Posts Scraper output fields with example values](https://api.apify.com/v2/key-value-stores/WYkyEfqs10huyXYxr/records/ac-reddit-subreddit-posts-output.webp)

Every post is one typed, normalized JSON item with the same fields on every run; a value Reddit does not show for that post is `null`. Export the results as JSON (default), CSV or Excel, or open the Overview and Subreddit info views in the Output tab.

#### Example output

```json
{
    "id": "1xejmga",
    "author": "Lil_Demon_777",
    "author_fullname": "t2_1u348mhec5",
    "subreddit": "AbsoluteUnits",
    "title": "of a trees spot",
    "link_flair_text": "/r/all",
    "selftext": "",
    "downs": 0,
    "name": "t3_1xejmga",
    "upvote_ratio": 0.98,
    "ups": 74074,
    "total_awards_received": 0,
    "score": 74074,
    "created_utc": 1792875310,
    "created_at_iso": "2026-10-24T20:55:10.000Z",
    "num_comments": 534,
    "url": "https://v.redd.it/z0dp58yrahxh1",
    "permalink": "/r/AbsoluteUnits/comments/1xejmga/of_a_trees_spot/",
    "subreddit_subscribers": 2189873,
    "is_video": true,
    "over_18": false,
    "spoiler": false,
    "domain": "v.redd.it",
    "subreddit_id": "t5_a7wuv",
    "post_hint": "hosted:video",
    "subreddit_info": {
        "display_name": "AbsoluteUnits",
        "subscribers": 2189873,
        "weekly_active_users": 15234,
        "weekly_contributions": 412,
        "description": "Things that are large.",
        "is_nsfw": false
    },
    "scrapedAt": "2026-11-14T15:04:21.238Z"
}
```

***

### How does it work?

The actor reads public Reddit data — the same posts and subreddit info any visitor sees without logging in. You don't need a Reddit account, cookies or a browser. It reads each subreddit you give it, pages through its post listing until it has the number of items you asked for, and maps every post to the same normalized fields. If Reddit blocks a request, the actor retries and switches to a proxy by itself.

***

### How do you integrate Reddit Subreddit Posts Scraper into your stack?

It works with what you already use: the REST API from any language, MCP for AI agents, and no-code tools.

#### Using Reddit Subreddit Posts Scraper with the Apify API

```python
import requests

items = requests.post(
    "https://api.apify.com/v2/actors/socialdataapi~reddit-subreddit-posts-scraper/run-sync-get-dataset-items",
    params={"token": "APIFY_TOKEN"},
    json={"subreddits": ["AbsoluteUnits"], "maxItems": 20},
).json()
for post in items:
    print(post["title"], post["score"])
```

*Works in Go, Ruby, Node.js, cURL — any language that can make an HTTP request.*

#### MCP integration for AI agents

Add the actor to your AI assistant with one command:

```bash
claude mcp add --transport http apify "https://mcp.apify.com?tools=socialdataapi/reddit-subreddit-posts-scraper"
```

This registers Reddit Subreddit Posts Scraper as a tool your agent can call directly. It works in Claude Code, Cursor and Windsurf: ask for "the top posts from this subreddit this month" and the agent fills in the subreddit, runs the actor and reads the posts back as JSON.

#### No-code tools (n8n, Make, LangChain)

- **n8n** — use the Apify node with "Run an Actor" and pick `socialdataapi/reddit-subreddit-posts-scraper`, or the HTTP Request node pointed at the run-sync endpoint with your token.
- **Make** — add the Apify app's "Run an Actor" module, then "Get Dataset Items" to send the posts to Google Sheets, Airtable or your CMS.
- **LangChain** — install `langchain-apify` and use `ApifyActorsTool("socialdataapi/reddit-subreddit-posts-scraper")` as a tool in your agent.

***

### Is it legal to scrape Reddit data?

Scraping publicly available post listings is generally legal. Reddit Subreddit Posts Scraper returns only publicly available data — what any visitor sees on Reddit without logging in. Consult legal counsel if your use case involves bulk storage of personal data.

***

### Frequently asked questions

#### What fields does Reddit Subreddit Posts Scraper return?

Each post has its title, author, score, upvote ratio, comment count, awards, flair, media type, created date, and the subreddit's own info (subscribers, weekly actives, rules). See [the data fields section](#what-data-can-i-extract-with-reddit-subreddit-posts-scraper).

#### Does Reddit Subreddit Posts Scraper require a Reddit account or login?

No. Only public post data is extracted. No credentials needed.

#### How fast does Reddit Subreddit Posts Scraper run?

A recorded 5-post run finished in about 1.2s/item. Data is live, not cached.

#### Can I filter posts by date?

Yes — set `dateFrom` and/or `dateTo` (ISO date or unix timestamp). The filter applies to the posts already fetched for `maxItems`; it does not fetch extra pages to backfill a narrow date window.

#### Can I scrape multiple subreddits at once?

Yes. Put many subreddits in one run; each gets its own full **Max posts per subreddit** cap — one subreddit never uses up another's rows.

#### What happens if a subreddit has more posts than I asked for?

The run stops once it has your **Max posts per subreddit**. The status message names the cursor to resume from with **Resume after**, so a follow-up run can continue where it left off.

#### What happens if a subreddit doesn't exist or is private/quarantined/banned?

The run logs it and the status message counts it as failed; no crash, and every other requested subreddit still runs.

#### Does Reddit Subreddit Posts Scraper work with Claude, ChatGPT, and other AI agent tools?

Yes — it's available as an MCP tool. Register it in Claude Code, Cursor or Windsurf with `claude mcp add --transport http apify "https://mcp.apify.com?tools=socialdataapi/reddit-subreddit-posts-scraper"`. Any agent that can call an HTTP endpoint can use the REST API directly.

#### Does Reddit Subreddit Posts Scraper return data in a format LLMs can use directly?

Yes. Typed, normalized JSON with consistent field names. No HTML parsing, no selectors. Pass it straight to an LLM, index it into a vector store, or feed it to an agent tool — no transformation step.

#### What happens when Reddit changes its layout or updates its anti-bot system?

This actor is maintained and updated. When Reddit changes, the actor is updated — your calls keep returning the same JSON fields with no changes on your end.

#### Can I use Reddit Subreddit Posts Scraper without managing proxies or browser infrastructure?

Yes. Retries and switching to a proxy when blocked run on the actor's side. You send one request and get structured JSON back. No proxy accounts, no headless browser setup, no maintenance.

***

### Your feedback

Found a bug or missing a field? Let us know in the Issues tab of this actor. Every report is read and fixes ship quickly.

# Actor input Schema

## `subreddits` (type: `array`):

One or more subreddits: a bare name (e.g. 'AbsoluteUnits'), 'r/AbsoluteUnits', or a full https://www.reddit.com/r/AbsoluteUnits/ URL. Each subreddit is scraped on its own and gets its own 'Max posts per subreddit'.

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

Maximum number of posts to collect for EACH subreddit (3 subreddits x 20 = up to 60 posts). A subreddit stops earlier once its own listing ends. 0 = every post Reddit's listing gives out (up to ~1,000). Free plan: up to 20 posts per run (all subreddits together) and 200 per month; paid plans have no limit.

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

How Reddit orders the subreddit's posts. 'Top' and 'Controversial' also use 'Time window' below. A per-subreddit entry written as a URL (e.g. '.../top/?t=week') overrides this for that one subreddit.

## `timeframe` (type: `string`):

Only used by 'Top' and 'Controversial' sort; Reddit ignores it for the other sorts.

## `dateFrom` (type: `string`):

ISO date (e.g. '2026-10-01') or a unix timestamp. Keeps only posts created on or after this date. Filtered on the posts already fetched for 'Max posts per subreddit' - it does not fetch extra pages to backfill a narrow window. Empty = no lower bound.

## `dateTo` (type: `string`):

ISO date (e.g. '2026-11-01') or a unix timestamp. Keeps only posts created on or before this date. Empty = no upper bound.

## `trim` (type: `boolean`):

On (default): each post has the key fields (title, author, score, comments, awards, flair, media type...). Off: the key fields plus every other raw field Reddit returns for the post (~110 keys: media, preview, awards detail, flair richtext, gildings...).

## `includeSubredditInfo` (type: `boolean`):

Attach the subreddit's own info (subscribers, weekly active users/contributions, rules, description, icon/banner images) to every one of its post rows, under 'subreddit_info'. Off = that field is null and one less page load per subreddit.

## `afterCursor` (type: `string`):

Resume every subreddit's listing from this cursor instead of the first page - a post fullname like 't3_1w05sdh' (the status message of a run that stopped early names the cursor to continue from for each subreddit). Empty = start at page 1.

## `maxRetries` (type: `integer`):

How many times to retry one request (token mint, a listing page, about/rules) before giving up on it.

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

How long to wait for one request before treating it as failed and retrying.

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

Optional proxy to start with. If Reddit blocks requests, the actor moves to a stronger proxy automatically.

## Actor input object example

```json
{
  "subreddits": [
    "AbsoluteUnits"
  ],
  "maxItems": 20,
  "sort": "hot",
  "timeframe": "",
  "trim": true,
  "includeSubredditInfo": true,
  "maxRetries": 3,
  "timeoutSecs": 30,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

No description

## `subreddit` (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 = {
    "subreddits": [
        "AbsoluteUnits"
    ],
    "maxItems": 20,
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("socialdataapi/reddit-subreddit-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 = {
    "subreddits": ["AbsoluteUnits"],
    "maxItems": 20,
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("socialdataapi/reddit-subreddit-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 '{
  "subreddits": [
    "AbsoluteUnits"
  ],
  "maxItems": 20,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call socialdataapi/reddit-subreddit-posts-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,socialdataapi/reddit-subreddit-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/veoqOj4ZcIqcqPut0/builds/50oLwE7bT7bQghCaJ/openapi.json
