# Reddit Comments Scraper: Posts and Subreddits (`kaleidoscopelabs/reddit-comments-scraper`) Actor

Scrape Reddit comments from any public post or subreddit, no login or Reddit API key needed: each comment with its text, score, time, depth, its reply's parent and its post's title. Read whole threads or the newest posts' comments, filter by date or depth. Pay per comment.

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

## Pricing

from $0.70 / 1,000 comments

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

### What does Reddit Comments Scraper do?

**Scrape Reddit comments from any public post or subreddit, logged out, no Reddit API key needed: one record per comment and reply, with its text, score, time, depth, the comment it answers and its post's title.**

[![Use it from your AI agent: copy the MCP setup prompt](https://assets.kaleidoscopelabs.io/afy/mcp/mcp-setup.5ac6bded.png)](https://mcp.apify.com/?tools=kaleidoscopelabs/reddit-comments-scraper)

![The 188 comments of r/SaaS's 10 hot posts, each at the time it was written, in a lane by its depth and as large as its score: 112 top-level, 54 replies, 22 deeper.](https://assets.kaleidoscopelabs.io/afy/reddit-comments/hero.d318b0c1.png)

Post links or subreddits go in. For a subreddit, the comments of its first posts in the order you choose (hot, new, top, rising or best) are read. One record per comment comes out, each with its place in Reddit's thread order (`parentId`, `depth`, `position`), tied by `parentId` to the comment or post it answers. You pay per comment stored, and nothing for the posts read to find them.

Read one discussion whole, follow the threads of a subreddit's hot or newest posts, or keep only the comments of a period. Run it from Apify Console, call it through the API, schedule it, or let an AI agent call it. The prefilled input is a small run that finishes quickly, so you can see the output before a larger run.

### What data can you extract from Reddit comments?

Each record of the dataset is one comment (`recordType` comment):

| Field | Name | Description |
|---|---|---|
| Comment ID | `id` | Reddit's ID of the comment (t1\_…). |
| Comment URL | `url` | The comment's page on Reddit; its path holds the post's. |
| Post | `postId`, `postTitle` | The comment's post and the post's title. |
| Subreddit | `subreddit` | The subreddit's name, without r/. |
| Place in the thread | `parentId`, `depth`, `position` | The comment or post it answers, how deep in the replies it is (0 for a top-level comment), and its place among its siblings. |
| Text | `body`, `bodyHtml` | The comment's text, paragraphs separated by blank lines, and the same as HTML with its links and formatting; left out when Reddit shows no text, as for a deleted comment. |
| Score | `score` | Upvotes minus downvotes when the comment was read. |
| Time | `createdAt`, `editedAt` | When it was written, and when it was last edited. |
| Author | `author`, `authorId`, `authorFlair`, `isSubmitter` | Who wrote it, when Author names is on; their flair in the subreddit; and whether they wrote the post. |
| Marks | `distinguished`, `locked`, `collapsed`, `deleted` | MODERATOR or ADMIN when the comment speaks as one; locked; collapsed by Reddit; deleted. |
| Read from | `query` | The post link or subreddit the comment was read from. |
| Read at | `scrapedAt` | When the run read it. |
| What is missing | `missing` | What a record lacks, and why (for example author notRequested with Author names off); an empty field is never silent. |

For post links, the run's RUN_SUMMARY record lists each post: how many comments were stored against Reddit's count, and why its reading ended. For subreddits, it counts the posts' threads by how their reading ended.

### How to use Reddit Comments Scraper

1. Open Reddit Comments Scraper in Apify Console.
2. Enter post links or subreddits in **Posts or subreddits**, one per line.
3. For subreddits, choose the order, the period for Top, and how many posts' comments to read.
4. Set **Comments per post**, their order and the reply depth; keep only a period's comments with the dates.
5. Turn Deep threads on to open the "more replies" pages too, for the deepest exchanges.
6. Turn Author names off if you do not need who wrote each comment.
7. Start the run, then download the dataset as JSON, CSV, Excel, XML or HTML, or read it through the API.

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

![Comments stored per post under three caps: 45 at up to 20 a post, 50 at up to 50, 188 at up to 100 over the 10 hot posts of r/SaaS.](https://assets.kaleidoscopelabs.io/afy/reddit-comments/per-post.6ba57715.png)

Reddit Comments Scraper is priced per event, with no usage fees on top:

| Event | Price | When |
|---|---|---|
| `comment` | $0.001 | Each comment stored |
| Actor start | $0.00005 per GB of memory, at least one | Each run |

Prices shown are for Apify's free plan; on paid plans they are up to 30% lower.

What you pay for, and what you don't:

- **Charged:** each comment stored.
- **Not charged:** the posts read to find the comments, comments outside the dates you set, pages that could not be read, and a run that stops on an input mistake (only the platform's start fee).

For example, at the default 256 MB of memory:

- 1,000 comments cost $1.00, plus $0.00005 for the start.
- The comments of a subreddit's 10 hot posts, up to 100 each: in our test of 2026-11-14 on r/SaaS, 184 comments, $0.18.
- 100 post links with up to 50 comments each (at most 5,000 comments) cost at most $5.00, plus the start.

Set a maximum total charge in the run options to cap a run; the Actor stops before it, and what it stored is kept.

### Input example

The prefilled input reads the comments of r/SaaS's 3 hot posts, up to 20 each. API and agent calls that leave a field out get its default instead, which is larger for `maxPosts` (10) and `maxComments` (100):

```json
{
  "queries": ["SaaS"],
  "maxPosts": 3,
  "maxComments": 20
}
```

For one discussion, give its link: `{"queries": ["https://www.reddit.com/r/SaaS/comments/1xw8bkx/"]}`.

### Output example

![One comment record, shortened: the comment and its post, its place in the thread, its text, score and time, and what it could not give.](https://assets.kaleidoscopelabs.io/afy/reddit-comments/record.9185ab12.png)

One item of the default dataset, from r/SaaS in the Hot order with Author names off, copied from a run:

```json
[
  {
    "recordType": "comment",
    "id": "t1_19smvalcs61aa",
    "url": "https://www.reddit.com/r/SaaS/comments/1xw8bkx/comment/19smvalcs61aa/",
    "postId": "t3_1xw8bkx",
    "parentId": "t3_1xw8bkx",
    "subreddit": "SaaS",
    "depth": 0,
    "position": 1,
    "body": "Congrats. How did that first customer find you?",
    "bodyHtml": "<p>\n      Congrats. How did that first customer find you?\n    </p>",
    "score": 6,
    "createdAt": "2026-11-14T18:03:14Z",
    "isSubmitter": false,
    "locked": false,
    "collapsed": false,
    "deleted": false,
    "query": "SaaS",
    "postTitle": "I just made my first sale!",
    "scrapedAt": "2026-11-15T16:04:06Z",
    "missing": [
      {
        "group": "author",
        "reason": "notRequested"
      }
    ]
  }
]
```

With Author names on, the default, the record carries `author` (the username) and `authorId`, and `missing` leaves out the author.

### For AI agents

AI agents can call Reddit Comments Scraper through the Apify MCP server ([setup prompt for your agent](https://mcp.apify.com/?tools=kaleidoscopelabs/reddit-comments-scraper)), or through the API like any other program.

- **Minimal input:** `{"queries": ["<a post's link>"]}` gives that post's first 100 comments. `{"queries": ["SaaS"]}` gives the comments of r/SaaS's 10 hot posts, up to 100 each (at most about $1.00). Set `maxComments` to bound the cost per post.
- **Fields to read:** `body`, `score`, `createdAt`, `depth` and `parentId`; `postId` and `postTitle` for the post; `url` for the comment's page.
- **What to know:**
  - An input mistake ends the run SUCCEEDED with an empty dataset and nothing charged. RUN_SUMMARY then has `inputError` and `message`; on a run without one, `inputError` is null.
  - RUN_SUMMARY's `complete` is true when the run did all it was asked; false when a page could not be read or the run ended short (its time, an abort, the maximum charge).
  - RUN_SUMMARY is written when the run ends. While it runs, RUN_PROGRESS holds what it did so far.

Did it save you time? A rating on this page helps others find it; an Issue tells us what to fix.

### FAQ

#### Is it legal to scrape Reddit comments?

Reddit Comments Scraper reads public pages only and needs no login. Whether you may use the data depends on your purpose, on the law that applies to you and on the terms of Reddit, so check them before you build on the results. When in doubt, ask a lawyer.

#### Does Reddit Comments Scraper collect personal data?

These fields can carry personal data: each comment's Author and Author ID, on by default under Author names (turn it off to leave them out), and the author's flair, which some subreddits let people set themselves. Comments are what people wrote and can name people too. Collect personal data only when you have a legal basis under the GDPR, KVKK or a similar law, and keep it no longer than you need it. When in doubt, ask a lawyer.

#### Why did my run return fewer comments than Reddit's count?

Reddit's count includes comments it no longer shows (removed or deleted ones), so a thread read whole stores fewer than it. Comments per post, the reply depth and the dates leave comments out too, and replies nested deeper than a thread's page shows need Deep threads. For post links, RUN_SUMMARY says, for each post, how many were stored against Reddit's count and why the reading ended; for subreddits, it counts the threads by how their reading ended.

#### Can I connect Reddit Comments Scraper to other tools?

Yes. Use Apify integrations, webhooks or the API to send the dataset to your tools every time a run finishes.

#### Something went wrong: what should I check?

| The run's last message says | What it means |
|---|---|
| Done … Stored N comments from N subreddits | It read everything you asked for |
| … up to the run's maximum cost | It stopped at your maximum charge; what it stored is kept and charged |
| … N pages could not be read; the results are incomplete | Some pages could not be read; what it stored is kept and charged |
| The input's own message | Nothing was read and nothing charged: correct the input as it says and run it again |
| Reddit has no subreddit named …, or does not find the post of … link | Nothing was stored and nothing charged: check the names and links |
| … the run's time ran out with pages left | Resurrect the run to continue, or give it a longer timeout |
| Reddit stopped giving its pages … | Usually temporary: run it again later |
| … stopped on an internal error … | Run it again; if it happens again, open an issue with the Ref |

### Limits

- Public posts and subreddits only: Reddit does not show a private or banned subreddit to a logged-out reader.
- Reddit lists about 1,000 posts per subreddit and order at most.
- A run has two hours by default and stores about 19,000 comments an hour: in our test of 2026-11-15, the comments of 12 subreddits' 50 hot posts each, up to 100 a post. Give a larger run a longer timeout.
- For posts and Reddit search, with filters, or a monitor of new posts, use Reddit Scraper (below).

### Tips

- Start from the prefilled input to see the output, then raise Comments per post.
- Comments per post decides most of a run's cost and time.
- Set a maximum total charge in the run options for large runs.

### Support and feedback

Open an issue on the Issues tab with the run's ID and the Ref from the run's last message: it tells us what happened without your data.

### Other Actors

| Actor | Use it with this one to |
|---|---|
| [Reddit Scraper: Subreddit Posts and Comments](https://apify.com/kaleidoscopelabs/reddit-scraper) | Get the posts themselves, Reddit search, filters and a monitor of new posts |
| [YouTube Transcript API & Scraper](https://apify.com/kaleidoscopelabs/youtube-transcript-scraper) | Turn the videos a thread discusses into text for the same research |
| [Meta Ad Library & Facebook Ad Library Checker](https://apify.com/kaleidoscopelabs/facebook-ads-library-checker) | See whether the companies people discuss run Facebook and Instagram ads |

*Reddit Comments Scraper is an independent tool, not affiliated with, endorsed by or sponsored by Reddit, Inc. Reddit is a trademark of Reddit, Inc.*

# Changelog

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

# Actor input Schema

## `queries` (type: `array`):

What to read the comments of, one per line: a post's link, or a public subreddit (SaaS, r/SaaS, or its link; a link's order, such as /top/?t=week, is kept), whose posts are read in the order below. Up to 100 post links and 100 subreddits.

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

The order a subreddit lists its posts in, as on Reddit: Hot, New, Top, Rising or Best; the comments of its first posts in that order are read.

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

For the Top order: the period its posts are the top of.

## `maxPosts` (type: `integer`):

How many of each subreddit's posts to read the comments of, in its order; 0 takes as many as Reddit lists. Post links are read as given.

## `maxComments` (type: `integer`):

How many comments each post contributes, the first Reddit shows as the thread opens (top-level comments with their replies); 0 takes every comment Reddit shows, which on large threads is slow.

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

The order comments are read in, as on Reddit: Best, Top, New, Controversial, Old or Q\&A. With Comments per post set, it decides which comments are kept.

## `commentDepth` (type: `integer`):

How deep into the replies to read: 1 keeps top-level comments only, 2 adds their replies; 0 reads every depth.

## `commentsPostedAfter` (type: `string`):

Keep only comments from this day on, in UTC: a date or a span such as 7 days. Each thread is still read whole; comments outside the dates are not stored or charged.

## `commentsPostedBefore` (type: `string`):

Keep only comments from before this day, in UTC: a date or a span such as 1 day.

## `deepThreads` (type: `boolean`):

Also open the "more replies" pages Reddit links to, for replies nested deeper than the thread's page shows. A run is slower; worth it when the deepest exchanges matter. Off, RUN_SUMMARY counts the threads read without them.

## `includeAuthors` (type: `boolean`):

Add each comment's author: username and account ID. Usernames are personal data; you decide whether and why you collect them. Off, comments come without them.

## Actor input object example

```json
{
  "queries": [
    "SaaS",
    "https://www.reddit.com/r/SaaS/comments/1xhsv0i/"
  ],
  "sort": "hot",
  "time": "day",
  "maxPosts": 3,
  "maxComments": 20,
  "commentSort": "best",
  "commentDepth": 0,
  "deepThreads": false,
  "includeAuthors": true
}
```

# Actor output Schema

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

The comments in the run's default dataset.

# 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 = {
    "queries": [
        "SaaS"
    ],
    "sort": "hot",
    "time": "day",
    "maxPosts": 3,
    "maxComments": 20,
    "commentSort": "best",
    "commentDepth": 0
};

// Run the Actor and wait for it to finish
const run = await client.actor("kaleidoscopelabs/reddit-comments-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 = {
    "queries": ["SaaS"],
    "sort": "hot",
    "time": "day",
    "maxPosts": 3,
    "maxComments": 20,
    "commentSort": "best",
    "commentDepth": 0,
}

# Run the Actor and wait for it to finish
run = client.actor("kaleidoscopelabs/reddit-comments-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 '{
  "queries": [
    "SaaS"
  ],
  "sort": "hot",
  "time": "day",
  "maxPosts": 3,
  "maxComments": 20,
  "commentSort": "best",
  "commentDepth": 0
}' |
apify call kaleidoscopelabs/reddit-comments-scraper --silent --output-dataset

```

## MCP server setup

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