# Reddit Scraper | Subreddit & User Posts Export (`dataizi-srl/reddit-com-scraper`) Actor

Pay per row, no login: posts from subreddits and r/popular as JSON with score, comment count, date and link. Posts only, no comments or search. No new, rising or r/all; up to about 1,000 posts per listing; about 100 requests per 10 min per IP without proxy. Blocked runs fail with a reason.

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

## Pricing

from $0.66 / 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 Scraper: subreddit and user posts

Export **public Reddit posts** from any subreddit, from `r/popular` and from a user's profile, one clean row per post. Each row holds the title, subreddit, author, score, upvote ratio, comment count, post flair, NSFW and spoiler flags, post text, image and video links, link target, domain and dates. Export to JSON, CSV or Excel. No Reddit account, no API key.

**What to expect, before you run it.** This scraper returns **posts only**. It does **not** read comments, it does **not** search Reddit by keyword, and it cannot read the `new` or `rising` feeds or `r/all`. One listing gives you up to about **1,000 posts**, 100 per request; Top and Controversial listings can end sooner. Without a proxy, Reddit allows about 100 requests per 10 minutes per network address. If Reddit blocks a run, the run **fails with a reason** instead of finishing green with an empty dataset. The section "What it can't do" has the full list.

### 🚀 Quick start

1. Click **Try for free** (or **Start**) with the default input. You get the 10 current hot posts of r/programming.
2. Replace the subreddit with your own: type a name such as `dataengineering` in **Subreddits**, or paste a link in **Reddit links**.
3. Open the **Output** tab, choose a view (Overview, Engagement, Content or Labels) and export.

### ✅ What you get

- **Subreddit listings.** The Hot, Top, Controversial or Best posts of any public subreddit. Top and Controversial take a time window from the past hour to all time.
- **`r/popular`.** The posts Reddit shows on its popular page.
- **A user's posts.** Paste a profile link such as `https://www.reddit.com/user/spez/` to get the posts that user submitted.
- **Posts by link.** A post link returns that post as one row with its current score and comment count. It does not return the comments.
- **Reddit's own fields.** Post flair and its icons, NSFW, spoiler, original-content, stickied, locked and archived flags, removal state, the crosspost count and the community's member count. Field names are camelCase versions of Reddit's keys, and each field text says which key it reads.
- **Few requests.** Reddit sends 100 posts per request, so a list of 1,000 posts takes about 10 requests.
- **Only recent posts.** Set **Only posts newer than** to a date or `7 days` to skip older ones. It filters the posts that the listing already returns.
- **A named reason for every source.** The run summary says, for each source, whether it was read, empty, private, banned, blocked or rate-limited, so a short result never leaves you guessing.
- **Clean rows.** Numbers are numbers, dates are ISO 8601 in UTC, links are absolute, and a value Reddit does not give is `null`, never an empty string.

### 🚫 What it can't do

Reddit gives a visitor who is not signed in less than the website shows. These are not offered, and the scraper never pretends otherwise:

- **No comments.** Not the comments of a post, not a comment count per comment, not a comment cap. A post row carries `commentCount`, the number of comments Reddit shows for the post, and nothing more.
- **No keyword or site search.** You cannot ask for "posts mentioning X". Give subreddits, users and links, then filter the rows afterwards.
- **No `new` or `rising` sort, and no `r/all`.** The sorts on offer are Hot, Top, Controversial and Best. For recent posts use **Only posts newer than** on Hot or Top.
- **Up to about 1,000 posts per listing.** Reddit stops a listing near that depth, and Top and Controversial listings can end sooner (Top of all time on a large subreddit ended at 499 posts in our tests). **Only posts newer than** filters inside that window and cannot reach further back. To read more of one subreddit, add it several times with **Top** and different time windows (for example the links `/r/<name>/top/?t=year` and `/r/<name>/top/?t=month`) and deduplicate on `postId`. Each listing still stops at up to about 1,000 posts; a post that appears in two listings of the same run is saved once and charged once.
- **A thread link gives the post row only.** It returns the post's own fields and no comments.
- **No profile details.** Karma, cake day and trophies of a user are not collected, and neither is a user's comment history.
- **Quota without a proxy.** Reddit allows about 100 requests per 10 minutes per network address, and that address is shared. A listing request returns up to 100 posts, a post link takes one request per post. A run that meets the limit waits up to 2 minutes for Reddit's limit to reset, or up to about 10 minutes after every 1,000 posts saved; otherwise it stops, keeps its rows, and says so. Switch on Apify Proxy to spread requests over more addresses.
- **No private, banned or quarantined communities.** They end as a named status in the run summary, not as rows.
- **Counts are Reddit's.** Reddit fuzzes scores slightly and the figures can differ by a few points from one read to the next.

