# Subreddit Scraper: New Posts and Comments from Any Subreddit (`charles_thedev/reddit-subreddit-scraper`) Actor

Get the newest posts and comments from any public subreddit, several at once. Titles, bodies, scores, comment counts, authors and links as JSON or CSV. No Reddit login, no API app, no rate limit juggling.

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

## Pricing

from $0.70 / 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

## Subreddit Scraper: new posts and comments from any subreddit

Get the newest posts and comments from any public subreddit, several subreddits per run. Titles, full text, scores, comment counts, authors, flair and links, as clean JSON or CSV. Built for community monitoring, research, content ideas and datasets.

### Why this Reddit scraper

- **Keeps paging.** Subreddit listings here are not stopped at the usual 1,000 items, so a busy community gives you its full recent history in one run.
- **Posts, comments or both.** Pull the new posts, the new comment stream, or both, for as many subreddits as you list.
- **Results in seconds.** Runs read from the Redlisten index of public Reddit posts and comments, so a 1,000 result run finishes in seconds instead of minutes, and there is no page loading to time out or get blocked.
- **$1.00 per 1,000 results, cheaper on higher Apify plans.** You pay for rows in your dataset plus $0.00005 per run, so a run that finds nothing costs next to nothing.
- **No login, no cookies, no proxies to set up.** Paste your input and run. Nothing to configure, nothing to maintain.
- **Clean, flat rows.** One row per post or comment, the same fields every time, ready for CSV, Excel, JSON, Google Sheets or a database.
- **Works with your stack.** Call it from the Apify API, schedule it, or plug it into Make, Zapier, n8n, LangChain or any MCP client.

### What people use it for

- Community monitoring: everything new in the subreddits your customers live in.
- Content and trend research: what a niche is talking about this week.
- Moderation and safety: review new posts and comments in bulk.
- Datasets: subreddit text for classification, sentiment or fine tuning.

### How to use it

1. Click **Try for free** and fill in the input.
2. Click **Start**. Most runs finish in seconds.
3. Download the dataset as JSON, CSV, Excel or HTML, or read it from the Apify API.

#### Input example

```json
{
  "subreddits": [
    "startups",
    "SaaS",
    "Entrepreneur"
  ],
  "include": "both",
  "maxItems": 1000
}
```

#### Output example

```json
[
  {
    "type": "post",
    "id": "t3_1xq7lh6",
    "url": "https://www.reddit.com/r/startups/comments/1xq7lh6/...",
    "subreddit": "startups",
    "author": "example_user",
    "created_utc": "2026-11-07T14:25:45Z",
    "score": 12,
    "title": "Which tool do you use for customer support?",
    "body": "We are a team of five and our inbox is getting out of hand...",
    "num_comments": 23,
    "link_url": null,
    "domain": "self.startups",
    "flair": "Question",
    "nsfw": false,
    "upvote_ratio": 0.93
  },
  {
    "type": "comment",
    "id": "t1_ok2x9qa",
    "url": "https://www.reddit.com/r/startups/comments/1xq7lh6/.../ok2x9qa/",
    "subreddit": "startups",
    "author": "another_user",
    "created_utc": "2026-11-07T14:40:02Z",
    "score": 5,
    "body": "We moved to a shared inbox last year and it fixed most of this.",
    "post_id": "t3_1xq7lh6",
    "post_title": "Which tool do you use for customer support?",
    "parent_id": "t3_1xq7lh6",
    "depth": 0
  }
]
```

Every row has `type` (post or comment), `id`, `url`, `subreddit`, `author`, `created_utc` (ISO 8601, UTC) and `score`. Posts add `title`, `body`, `num_comments`, `link_url`, `domain`, `flair`, `nsfw` and `upvote_ratio`. Comments add `body`, `post_id`, `post_title`, `parent_id` and `depth`.

### Pricing

**$1.00 per 1,000 results** on the Apify Free plan, $0.90 on Bronze, $0.80 on Silver and $0.70 on Gold and above. Each run adds $0.00005, five cents per thousand runs. No monthly rent. Set a maximum cost per run in Apify and the actor stops cleanly at it.

Need more than a few million results a month, live delivery, or the full stream of every new post and comment? The [Redlisten API](https://redlisten.com/?utm_source=apify\&utm_medium=actor\&utm_campaign=reddit-subreddit-scraper) has plans from free, with keyword streams to Slack, Discord, webhooks and email, full text search, mention trends and an MCP server for AI agents. Paste your own key into **Redlisten API key** to run this actor on your plan.

### FAQ

**How many posts can I get from one subreddit?**

As many as you set in **Max results per subreddit**, up to 10,000, from the most recent backwards.

**Can I scrape comments from a subreddit?**

Yes. Choose New comments, or Posts and comments.

**Do I need the subreddit name with r/?**

Either works: startups or r/startups.

**Private or quarantined subreddits?**

Only public subreddits are available.

**Can I be notified about new posts?**

Yes. With a free [Redlisten key](https://app.redlisten.com/?signup=1\&utm_source=apify\&utm_medium=actor\&utm_campaign=subreddit) a stream watches a subreddit and sends each new post to Slack, Discord, a webhook or email.

**Is it legal to scrape Reddit?**

This actor returns publicly available posts and comments. You are responsible for how you use the data, including privacy law and Reddit's terms where they apply to you.

### More Reddit actors

- Reddit Search Scraper
- Reddit Comments Scraper
- Reddit User Scraper

### About

Built on [Redlisten](https://redlisten.com/?utm_source=apify\&utm_medium=actor\&utm_campaign=reddit-subreddit-scraper), an API for public Reddit posts and comments. Docs: [redlisten.com/docs](https://redlisten.com/docs?utm_source=apify\&utm_medium=actor\&utm_campaign=reddit-subreddit-scraper). Support: support@redlisten.com.

Redlisten is not affiliated with Reddit, Inc.

# Actor input Schema

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

Names without r/, one per line.

## `include` (type: `string`):

New posts, new comments, or both.

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

Stop after this many posts or comments for each subreddit.

## `apiKey` (type: `string`):

Leave empty: the actor runs on its own key and you pay per result on Apify. Paste your own key from https://app.redlisten.com to use your Redlisten plan instead.

## Actor input object example

```json
{
  "subreddits": [
    "startups"
  ],
  "include": "posts",
  "maxItems": 100
}
```

# Actor output Schema

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

Every post and comment from the run, one row each.

## `overview` (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": [
        "startups"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("charles_thedev/reddit-subreddit-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": ["startups"] }

# Run the Actor and wait for it to finish
run = client.actor("charles_thedev/reddit-subreddit-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": [
    "startups"
  ]
}' |
apify call charles_thedev/reddit-subreddit-scraper --silent --output-dataset

```

## MCP server setup

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