# Reddit Scraper - Subreddit Posts & Comments, No Login (`scrapewise/reddit-scraper`) Actor

Scrape Reddit posts and comments from any subreddit or post link without login: title, text, author, community, score, upvote ratio, comment count, date, flair, media links and permalink. Comments come without commenter names. Schedule it with onlyNew for alerts. Error rows are free.

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

## Pricing

from $0.79 / 1,000 post or comment delivereds

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 posts and post comments, no login

This Reddit scraper collects **the posts of any subreddit and the comments of any post**, with no Reddit account,
API key or cookie. Give it community names and get each post as one clean row: title, full text, author, community,
**score, upvote ratio, comment count**, date, flair, post type, media links and permalink. Turn on comments and each
comment becomes its own row with text, score, depth and parent, so the thread can be rebuilt. A post link brings the
comments of that post.

Use it to monitor brand or product mentions in the communities that matter to you, collect opinions for market
research, build datasets for AI training and RAG, follow what a niche community discusses every day, or find the
questions people ask for content and SEO work.

### At a glance

| What | Price |
|---|---|
| Post or comment delivered | **US$ 1.03 per 1,000 rows** (US$ 0.001035 each) |
| Run start | US$ 0.005 per run |

- 2 communities with 100 posts each = 200 rows = **US$ 0.22**. The same 200 posts with 10 comments each = 2,200 rows
  \= US$ 6.61.
- Error rows, duplicates, NSFW posts you skipped and posts already delivered in earlier runs (`onlyNew`) are never
  charged. `maxItems` is a hard cap, and a spending limit set on the run stops it cleanly with everything delivered so
  far.
- Proxy traffic is included in the price. Nothing to configure.

### Quick start

The newest posts of a community:

```json
{
  "subreddits": ["Python"],
  "maxItems": 50
}
```

Top posts of the week in two communities, with the 10 best comments of each post:

```json
{
  "subreddits": ["Python", "learnpython"],
  "sort": "top",
  "time": "week",
  "maxPostsPerCommunity": 25,
  "maxCommentsPerPost": 10,
  "commentSort": "top",
  "maxItems": 600
}
```

The comments of one post, newest first:

```json
{
  "startUrls": [{ "url": "https://www.reddit.com/r/Python/comments/1xpay57/python_all/" }],
  "commentSort": "new",
  "maxItems": 100
}
```

### Input

| Field | What it does |
|---|---|
| `subreddits` | Community names, one per line: `Python`, `r/Python` or the community link. |
| `startUrls` | Reddit links: a community (`reddit.com/r/Python/`, also `/new`, `/top`, `/rising`) or a post with its community in the link (`reddit.com/r/Python/comments/<id>/...`), which brings that post's comments. |
| `sort` | `new` (default), `hot`, `top` or `rising`. A link with its own sort keeps it. |
| `time` | Period for `top`: `hour`, `day`, `week`, `month`, `year`, `all` (default). |
| `maxItems` | Cap for the whole run, posts and comments together (default 50; 0 = no cap). |
| `maxPostsPerCommunity` | Posts per community before moving to the next one (empty = only the run cap). |
| `maxCommentsPerPost` | 0 = posts only (default). A number opens each post found in a community and adds up to that many comments as rows. Post links in `startUrls` always bring their comments. |
| `commentSort` | `top` (default), `best`, `new`, `old`, `controversial`, `qa`. |
| `includeNsfw` | Off by default: posts marked NSFW are skipped for free. |
| `onlyNew` | For schedules: delivers only posts not seen in earlier runs of the same community. |
| `proxyConfiguration` | Pre-set for Reddit. Keep the default. |