### 💡 Use cases

- **Community monitoring.** Track what a subreddit talks about this week: top posts by score and comment count.
- **Product and market research.** Read what people post about a category in the subreddits where they ask for advice.
- **Content ideas.** See which post types, domains, flairs and titles get the most votes in your niche.
- **Trend tracking.** Schedule a daily run on Hot or Top and compare posts, scores and ranks over time.
- **Dataset building.** Collect post titles and text from chosen subreddits for analysis or model training. Check Reddit's terms and the Personal data section first.
- **Benchmark communities.** Compare member counts, post volume and engagement of several subreddits in one table.

### 🔧 Input

Everything is optional: with no subreddit or link, the sample runs. The default input is small on purpose: one subreddit, 10 posts, no proxy.

| Field | What it does |
|---|---|
| **Subreddits** | Names such as `python` or `r/python`. Each one is read with the **Sort** you choose. |
| **Reddit links** | Subreddit links (`/r/<name>/`, `/r/<name>/top/?t=week`), `r/popular`, user links (`/user/<name>/`) and post links (`/r/<name>/comments/<id>/...`, `redd.it/<id>`), starting with `https://`, with `www.`, `old.` or no prefix (`https://reddit.com/r/python/`). A sort or window inside a subreddit link wins over the settings for that link. A post link returns that post only, without comments. Links the scraper cannot serve (`new`, `rising`, `r/all`, search) are refused at start, each with its reason. You can also link or upload a text file of links, one per line. |
| **Sort** | `Hot` (default), `Top`, `Controversial` or `Best`. `New` and `Rising` are not served. |
| **Time window** | `Hour`, `Day`, `Week` (default), `Month`, `Year` or `All time`, for Top and Controversial only. |
| **Posts per source** | The most posts read from each subreddit, `r/popular` or user, 1 to 1,000 (default 10). Reddit ends a listing at up to about 1,000 posts, and some Top and Controversial listings end sooner. |
| **Maximum posts in total** | Optional cap on the posts of the whole run, default 100; 0 means no cap. |
| **Only posts newer than** | A date (`2026-11-01`) or a relative time (`7 days`). It filters the posts the listing returns, up to **Posts per source**, and cannot reach further back than the listing does. |
| **Include NSFW posts** | On by default. Turn it off to skip NSFW posts; skipped posts are not charged. |
| **Include author names** | On by default. Turn it off and the author name, profile link and author flair are `null`. |
| **Proxy** | No proxy by default. Apify Proxy (datacenter) or residential Apify Proxy are available; search-engine and custom proxy URLs are not supported. Without a proxy Reddit allows about 100 requests per 10 minutes per address. |

Example input:

```json
{
  "subreddits": ["programming"],
  "sort": "hot",
  "maxPostsPerSource": 10,
  "proxyConfiguration": { "useApifyProxy": false }
}
```

### 📊 Output

Every run's dataset holds one kind of row: a post. The **Output** tab has four views: **Overview**, **Engagement**, **Content** and **Labels**. Fields are flat and typed; a missing value is `null` and an empty list is `[]`. The most useful fields:

| Field | What it holds |
|---|---|
| `postId` | Reddit's id of the post (`t3_...`). Use it to deduplicate. |
| `title`, `text`, `textHtml` | The post title, and the body as markdown and as HTML. |
| `subreddit`, `subredditSubscribers` | The community and its member count. |
| `author`, `authorUrl` | The poster's username and profile link. Personal data. |
| `score`, `upvoteRatio`, `commentCount` | The vote count, the share of upvotes (0 to 1) and the number of comments Reddit shows. |
| `createdAt`, `editedAt` | When the post was created and, if it was edited, when. ISO 8601 UTC. |
| `url`, `contentUrl`, `domain` | The post link, the link a link post points to, and its domain. |
| `linkFlairText`, `linkFlairRichtext` | The post flair as text and with its emoji images. |
| `isNsfw`, `isSpoiler`, `isOriginalContent`, `isStickied`, `isLocked`, `isArchived` | The labels Reddit puts on a post. |
| `thumbnailUrl`, `mediaUrls`, `videoUrl`, `poll` | Images, video and poll options when the post has them. |
| `crosspostCount`, `removedByCategory`, `awardCount`, `awards` | Crossposts, why Reddit removed the post when it did, and Reddit's award count and list (Reddit's public listing gave none in our checks, so expect 0 and an empty list). |
| `rank`, `sourceType`, `sourceFeed`, `inputUrl`, `scrapedAt` | The place in the listing, where the row came from (`subreddit`, `popular`, `user`, `post_link`), the feed (`hot`, `top:week`...), your input, and when it was read. |

