# Reddit Subreddit Scraper | Hot, New & Top Posts (`genial_candlestand/reddit-subreddit-posts-scraper`) Actor

Get Reddit posts from many subreddits: title, text, score, upvote ratio, comments count, flair, author, publish date, post type and image URL. Hot, new, top, rising, controversial or best, top periods from hour to all time, date and NSFW filters. No login.

- **URL**: https://apify.com/genial_candlestand/reddit-subreddit-posts-scraper.md
- **Developed by:** [Flowo](https://apify.com/genial_candlestand) (community)
- **Categories:** Social media, Lead generation, AI
- **Features:** Limited permissions
- **Stats:** 1 total users, 1 monthly users, 98.4% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.70 / 1,000 posts

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 Subreddit Scraper | Hot, New & Top Posts

![Reddit Subreddit Scraper | Hot, New & Top Posts](https://api.apify.com/v2/key-value-stores/Ll7RrWtDkZYOrBvfE/records/reddit-com-group-subreddit-channel-threads-banner-5c61bc40.png)

Get the posts of one or many subreddits as flat JSON rows: post title, full text, score, upvote ratio, comments count, awards count, flair, author, publish date, post type, link and image URL, plus NSFW, spoiler, locked and pinned flags. Pick any Reddit order (hot, new, top, rising, controversial or best) and, for top and controversial, a period from the past hour to all time. The details come with every post, with no extra switch, and no login, account or API key is needed.

### What does Reddit Subreddit Scraper do?

You give it a list of subreddits (names like `python`, `r/AskReddit` or reddit.com URLs), a sort order and a limit. It reads each subreddit's feed page by page and saves one row per post, with the post's rank in the feed (`position`) and the sort and period you used. It is built for marketers and community managers who watch what is trending, researchers who collect datasets of top posts, schedulers that pick up new posts since the last run, and AI agents that need "the top posts of r/X this week" in one call.

### How to scrape Reddit subreddit posts

![How Reddit Subreddit Scraper works: Opens a reddit.com session on a residential IP, as a normal visitor; Reads each subreddit feed in your sort and period, page by page; Retries a blocked page on a fr](https://api.apify.com/v2/key-value-stores/Ll7RrWtDkZYOrBvfE/records/reddit-com-group-subreddit-channel-threads-how-0acf827b.png)

1. Open the actor in Apify Console and enter one or more subreddits in **Subreddits**, one per line.
2. Choose a **Sort**: Hot, New, Top, Rising, Controversial or Best.
3. For Top or Controversial, choose a **Time period** (past hour, 24 hours, week, month, year or all time).
4. Set **Max posts per subreddit** (1–1000) and, if you want, **Max posts in total**, **Posted after** and **Include NSFW posts**.
5. Leave the proxy at its default (Apify Residential, US) and click **Start**.
6. Download the posts as JSON, CSV, Excel or HTML, or read them through the API.

### How much does it cost to scrape Reddit?

Price per event by Apify plan:

| Event | Free | Bronze | Silver | Gold and above |
|---|---|---|---|---|
| Post | $2.00 per 1,000 | $1.90 per 1,000 | $1.80 per 1,000 | $1.70 per 1,000 |
| Actor start | $0.00005 | $0.00005 | $0.00005 | $0.00005 |

A test run with the API example input below returned 200 rows in 55 s.

You pay per post saved: one dataset row is one `post` event at $0.002, which is $2.00 per 1,000 posts, plus one `apify-actor-start` event of $0.00005 per run (256 MB memory = one event). There is no separate charge for platform usage.

Not charged: posts dropped by the NSFW filter or the **Posted after** filter, ads (never saved), and subreddits that return no posts (nonexistent, banned, private or an empty period).

| Scenario | Events | Cost on the Free plan |
|---|---|---|
| Hot posts of 1 subreddit, 100 posts | 100 posts + 1 start | $0.20 |
| Prefill: r/python and r/AskReddit, 100 each | 200 posts + 1 start | $0.40 |
| Top of the year of 1 subreddit, 1,000 posts | 1,000 posts + 1 start | $2.00 |
| 5 subreddits × 1,000 posts | 5,000 posts + 1 start | $10.00 |

### Input

![Reddit Subreddit Scraper input example: Subreddits, Sort order, Time period (Top and Controversial), Max posts per subreddit, Include NSFW posts](https://api.apify.com/v2/key-value-stores/Ll7RrWtDkZYOrBvfE/records/reddit-com-group-subreddit-channel-threads-input-dfc870c8.png)

| Field | Type | Default | What it does |
|---|---|---|---|
| `subreddits` | array of strings, **required** | prefill `["python", "AskReddit"]` | Community names, `r/name`, subreddit URLs or post URLs. Only the community name is used; duplicates are dropped. r/all, r/popular and user profiles are skipped with a warning. |
| `sort` | `hot`, `new`, `top`, `rising`, `controversial`, `best` | `hot` | Feed order, as on Reddit. Rising is one page of about 25 posts. |
| `timeFilter` | `hour`, `day`, `week`, `month`, `year`, `all` | `day` | Period for `top` and `controversial` only; ignored for other sorts (then `timeFilter` is null in the output). |
| `maxPostsPerSubreddit` | integer 1–1000 | 100 | Posts per subreddit, counted after the NSFW and date filters. |
| `maxItems` | integer ≥ 1 | none | Cap for the whole run; subreddits are scraped in the given order, so later ones may get fewer posts. |
| `postedAfter` | string | none | Only posts published after a date (`2026-11-01`, UTC), an ISO time (`2026-11-01T12:00:00Z`) or a relative period (`24 hours`, `7 days`, `2 weeks`, `1 month` = 30 days). A future or unreadable value is an input error. |
| `includeNsfw` | boolean | `true` | `false` skips posts marked NSFW; skipped posts are free. |
| `proxyConfiguration` | proxy | Apify Residential, US | Reddit admits only residential IPs. Datacenter or no proxy is switched to Residential with a log warning; your own proxy URLs are used as given. |

Example input — the week's top posts of r/funny:

```json
{
  "subreddits": ["funny"],
  "sort": "top",
  "timeFilter": "week",
  "maxPostsPerSubreddit": 500
}
```

### What data can you extract from Reddit?

![Reddit Subreddit Scraper output example: Title, Subreddit, Score, Comments, Upvote ratio](https://api.apify.com/v2/key-value-stores/Ll7RrWtDkZYOrBvfE/records/reddit-com-group-subreddit-channel-threads-output-037d9085.png)

| Field | What it holds |
|---|---|
| `id`, `url`, `title` | Post id (without `t3_`), post page on reddit.com, post title |
| `author`, `authorId`, `authorUrl` | Username (`[deleted]` kept as is), account id `t2_…` and profile URL; the id and URL are null for deleted accounts |
| `subreddit`, `subredditId` | Subreddit name as Reddit spells it (`Python`) and its id `t5_…` |
| `publishedAt` | Publish time, ISO 8601 UTC |
| `score`, `upvoteRatio`, `commentsCount`, `awardsCount` | Score, share of upvotes (0–1), number of comments and awards |
| `postType` | `text`, `link`, `image`, `gallery`, `video`, `gif`, `multi_media` or `crosspost` |
| `domain`, `contentUrl`, `imageUrl` | Link domain (`self.<subreddit>` for text posts), what the post points to (link, image, gallery or video URL; the post URL for text posts), preview image |
| `text` | Full body of a text post as plain text; null for link, media and title-only posts |
| `flair`, `language` | Post flair text; language detected by Reddit (ISO 639-1, null when unknown) |
| `isNsfw`, `isSpoiler`, `isLocked`, `isStickied`, `isLinkPost`, `isCrosspost` | Flags: NSFW (by the post or its subreddit), spoiler, comments locked, pinned by moderators, external link, crosspost |
| `position` | 1-based rank in the subreddit feed as Reddit served it (ads excluded, before the NSFW and date filters) |
| `sort`, `timeFilter`, `query` | The sort and period used (period null for hot, new, rising, best) and the subreddit as you typed it |
| `scrapedAt` | When the post was scraped |

A real row from r/Python, sorted by hot (text shortened):

```json
{
  "id": "1xr49cg",
  "url": "https://www.reddit.com/r/Python/comments/1xr49cg/pypis_redesigned_project_pages_with_clearer/",
  "title": "PyPI's redesigned project pages with clearer security signals are now live",
  "author": "AlSweigart",
  "authorId": "t2_369qx",
  "authorUrl": "https://www.reddit.com/user/AlSweigart/",
  "subreddit": "Python",
  "subredditId": "t5_2qh0y",
  "publishedAt": "2026-11-08T17:45:13.902Z",
  "score": 42,
  "upvoteRatio": 0.9772727272727273,
  "commentsCount": 1,
  "awardsCount": 0,
  "postType": "multi_media",
  "domain": "self.Python",
  "contentUrl": "https://www.reddit.com/r/Python/comments/1xr49cg/pypis_redesigned_project_pages_with_clearer/",
  "imageUrl": null,
  "text": "https://blog.pypi.org/posts/2026-11-06-ui-updates-complete/\nIn July, we announced a series of planned updates to the PyPI user interface. ...",
  "flair": "News",
  "language": "en",
  "isNsfw": false,
  "isSpoiler": false,
  "isLocked": false,
  "isStickied": false,
  "isLinkPost": false,
  "isCrosspost": false,
  "position": 1,
  "sort": "hot",
  "timeFilter": null,
  "query": "python",
  "scrapedAt": "2026-11-08T23:10:49.024Z"
}
```

### Use cases

- **Trends in your niche:** the hot posts of several communities in one run, with pinned moderator posts flagged by `isStickied`.
- **Top-of-period datasets:** the top posts of the week, year or all time, in rank order by `position`, for research or AI training data.
- **Scheduled monitoring:** `sort: new` with `postedAfter: "24 hours"` on a daily schedule returns only the posts of the last day.
- **Controversy and momentum research:** controversial posts of the month, or the rising page of a subreddit.
- **Safe-for-work datasets:** `includeNsfw: false` drops NSFW posts for free, and `maxItems` caps the whole run.

### Limitations

- Comments, user profiles and Reddit keyword search are not included; one row is one post.
- Reddit lists at most about 1,000 posts per subreddit and sort, so `maxPostsPerSubreddit` is capped at 1000 and a feed can end earlier. Rising is one page of about 25 posts.
- r/all and r/popular are not supported. A nonexistent, banned or private subreddit returns no posts (a warning in the log, no fake rows).
- Fields that can be empty: `text` (only text posts with a body), `imageUrl`, `flair` (some subreddits use none), `language` (null when Reddit does not know it), `score` (0 on fresh posts in subreddits that hide scores), and the author ids for deleted accounts. There is no video-only URL field: a video post's URL is in `contentUrl`.
- A Residential proxy is required; Reddit blocks datacenter IPs. If Reddit blocks the warm-up on 5 sessions in a row, the run fails with a clear message.
- Subreddits are scraped one after another with a short pause, about 3–4 seconds per page of ~25 posts; the prefill input (200 posts) takes about 40 seconds.

### Tips and troubleshooting

- **Only new posts since the last run:** use `sort: new` with `postedAfter` (e.g. `24 hours`). With New, paging stops at the date bound, so the run stays short.
- **Date filter with other sorts:** with hot, top, controversial, best or rising, `postedAfter` only filters what the feed returns (up to 1,000 feed positions are scanned). For a time window, prefer New or Top with a `timeFilter`.
- **0 rows?** Check the log: a short period like `top` + `hour` in a quiet subreddit is often empty, the subreddit may not exist or be private, or all posts were NSFW and `includeNsfw` is off. Empty results are free.
- **Fewer posts than expected?** Rising has only ~25 posts, Reddit may end the listing, or `maxItems` stopped the run before the last subreddits.
- **Proxy:** keep the default Residential proxy. You can change its country; datacenter settings are switched to Residential automatically.

### API, MCP and integrations

Run the actor from your code with the same JSON input as in Console. Your API token is in [Console → Settings → API & Integrations](https://console.apify.com/settings/integrations).

**Python** (`pip install apify-client`):

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("genial_candlestand/reddit-subreddit-posts-scraper").call(run_input={
    "subreddits": ["python", "AskReddit"],
    "sort": "hot",
    "maxPostsPerSubreddit": 100,
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
```

**Node.js** (`npm install apify-client`):

```js
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });
const run = await client.actor('genial_candlestand/reddit-subreddit-posts-scraper').call({
    "subreddits": ["python", "AskReddit"],
    "sort": "hot",
    "maxPostsPerSubreddit": 100,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

**HTTP** — one request runs the actor and returns the results (runs up to 5 minutes; longer ones: [run asynchronously](https://docs.apify.com/api/v2/act-runs-post)):

```bash
curl -X POST "https://api.apify.com/v2/acts/genial_candlestand~reddit-subreddit-posts-scraper/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"subreddits":["python","AskReddit"],"sort":"hot","maxPostsPerSubreddit":100}'
```

**AI agents (MCP).** Add the actor as a tool of the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp). Claude Code:

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

Claude Desktop, Cursor or VS Code: `{"mcpServers": {"apify": {"url": "https://mcp.apify.com?tools=genial_candlestand/reddit-subreddit-posts-scraper"}}}`. Then ask, for example:

- "Get the top 50 posts of r/python this week with score, comments count and flair"
- "List all new posts in r/worldnews and r/de from the last 24 hours"
- "Get the 100 hot posts of r/AskReddit and r/gaming without NSFW posts"

**Integrations.** Run it on a schedule with [Apify Schedules](https://docs.apify.com/platform/schedules) and send the results to Google Sheets, Slack, Zapier, Make, n8n or your webhook — see [Apify integrations](https://docs.apify.com/platform/integrations).

### FAQ

**Do I need a Reddit account or API key?**<br>
No. The actor reads public subreddit feeds without a login, account or API key.

**Can I scrape several subreddits in one run?**<br>
Yes. Put many subreddits in `subreddits` (scraped one after another); each row has `subreddit`, `query` and its own `position`, so you can tell them apart.

**How do I get the top posts of all time?**<br>
Set `sort` to `top` and `timeFilter` to `all`, with `maxPostsPerSubreddit` up to 1000.

**Are post details an extra option?**<br>
No. Text, flair, score, upvote ratio, comments and awards counts, flags and media URLs come on every row from the feed itself, with no switch to turn on.

**How is it different from other Reddit scrapers?**<br>
It returns fields such as `awardsCount`, `postType`, `domain`, `contentUrl`, `language`, the NSFW, spoiler, locked, pinned, link and crosspost flags, and the feed rank `position`. It supports all six sorts plus periods, uses plain HTTP instead of a browser, and costs $2.00 per 1,000 posts against $4 per 1,000 results for the most used Reddit actor in the Store.

**Is it legal to scrape Reddit?**<br>
The actor collects only public posts that anyone can see on reddit.com without logging in, and no personal data beyond what Reddit shows publicly (usernames and profile links of post authors). You are responsible for how you use the data: follow Reddit's terms, privacy laws such as GDPR, and copyright when you republish content.

### Also useful

- [YouTube Comments Scraper](https://apify.com/genial_candlestand/youtube-comments-and-replies-scraper) — follow the same topics on YouTube: comment text, likes, replies and authors
- [Google Trends Trending Now Scraper](https://apify.com/genial_candlestand/google-trending-now-scraper) — check what people search for right now: search volume, growth and related queries
- [Google News Scraper](https://apify.com/genial_candlestand/google-news-articles-search-scraper) — match Reddit discussions with news coverage: titles, sources and publish times
- [YouTube Search Scraper](https://apify.com/genial_candlestand/youtube-search-scraper) — find videos on a subreddit's topics: titles, channels, views and rank
- [Pinterest Search Scraper](https://apify.com/genial_candlestand/pinterest-search-scraper) — collect pins on the same themes: images, titles, links and reactions

# Actor input Schema

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

Communities to scrape, one per line: a name (python), r/python, a subreddit URL or a post URL. Only the community name is used; duplicates are dropped. r/all, r/popular and user profiles are skipped with a warning.

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

Feed order, as on Reddit: Hot (trending now), New (newest first), Top and Controversial (use Time period), Rising (one page of about 25 posts) or Best.

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

Past hour, 24 hours, week, month, year or all time. Used only with Top and Controversial; ignored for other sorts. A short period in a quiet subreddit can have no posts.

## `maxPostsPerSubreddit` (type: `integer`):

Stop each subreddit after this many posts (1–1000), counted after the NSFW and date filters. Reddit lists at most about 1000 posts per feed; Rising has about 25.

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

Optional cap for the whole run across all subreddits, scraped in the given order. Empty = only the per-subreddit limit applies.

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

Optional: only posts published after this moment — a date (2026-11-01, UTC), an ISO time (2026-11-01T12:00:00Z) or a relative period (24 hours, 7 days, 2 weeks, 1 month). With New, paging stops at the bound; with other sorts it filters the feed.

## `includeNsfw` (type: `boolean`):

Keep posts marked NSFW (18+). Turn off to skip them; skipped posts are not charged.

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

Reddit admits only residential IPs. Default: Apify Residential, US. Datacenter or no proxy is switched to Residential automatically, with a log warning.

## Actor input object example

```json
{
  "subreddits": [
    "python",
    "AskReddit"
  ],
  "sort": "hot",
  "timeFilter": "day",
  "maxPostsPerSubreddit": 100,
  "includeNsfw": true,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "US"
  }
}
```

# Actor output Schema

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

Dataset with all scraped posts

## `overview` (type: `string`):

The posts in the Overview table view

# 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": [
        "python",
        "AskReddit"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ],
        "apifyProxyCountry": "US"
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("genial_candlestand/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": [
        "python",
        "AskReddit",
    ],
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
        "apifyProxyCountry": "US",
    },
}

# Run the Actor and wait for it to finish
run = client.actor("genial_candlestand/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": [
    "python",
    "AskReddit"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "US"
  }
}' |
apify call genial_candlestand/reddit-subreddit-posts-scraper --silent --output-dataset

```

## MCP server setup

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