# Reddit Comment Scraper: Full Threads & Replies (`luzivanlt/reddit-comments-scraper`) Actor

Reddit comments from any post thread or subreddit, replies and nesting included. $0.50 per 1,000 comments. Text, author, score, depth, parent comment, awards, post title and permalink. No login or cookies needed.

- **URL**: https://apify.com/luzivanlt/reddit-comments-scraper.md
- **Developed by:** [Luzi](https://apify.com/luzivanlt) (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.35 / 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

## Reddit Comment Scraper: Full Threads & Replies

Reddit comments from any post thread or subreddit, replies included, one row per
comment. Each row carries the text, the author, the score, the nesting depth,
the comment or post it answers, the awards and the post it belongs to. No Reddit
account or cookies needed.

Tested daily. Latest check 2026-11-23: 1,000 comments from a post thread and a
subreddit in 49 seconds, and 3,000 comments from 12 busy threads in 17 seconds.

### What does this Actor do?

You give it Reddit post links or IDs, or subreddit names. It saves each comment
of those posts, or the newest comments of those subreddits, as one row. A
comment found twice in a run is saved once. A thread is read 100 comments at a
time, and the run keeps reading until the thread ends or the comment limit you
set is reached; the summary says which of the two stopped it.

A post can hold thousands of comments, and Reddit shows them a page at a time.
This Actor reads past that page, so a post with 1,113 comments gives you the
comments you asked for, not only the first page.

Each comment comes with:

- its text, its author and the link to the author's profile
- the score Reddit's public archive recorded for it, and whether it is marked
  controversial
- how deep it sits in the thread, and the id of the comment or post it answers,
  so the tree can be rebuilt
- whether the post's own author wrote it, whether it is a moderator or admin
  comment, and whether replies are locked
- the awards it received
- the subreddit it was written in, and the post's title, author and link
- when it was written and when it was last edited, to the second
- the comment's own page on Reddit, which opens the thread at that comment
- the post or subreddit the run read it from

### Why use it?

- **Every comment of a thread, not the first page.** The run pages through a
  thread until it ends or your limit stops it, and tells you the count against
  the number the post reports.
- **The thread tree, not a flat list.** Every row carries the parent id and the
  depth, so a reply chain can be rebuilt in order.
- **Post threads and subreddit streams in one run.** Paste post links for one
  thread, or a subreddit name for its newest comments across all posts, or both.
- **Half the price of the busiest Reddit comment Actor.** 1,000 comments cost
  $0.50 here; clearpath charges about $1.00 for the same 1,000, and maximedupre
  $2.65.
- **No Reddit account or cookie.** Nothing to sign up for, nothing to paste in,
  nothing to keep alive between runs.
- **Export as JSON, CSV or Excel**, or read it through Apify's API.

### How to use it

1. Paste one or more post links in **Post links**, such as
   `https://www.reddit.com/r/news/comments/1xz50m3/`, or the bare id `1xz50m3`.
2. Or type subreddit names in **Subreddits**, such as `AskReddit` or `r/news`,
   to read their newest comments across all posts.
3. Pick **Order** and **Maximum comments per source**, then press Start.

The form arrives with one busy r/news thread filled in; press Start and it reads
that thread's 1,000 newest comments. Started with no input at all, the run reads
the newest 100 comments from r/news as a sample.

#### Links that work

- Posts: `https://www.reddit.com/r/news/comments/1xz50m3/`, the short form
  `https://redd.it/1xz50m3`, or the bare id `1xz50m3`
- Subreddits: `news`, `r/AskReddit`, or a link such as
  `https://www.reddit.com/r/AskReddit/`

A line that is not a post or a subreddit stops the run before anything is read,
and the message names the line.

### Input

| Title | What it does | Default |
| --- | --- | --- |
| **Post links** (`postUrls`) | Up to 1,000 Reddit post links or post IDs. Every comment of every post is saved once. A line that is not a Reddit post stops the run before anything is read. | empty |
| **Subreddits** (`subreddits`) | Up to 100 subreddit names or links, read as their newest comments across all posts. A multi-subreddit such as `news+worldnews` is read as two subreddits. | empty |
| **Order** (`sort`) | `newest` or `oldest`, the end of a thread the run starts from. A subreddit stream is always newest first. | `newest` |
| **Maximum comments per source** (`maxCommentsPerSource`) | How many comments to save from each post or subreddit, 1 to 100,000. A thread with more stops at the cap and the run says so. | `1000` |

Give at least one post link or subreddit.

```json
{
  "postUrls": ["https://www.reddit.com/r/news/comments/1xz50m3/"],
  "subreddits": ["AskReddit"],
  "sort": "newest",
  "maxCommentsPerSource": 1000
}
```

### Output

One row per comment. A row looks like this:

```json
{
  "type": "comment",
  "id": "19sw3l9awl68y",
  "fullname": "t1_19sw3l9awl68y",
  "author": "candr22",
  "author_url": "https://www.reddit.com/user/candr22",
  "subreddit": "news",
  "subreddit_id": "t5_2qh3l",
  "body_text": "I think it's worth being careful with our assumptions here.",
  "score": 4,
  "controversiality": 0,
  "total_awards_received": 0,
  "is_submitter": false,
  "locked": false,
  "depth": 2,
  "parent_id": "t1_19sszgriqgn39",
  "post_id": "1xz50m3",
  "post_fullname": "t3_1xz50m3",
  "post_title": "Democrat Mary Peltola flips Alaska Senate seat",
  "post_permalink": "https://www.reddit.com/r/news/comments/1xz50m3/democrat_mary_peltola_flips_alaska_senate_seat/",
  "post_author": "baribigbird06",
  "permalink": "https://www.reddit.com/r/news/comments/1xz50m3/democrat_mary_peltola_flips_alaska_senate_seat/19sw3l9awl68y/",
  "created_at": "2026-11-20T02:13:22.000Z",
  "updated_at": "2026-11-20T02:13:22.000Z",
  "source": "r/news 1xz50m3"
}
```

| Field | What it holds |
| --- | --- |
| `type` | `comment` on every row. |
| `id` | Reddit's id for the comment, without the `t1_` prefix. |
| `fullname` | The same id in Reddit's `t1_` form. |
| `author` | The user who wrote the comment, without `u/`. |
| `author_url` | The author's profile on Reddit. |
| `subreddit` | The subreddit the comment was written in, without `r/`. |
| `subreddit_id` | Reddit's own id for the subreddit, such as `t5_2qh3l`. |
| `body_text` | The comment as plain text. |
| `body_html` | Empty: Reddit no longer serves a comment's formatted HTML. |
| `score` | The comment's upvotes minus downvotes, as the public archive last indexed it. A snapshot, not live. |
| `controversiality` | `1` when Reddit marks the comment controversial, `0` when not. |
| `total_awards_received` | How many awards the comment received. |
| `is_submitter` | `true` when the post's own author wrote the comment. |
| `distinguished` | `moderator` or `admin` when Reddit marks the comment as one; empty otherwise. |
| `locked` | `true` when replies to the comment are closed. |
| `depth` | `0` for a top-level comment, `1` for a reply, and so on. |
| `parent_id` | The comment it answers in the `t1_` form, or the post's `t3_` id for a top-level comment. |
| `post_id` | The id of the post the comment belongs to, without `t3_`. |
| `post_fullname` | The post's id in the `t3_` form. |
| `post_title` | The title of the post the comment belongs to. |
| `post_permalink` | The post's page on Reddit. |
| `post_author` | The user who wrote the post, without `u/`. |
| `permalink` | The comment's own page on Reddit. |
| `created_at` | When the comment was written, in ISO 8601 with milliseconds. |
| `updated_at` | When it was last edited, or `created_at` when it never was. |
| `source` | The post or subreddit the comment was read from, such as `r/news 1xz50m3` or `r/AskReddit`. |

Empty fields are left out of the row rather than written as an empty value, so a
CSV export has blank cells there. `distinguished` is empty on almost every
comment, and `parent_id` is empty only on a comment the archive indexed without
it.

### How much does it cost?

You pay for what you get:

- **Comment: $0.50 per 1,000 comments** ($0.0005 each). Charged once per comment
  saved to your results; a comment found twice in a run is charged once.
- **Run: $2.00 per 1,000 runs** ($0.002 each). One charge per run that saves at
  least one comment; a run that saves nothing is not charged.

A run of one post with 600 comments plus one subreddit stream of 1,000 comments
costs $0.802: 1,600 comments at $0.50 per 1,000 is $0.80, plus one run at $0.002.
The same 1,600 comments on a Gold plan cost $0.562.

Bronze, Silver and Gold plan discounts apply automatically: 10%, 20% and 30% off
the comment price. A comment the site no longer shows is never charged.

### How long does a run take?

- 100 comments from one post: about 5 seconds.
- 1,000 comments from one post plus one subreddit: about 49 seconds.
- 3,000 comments from 12 busy threads: about 17 seconds.
- 5,000 comments from five subreddits: about 50 seconds.

A thread's pages are read one after another because each page starts where the
last one ended; different posts and subreddits are read at the same time.

### Good to know

- **The score is a snapshot.** It is the score Reddit's public archive recorded
  when it indexed the comment, not the number the site shows now.
- **A comment's formatted HTML is not available.** `body_text` carries the text;
  `body_html` is empty.
- **A thread is newest first by default.** `oldest` reads it from its first
  comment, so a thread longer than the cap gives you the other end of it. A
  subreddit stream is always newest first.
- **A very large thread stops at the cap.** With the default 1,000 comments, a
  thread of 10,000 gives you its newest 1,000 and the run says the cap stopped
  it. Raise **Maximum comments per source** to read further.
- **Deleted and removed comments are left out.** A comment whose text the site
  no longer shows is not saved and never charged, and the run logs how many it
  skipped.
- **A post with no comments is reported, not failed.** A deleted post, a locked
  thread with nothing under it, or an id that does not exist is named in the run
  summary, and the other posts are still read.
- **Comments that arrived after the archive indexed them can be missing.** A
  comment written in the last minutes may not be in the archive yet; the summary
  shows the count against the post's own comment count, so a shortfall is
  visible in the run.
- **No keyword search.** Neither the post nor the comment part of Reddit is open
  to a keyword search here, so follow a topic through its subreddit.
- **No login, no cookies, no Reddit account.** Public data only.

### FAQ

**Can I get the comments of many posts in one run?** Yes. Paste up to 1,000 post
links or IDs; each thread is read on its own, and each row names the post it came
from.

**Can I follow a subreddit instead of one post?** Yes. Type the subreddit in
**Subreddits**; the run saves its newest comments across all posts. Mix it with
post links to widen a run.

**What happens when a thread is longer than my limit?** The run saves comments
from the end you chose, then stops at the limit and says so in the summary. Raise
**Maximum comments per source** to read further.

**Do I pay for a comment that was already saved?** No. A comment found twice in a
run is saved and charged once.

**Can I rebuild the reply tree?** Yes. Each row carries `parent_id` and `depth`,
and the **Thread tree** view in the dataset shows them side by side.

# Changelog

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

# Actor input Schema

## `postUrls` (type: `array`):

Reddit post links or post IDs, one per line, such as https://www.reddit.com/r/news/comments/1xz50m3/ or 1xz50m3. Up to 1,000 posts; every comment of every post is saved once. A line that is not a Reddit post stops the run before anything is read, naming the line.

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

Subreddit names, one per line, such as AskReddit or r/news. Reads the subreddit's newest comments across all of its posts, not the comments of one post. Up to 100 subreddits. A line that is not a subreddit stops the run before anything is read, naming the line.

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

Which end of a post's thread to start from: newest first, the default, or oldest first to read a thread in the order it was written. A subreddit's comment stream is always newest first. The order does not change the rows when the cap is high enough to hold the thread.

## `maxCommentsPerSource` (type: `integer`):

How many comments to save from each post or subreddit, from 1 to 100,000. The default 1,000 holds most threads whole; a thread with more stops at the cap and the run says so. Comments that were deleted or removed are left out and never charged.

## Actor input object example

```json
{
  "postUrls": [
    "https://www.reddit.com/r/news/comments/1xz50m3/"
  ],
  "sort": "newest",
  "maxCommentsPerSource": 1000
}
```

# Actor output Schema

## `comments` (type: `string`):

One row per comment in the default dataset; open the link for the reading view.

## `thread` (type: `string`):

The same rows with parent and depth, for rebuilding each thread.

# 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 = {
    "postUrls": [
        "https://www.reddit.com/r/news/comments/1xz50m3/"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("luzivanlt/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 = { "postUrls": ["https://www.reddit.com/r/news/comments/1xz50m3/"] }

# Run the Actor and wait for it to finish
run = client.actor("luzivanlt/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 '{
  "postUrls": [
    "https://www.reddit.com/r/news/comments/1xz50m3/"
  ]
}' |
apify call luzivanlt/reddit-comments-scraper --silent --output-dataset

```

## MCP server setup

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