# Reddit Comments Scraper: Full Comment Threads from Post URLs (`charles_thedev/reddit-comments-scraper`) Actor

Paste Reddit post URLs or ids and get the post plus its comments as flat rows with depth, parent, score and author. Ideal for sentiment analysis, research and training data. JSON or CSV.

- **URL**: https://apify.com/charles_thedev/reddit-comments-scraper.md
- **Developed by:** [Redlisten](https://apify.com/charles_thedev) (community)
- **Categories:** Social media, AI, 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.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

## Reddit Comments Scraper: every comment in a thread, as rows

Paste Reddit post links and get the post plus its comments as flat rows: author, text, score, depth, parent and a link to each comment. Built for sentiment analysis, research, customer feedback mining and AI training data.

### Why this Reddit scraper

- **Whole threads in one go.** Up to 2,000 comments per post, nested replies included, flattened into rows with `depth` and `parent_id` so you can rebuild the tree.
- **Any link format.** Full reddit.com URLs, old.reddit, share links with tracking, or bare post ids.
- **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

- Sentiment analysis on a launch, an announcement or a product thread.
- Customer feedback: every reply in a thread about your product.
- Research: complete discussions for qualitative analysis.
- AI training and evaluation data from real conversations.

### 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
{
  "posts": [
    "https://www.reddit.com/r/AskReddit/comments/1xq7kyg/"
  ],
  "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-comments-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

**Does it get nested replies?**

Yes. Replies at every depth come back as rows with `depth` and `parent_id`.

**How many comments per post?**

Up to 2,000, set by **Max results per post**.

**What link formats work?**

Any reddit.com post link or a post id like 1abc23.

**Are deleted comments included?**

Deleted and removed comments appear the way Reddit shows them.

**Can I track new comments on a thread?**

With a [Redlisten key](https://app.redlisten.com/?signup=1\&utm_source=apify\&utm_medium=actor\&utm_campaign=comments) you can pull a thread again any time and stream new comments sitewide.

**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
- Subreddit Scraper
- Reddit User Scraper

### About

Built on [Redlisten](https://redlisten.com/?utm_source=apify\&utm_medium=actor\&utm_campaign=reddit-comments-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-comments-scraper). Support: support@redlisten.com.

Redlisten is not affiliated with Reddit, Inc.

# Actor input Schema

## `posts` (type: `array`):

Reddit post links (any reddit.com format) or post ids like 1abc23.

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

Stop after this many posts or comments for each post.

## `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
{
  "posts": [
    "https://www.reddit.com/r/AskReddit/comments/1xq6za6/"
  ],
  "maxItems": 500
}
```

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

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

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

```

## MCP server setup

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