The field texts in the dataset schema list every field with the Reddit key it reads.

### 🗂️ Where are my results?

- **Dataset.** The rows, in the **Output** tab and through the API. Download as JSON, CSV, Excel, XML or HTML.
- **Run summary.** A record named `OUTPUT` in the run's key-value store: the status of the run and, for every source, the rows saved, the requests made and the reason it stopped or was skipped. Read it when a run returns fewer rows than you expected.

### 📰 Replacing Reddit RSS feeds

Reddit ended its RSS feeds on 13 November 2026. If a workflow read a subreddit's or a user's feed, this is what to set here:

| You used | Set this here |
|---|---|
| `/r/<name>/.rss` (the hot feed) | The subreddit in **Subreddits**, with **Sort** Hot. |
| `/r/<name>/top/.rss?t=week` | The link `https://www.reddit.com/r/<name>/top/?t=week`. |
| `/user/<name>/submitted/.rss` | The link `https://www.reddit.com/user/<name>/`. |
| `/r/<name>/new/.rss` | **Not served**: Reddit does not give the New feed to this kind of visitor. Nearest: Hot, or Top with the Day window, plus **Only posts newer than** `1 day` on a daily schedule. It catches popular recent posts, not every new post. |

Field map: RSS `link` → `url`, `title` → `title`, `author` → `author`, `content` → `textHtml`, `published` and `updated` → `createdAt`, `id` → `postId`.

Comment feeds and search feeds have no replacement here.

### 🔌 Integrations and API

- **API.** Start a run and get its rows in one call with the actor's `run-sync-get-dataset-items` endpoint. Copy the exact address from the actor's **API** tab; it looks like this:

```bash
curl -X POST "https://api.apify.com/v2/acts/<ACTOR_ID>/run-sync-get-dataset-items?token=<YOUR_APIFY_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{"subreddits": ["programming"], "sort": "hot", "maxPostsPerSource": 10}'
```

- **n8n, Make and Zapier.** Use Apify's own integrations for these tools to start the actor and read its dataset.
- **Schedules.** Run it on a schedule in Apify Console, for example daily with **Only posts newer than** set to `1 day`.
- **Webhooks.** Let a webhook tell your system when a run finishes. A run that Reddit refuses, or that meets a server error or a change in what Reddit sends, is marked failed instead of ending green and empty, so a "run failed" webhook fires for it.
- **AI agents.** Connect an AI assistant to the Apify MCP server at `https://mcp.apify.com` and add this actor as a tool, so the assistant can run it and read its results.

### 💸 Pricing

Pay per result: **$1.09 per 1,000 posts** on the Apify Free plan, and **from $0.66 per 1,000** on paid plans.

- One row is one result, a post. All fields of the row are included and **not billed separately**.
- Duplicate posts, posts skipped by a filter, communities Reddit does not show, links that are not Reddit links and runs that are blocked save no rows and give **no row charge**.
- You are not billed separately for compute or for Apify Proxy.
- Set a maximum cost per run and the scraper stops cleanly when it reaches it, keeping everything it saved.

### ⚡ Speed

Reddit sends 100 posts per request, and the scraper reads one request after another. A run that nears its timeout stops cleanly and keeps every row it saved; the run summary says when it did.

### ⚠️ Limitations

- Reddit decides what a visitor who is not signed in sees and can change it at any time. If it does, the run **fails with a clear message** and does not return half-wrong rows silently. Report it in the Issues tab with your run link.
- Reddit may refuse some network addresses or run out of quota for an address. The run says which, keeps the rows it has, and tells you to retry later or to switch on Apify Proxy.
- Posts can be removed or edited between two runs; a post's score and comment count change by the minute.

### ❓ FAQ

**Can I get the comments of a post?** No. This scraper returns posts only. A post link gives the post row with its comment count, not the comments.

**Can I search Reddit for a keyword?** No. It reads subreddit listings, `r/popular`, user pages and post links. Use another actor if keyword search is what you need.

**Why no New sort?** Reddit does not serve the `new` and `rising` feeds to this kind of visitor. For recent posts, use Hot or Top with **Only posts newer than**.

**Do I need a Reddit account or API key?** No.

**Why did my run fail instead of returning nothing?** A failed run means Reddit refused every source, ran out of quota, or changed its answers. The run summary and the log name the reason. A run that read a community that is empty, private or banned ends successfully, with that reason in the summary.

**Can I run it on a schedule?** Yes. Use Apify's schedules with **Only posts newer than** set to `1 day` on a Hot or Top listing to collect the recent posts each day.

### 🔒 Personal data