Inputs written for other Reddit tools keep working: `communityNames`, `communitySort`, `timeFilter`, `maxPostCount`,
`maxComments`, `includeNSFW`, `maxResults` and `urls` are accepted as aliases. A keyword search field or a search link
returns a free `INVALID_INPUT` row instead of failing the run (see [Limitations](#limitations)).

### Output

**Post row** (`type: post`):

| Field | What it is |
|---|---|
| `id`, `url` | Reddit post id (without the `t3_` prefix) and permanent link |
| `title`, `body`, `bodyHtml` | Title, the post text as plain text (one paragraph per line) and as simple HTML with its links |
| `authorName`, `authorId` | The account that published the post |
| `communityName`, `communityId` | Subreddit name (without `r/`) and id |
| `score`, `upVoteRatio`, `commentCount`, `awardCount` | Engagement counts as Reddit shows them at the moment of the run |
| `createdAt` | Publication time, UTC |
| `flair` | Post flair text, when the post has one |
| `postType`, `domain`, `externalUrl` | Reddit's post type (`text`, `multi_media`, `link`, `image`, `gallery`, `video`...), the link domain and the external link of a link post |
| `imageUrls`, `videoUrls`, `isVideo` | Links of the images and video streams Reddit shows for the post, when it has media |
| `isNsfw`, `isSpoiler`, `isStickied`, `language` | Flags and content language code |
| `sourceInput` | The community or link that produced the row |

**Comment row** (`type: comment`): `id`, `url`, `postId`, `parentId` (null for a top-level comment), `depth`,
`score`, `body`, `bodyHtml`, `createdAt`, `communityName`, `isCollapsed`, `sourceInput`. Comment rows carry **no
commenter name, id or avatar**: the text, score, date and position in the thread are what you get.

One real post row (text shortened):

```json
{
  "type": "post",
  "id": "1xj9fse",
  "url": "https://www.reddit.com/r/Python/comments/1xj9fse/pep_851_add_listdiscard/",
  "title": "PEP 851 – Add list.discard()",
  "authorName": "kirara0048",
  "communityName": "Python",
  "score": 214,
  "upVoteRatio": 0.97,
  "commentCount": 56,
  "createdAt": "2026-10-30T08:05:21Z",
  "body": "PEP 851 – Add list.discard()\n\nhttps://peps.python.org/pep-0851/\n\nAbstract\n\nAdd list.discard(x), which removes the first item equal to x if one is present and does nothing otherwise...",
  "flair": "News",
  "postType": "multi_media",
  "domain": "self.Python",
  "isNsfw": false,
  "isStickied": false,
  "language": "en",
  "sourceInput": "r/Python"
}
```

One real comment row:

```json
{
  "type": "comment",
  "id": "19s8g17qghrk5",
  "url": "https://www.reddit.com/r/Python/comments/1xpay57/comment/19s8g17qghrk5/",
  "postId": "1xpay57",
  "parentId": "19s8amipscd6r",
  "depth": 1,
  "score": 1,
  "body": "Oh think I started with basic from commodore 64 (which gives away my age). I didn't know much what I was doing but nobody could know so I was fine...",
  "createdAt": "2026-11-06T16:01:20Z",
  "communityName": "Python",
  "isCollapsed": false,
  "sourceInput": "https://www.reddit.com/r/Python/comments/1xpay57/python_all/"
}
```

### Comments

Comments are delivered the way Reddit shows them when a post is opened: the first view of the thread, which is
usually 15 to 25 comments across the first levels, in the order of `commentSort`. Replies hidden behind "more
replies" and "load more comments" are not expanded (see [Limitations](#limitations)). For posts found in a community,
comments are only collected when `maxCommentsPerPost` is above 0; a post link in `startUrls` always brings its
comments. Every comment counts toward `maxItems`.

A post link delivers **comment rows only**. The post's own row (title, text, score, author) comes through the
community listing: list the community with `sort: new` or `top` and the post is there with its fields, and
`maxCommentsPerPost` adds its comments in the same run.

### Errors you may see

Every error is a row with `errorCode` and is never charged:

| errorCode | Meaning |
|---|---|
| `INVALID_INPUT` | A link is not a Reddit community or post link (user profiles and searches are not collected, a post link needs its community), or a field has a wrong value |
| `NOT_FOUND` | The community or post does not exist or was deleted |
| `PRIVATE_OR_BANNED` | The community is private, banned or quarantined, so its posts are not public |
| `NO_RESULTS` | Nothing matched this sort and time filter, or the post has no comments yet |
| `BLOCKED` | Reddit refused every attempt for this source; run it again in a few minutes |
| `NOT_REACHED` | The run timeout arrived before this source was finished |

### Integrations, scheduling and AI agents

- **Schedule** a community every hour or day in [Apify schedules](https://docs.apify.com/platform/schedules) with
  `onlyNew` on: each run delivers only the posts that appeared since the last one, ready for alerts.
- **Export** as JSON, CSV, Excel or XML, or read the dataset from the [Apify API](https://docs.apify.com/api/v2).
- **Connect** it to Make, n8n, Zapier, Slack or Google Sheets through
  [Apify integrations](https://docs.apify.com/platform/integrations), for example a Slack message for every new post
  in r/yourproduct, or a filter on `title` and `body` for the words you follow.
- **AI agents:** call it as a tool through the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp) in
  Claude, ChatGPT, Cursor or any MCP client, for example "get the 50 newest posts in r/Python with their top comments
  and summarize the recurring problems".

### FAQ

**Do I need a Reddit account or API key?** No. Everything comes from public Reddit pages, without login, cookies or
API credentials.

**How many posts can I get from one community?** Reddit lists about 24 posts per page and stops around 1,000 posts
per community and sort. Combining `new`, `hot`, `top` with different time filters and `rising` reaches further back.

**Can I search Reddit by keyword?** Not in this version. List the communities where the topic lives and filter the
`title` and `body` fields in your export, spreadsheet or automation.

**Can I get user profiles or a user's post history?** No. Profile pages are not collected, and comment rows carry no
commenter name. Posts keep the name of the account that published them.

**Why does a post link return only comments?** The post row with title, text and score comes from the community
listing; the post link opens the discussion itself. Use both in the same run when you want everything.

**Is it legal?** The Actor reads public pages only and returns no emails or phone numbers. You are responsible for
how you use the data under the laws that apply to you.

**Something broke or a field is missing?** Open an issue on the Actor page; issues are answered within a day.

### Limitations

- Keyword search (across Reddit or inside a community) is not available; a search field or link returns a free
  `INVALID_INPUT` row.
- A post link delivers its comments, not a post row; the post's fields come through the community listing.
- Comments come from the first view of the thread (usually 15 to 25 per post). Deeper replies behind "more replies"
  are not expanded, so `commentCount` can be higher than the number of comment rows.
- User profiles, user post histories, community rules and member counts are not collected.
- Counts (score, upvote ratio, comments) are the ones Reddit shows at the moment of the run.

### Changelog

- **14 Nov 2026:** connection updates; community lists, post links and comments work again.
- **8 Nov 2026:** first version: community listings with sort and time filter, comments per post and from post links,
  `onlyNew` for schedules, free error rows.

# Actor input Schema

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

Community names, one per line: Python, r/Python or the community link all work. Each community is listed with the sort and time filter below.

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

Reddit links: a community (reddit.com/r/Python/, also /new, /top, /rising) or a post with its community in the link (reddit.com/r/Python/comments/<id>/...). A post link brings the comments of that post; the post itself comes through the community listing. User profile and search links are not collected.

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

Order of the community posts, as on Reddit. A link with its own sort (reddit.com/r/Python/top/) keeps it.

## `time` (type: `string`):

Period for the Top sort, the same options as on Reddit. Ignored by New, Hot and Rising.

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

Hard cap for the whole run, posts and comments together, across all communities and links. 0 = no cap.

## `maxPostsPerCommunity` (type: `integer`):

Posts to take from each community before moving to the next one. Empty or 0 = only the run cap applies. Reddit lists about 24 posts per page and stops around 1,000 posts per community.

## `maxCommentsPerPost` (type: `integer`):

For posts found in a community: 0 = posts only (default); a number opens each post and adds up to that many comments as their own rows. A post link in Start URLs always brings its comments (all of the first comment view, or up to this number when it is above 0). Comment rows have no commenter name.

## `commentSort` (type: `string`):

Order of the comments on each post, as on Reddit.

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

On: posts marked NSFW are delivered too. Off (default): they are skipped for free.

## `onlyNew` (type: `boolean`):

On: remembers the posts delivered in earlier runs of the same community (in your account) and delivers only posts not seen before. Stops a community after two pages with nothing new. Skipped posts are free.

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

Pre-set for Reddit and included in the price. Keep the default; other settings are refused by Reddit.

## Actor input object example

```json
{
  "subreddits": [
    "Python"
  ],
  "sort": "new",
  "time": "all",
  "maxItems": 50,
  "maxCommentsPerPost": 0,
  "commentSort": "top",
  "includeNsfw": false,
  "onlyNew": false,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "US"
  }
}
```

# Actor output Schema

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

No description

## `resultsCsv` (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": [
        "Python"
    ],
    "maxItems": 50,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ],
        "apifyProxyCountry": "US"
    }
};

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

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

```

## MCP server setup

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