Reddit posts are written by real people. The output includes their usernames, profile links and flair, and the text they wrote, which can contain anything a person chose to publish about themselves or others. The scraper reads only what a visitor sees, never private data. You are responsible for having a lawful basis under privacy laws such as the GDPR for storing and using it. To minimise what you collect, turn off **Include author names**: the author fields are then `null`.

### Disclaimer

This is an unofficial tool. It is not affiliated with, endorsed by or sponsored by Reddit, Inc. The name "Reddit" and the site's icon belong to their owners and are used here only to identify the website the scraper reads. Use it in line with Reddit's terms and applicable law.

# Changelog

This Actor's version history is a separate document: https://apify.com/dataizi-srl/reddit-com-scraper/changelog.md

# Actor input Schema

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

Subreddit names, one per line: `python` or `r/python`. Case does not matter. Each one is read with the Sort you choose below, and the run returns its posts only, never its comments.

## `startUrls` (type: `array`):

Links, one per line: a subreddit (`https://www.reddit.com/r/programming/`, or with a sort and window such as `/r/python/top/?t=week`), `https://www.reddit.com/r/popular/`, a user (`https://www.reddit.com/user/spez/`) or a post (`https://www.reddit.com/r/programming/comments/abc123/title/`, `https://redd.it/abc123`), starting with `https://`, with `www.`, `old.` or no prefix (`https://reddit.com/r/python/`). A sort or window inside a subreddit link wins over the settings below for that link. A post link returns that post's row only, without comments. Not served and refused at start with the reason: `new` and `rising` links, `r/all`, search links, a user's comments page and other sites.

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

The order of a subreddit's posts, for subreddit sources without their own sort: Hot, Top, Controversial or Best. New and Rising are not served: Reddit does not give them to this kind of visitor.

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

The period for Top and Controversial: hour, day, week, month, year or all time. Ignored for Hot and Best.

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

Keep only posts created on or after this date (`2026-11-01`) or relative time (`7 days`, `2 weeks`, `3 months`). It filters the posts the listing returns, up to Posts per source, and cannot reach further back than the listing does (up to about 1,000 posts). It does not create a New feed.

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

On by default so the export matches what the listing shows. Turn it off to skip posts Reddit marks NSFW; skipped posts are not saved and not charged.

## `maxPostsPerSource` (type: `integer`):

The most posts read from each subreddit, `r/popular` or user, 1 to 1,000. Default 10. Reddit ends a listing at up to about 1,000 posts, and some Top and Controversial listings end sooner, so a larger number returns what the listing has. A post link always returns one post.

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

Stops the run after this many rows over all sources. Default 100, which keeps a first run quick; set 0 for no cap. Each row is one result you pay for. The run also stops cleanly when your maximum cost per run is reached, and keeps every row it saved.

## `includePersonalData` (type: `boolean`):

On by default: the author name, profile link and author flair are in every row. Turn it off to set them to `null`. Usernames are personal data, so you need a lawful basis under privacy laws such as the GDPR to keep them.

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

No proxy by default. Without a proxy Reddit allows about 100 requests per 10 minutes per network address, shared with other users of it, and a run that meets the limit waits up to 2 minutes for it to reset (up to about 10 minutes after every 1,000 posts saved), otherwise stops early and keeps its rows. Apify Proxy (datacenter) spreads requests over more addresses; residential Apify Proxy is also accepted. Search-engine proxies and custom proxy URLs are not supported: the run stops at start with a message and saves no rows.

## Actor input object example

```json
{
  "subreddits": [
    "programming"
  ],
  "sort": "hot",
  "timeFilter": "week",
  "includeNsfw": true,
  "maxPostsPerSource": 10,
  "maxItems": 100,
  "includePersonalData": true,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

Overview: one row per post of the sources you gave.

## `engagement` (type: `string`):

Engagement: score, upvote ratio, comment count, crossposts and the community's size, to see what performs.

## `content` (type: `string`):

Content: post text, images, video, link target and domain, to export what a post says.

## `labels` (type: `string`):

Labels: flair, NSFW, spoiler, stickied, locked, archived and removal labels, to filter and moderate.

## `runSummary` (type: `string`):

Run summary: the status of the run and a reason for every source.

# 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": [
        "programming"
    ],
    "sort": "hot",
    "maxPostsPerSource": 10,
    "maxItems": 100,
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("dataizi-srl/reddit-com-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": ["programming"],
    "sort": "hot",
    "maxPostsPerSource": 10,
    "maxItems": 100,
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("dataizi-srl/reddit-com-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": [
    "programming"
  ],
  "sort": "hot",
  "maxPostsPerSource": 10,
  "maxItems": 100,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call dataizi-srl/reddit-com-scraper --silent --output-dataset

```

## MCP server setup

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