# Reddit Comments Scraper: Post Comments and Replies (`apimy/reddit-comments-scraper`) Actor

Scrape the comments of any Reddit post without an account or API key: paste post links and get all top-level comments and the replies Reddit shows under them with text, author, score, depth, parent comment, reply count, date and link. Best, top, new, controversial or old order. JSON, CSV, API.

- **URL**: https://apify.com/apimy/reddit-comments-scraper.md
- **Developed by:** [Nikita Iakovlev](https://apify.com/apimy) (community)
- **Categories:** Social media, Lead generation, AI
- **Features:** Limited permissions
- **Stats:** 16 total users, 6 monthly users, 96.9% runs succeeded, 0 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $0.69 / 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 Comments Scraper** exports the comments of any Reddit post **without a Reddit account, API key or proxy settings**. Paste post links and get all top-level comments and the replies Reddit shows under them, each with its text, author, score, depth in the thread, parent comment, number of replies, date and link. **$0.99 per 1,000 comments, plus $0.003 per run start.**

### What does Reddit Comments Scraper do?

- 💬 **All top-level comments of a post** and the replies Reddit shows under them in the thread view, page after page. Branches that Reddit hides behind "more replies" are opened too; only a branch with a single hidden reply stays closed. The `replies` column tells you how many replies a comment has in total.
- 🧵 **Thread structure** — `depth` (0 = top-level) and `parentId` let you rebuild the conversation tree.
- ↕️ **Reddit's own orders** — best, top, new, controversial or old.
- 🔗 **Any kind of post link** — the full `reddit.com/r/…/comments/…` link, a short `redd.it/…` link or a share link.
- 🔔 **Monitoring mode** — schedule the Actor and each run returns only comments it has not delivered before.

Use it for sentiment analysis, product and brand feedback, customer research, moderation, and collecting discussion text for AI.

### How to scrape Reddit comments

1. Open the Actor and paste one or more **Post links**.
2. Pick the **Comment order** if you need it.
3. Set **Results per input** — how many comments you want from each post.
4. Press **Start**. Download the comments as JSON, CSV or Excel, or read them by API.

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

| Row | Price |
|---|---|
| **Comment** | $0.00099 — $0.99 per 1,000 |
| **Archived post or comment** (optional, from 5 December 2026) | $0.00001 — $0.01 per 1,000 |

**Run start**: $0.003 once per run, charged together with the first row — the first request to the source is paid before any row exists. A run that returns no rows (only free error rows) pays no start fee. No proxy or compute charge on top. Error rows are never billed. **Maximum rows per run** is a hard ceiling on the bill.

100 comments cost about $0.10. On the Apify Free plan the first 20 comments of a run come from the live source and the rest from the free archive; any paid Apify plan removes the limit on live rows.

### ⬇️ Input

```json
{
    "postUrls": ["https://www.reddit.com/r/bali/comments/1o1zliv/our_fail_with_indonesian_visa_and_how_not_to_be/"],
    "commentSort": "TOP",
    "maxResultsPerInput": 200
}
```

| Field | What it does |
|---|---|
| `postUrls` | Links to Reddit posts, one per line. |
| `commentSort` | `CONFIDENCE` (Best, default), `TOP`, `NEW`, `CONTROVERSIAL`, `OLD`. |
| `maxResultsPerInput` | Comments per post. Default 50. |
| `maxItems` | Hard ceiling on rows in the whole run. |
| `useArchive` | Add rows from a free public Reddit archive after the live rows (see Archive rows below). Off by default. |
| `monitoringStoreName` | A name for monitoring: later runs with the same name return only new comments. |

### ⬆️ Output

One row per comment:

```json
{
    "type": "comment",
    "id": "t1_nik7rhm",
    "text": "Indeed, did the e-voa before and took us 2 minutes to get through the checks with the e-gates. Leaving Bali today to go back home :(",
    "url": "https://www.reddit.com/r/bali/comments/1o1zliv/our_fail_with_indonesian_visa_and_how_not_to_be/nik7rhm/",
    "author": "real_one_true",
    "authorId": "t2_5m1g7gk0",
    "score": 2,
    "depth": 2,
    "parentId": "t1_nik7kq8",
    "replies": 2,
    "isStickied": false,
    "createdAt": "2025-10-09T07:45:30.811Z",
    "postId": "t3_1o1zliv",
    "postTitle": "Our fail with Indonesian visa and how not to be stupid",
    "subreddit": "bali",
    "source": "comments",
    "sourceInput": "https://www.reddit.com/r/bali/comments/1o1zliv/our_fail_with_indonesian_visa_and_how_not_to_be/",
    "scrapedAt": "2026-11-14T02:43:57.852Z",
    "page": 1,
    "position": 3
}
```

`postId`, `postTitle` and `subreddit` say which post the comment belongs to; `sourceInput` is the link you gave.

### 🗄️ Archive rows (optional, cheaper, older)

Switch on **Add archive rows** (`useArchive: true`) and after the live rows the Actor also reads a free public Reddit archive ([Arctic Shift](https://arctic-shift.photon-reddit.com)): up to **Results per input** more rows for each post, older ones included, with full fields (upvote ratio, flags, comment depth and parent). Rows the live source already gave are skipped.

- Each archive row has `source: "archive"`, `archivedAt` and a `note`. **Score, comment count and upvote ratio are as of `archivedAt`, not live**: a post archived minutes after it was posted can show score 1 until the archive reads it again (about 36 hours later).
- The archive is about 2 hours behind Reddit: a comment written minutes ago may not be in it yet.
- Price: **Archived post or comment** — $0.00001 ($0.01 per 1,000) from 5 December 2026; until then archive rows are free.
- On the Apify Free plan archive rows are added automatically after the first 20 live rows.

### 🤖 For AI Agents & LLM Apps

Compact reference for agents calling this Actor through the [Apify MCP server](https://mcp.apify.com) or the Apify API (`apimy/reddit-comments-scraper`).

**Purpose:** Comments of any Reddit post: text, author, score, depth in the thread, reply count and date. Paste post links; no Reddit account, API key or proxy settings.

**Timing:** the input below usually finishes in about 20 seconds, so `run-sync-get-dataset-items` works. Bigger lists take proportionally longer — past a few minutes start an asynchronous run and read the dataset when it finishes (the sync endpoint stops at 5 minutes).

**Minimal input:**

```json
{"postUrls": ["https://www.reddit.com/r/bali/comments/1o1zliv/our_fail_with_indonesian_visa_and_how_not_to_be/"], "maxResultsPerInput": 50}
```

**Output:** one dataset row per comment. Main fields: `id`, `text`, `author`, `score`, `depth`, `replies`, `createdAt`, `postId`, `postTitle`, `subreddit`, `url`, `position`.

### FAQ

#### Do I need a Reddit account or API key?

No. Paste post links and run.

#### Does it return replies or only top-level comments?

Both. Replies come with `depth` 1 and deeper and with the `parentId` of the comment they answer. Reply chains that Reddit hides behind "more replies" are opened as well, except a branch with just one hidden reply.

#### How many comments can I get from one post?

All the comments Reddit loads for the post, up to **Results per input**. You pay only for the rows you get.

#### What happens with a deleted or private post?

You get a free error row for that link. Rows with errors and notices are never billed.

#### Where do I get post links?

From a Reddit search or subreddit scraper: put its `url` column into **Post links**.

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

The Actor reads only public comments. Usernames and comment text can be personal data under the GDPR and similar laws — have a lawful reason to process them.

# Actor input Schema

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

Link to a Reddit post: <code>https://www.reddit.com/r/bali/comments/1o1zliv/…</code>, a short <code>redd.it/…</code> link or a share link. Returns the post's comments and replies, with depth and parent.

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

Order of the comments, as on Reddit.

## `maxResultsPerInput` (type: `integer`):

How many comments to return for each post.

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

Stop after this many rows in the whole run — a hard ceiling on cost.

## `useArchive` (type: `boolean`):

After the live rows, also return rows from a free public Reddit archive (Arctic Shift): up to <b>Results per input</b> more rows for each post, older ones included; rows the live source already gave are skipped. Charged as <b>Archived post or comment</b> — $0.01 per 1,000 from 5 December 2026, free before that. Score, comments and upvote ratio in these rows are as of the archiving time (column <code>archivedAt</code>), not live. On the Apify Free plan archive rows are added after the live rows automatically.

## `monitoringStoreName` (type: `string`):

Give the run a name (e.g. <code>brand-mentions</code>) and every later run with the same name returns <b>only rows it has not delivered before</b>. Empty = normal run.

## Actor input object example

```json
{
  "postUrls": [
    "https://www.reddit.com/r/bali/comments/1o1zliv/our_fail_with_indonesian_visa_and_how_not_to_be/"
  ],
  "commentSort": "CONFIDENCE",
  "maxResultsPerInput": 50,
  "maxItems": 10000,
  "useArchive": false
}
```

# Actor output Schema

## `rows` (type: `string`):

One row per result; error rows explain inputs that could not be read.

# 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/bali/comments/1o1zliv/our_fail_with_indonesian_visa_and_how_not_to_be/"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("apimy/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/bali/comments/1o1zliv/our_fail_with_indonesian_visa_and_how_not_to_be/"] }

# Run the Actor and wait for it to finish
run = client.actor("apimy/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/bali/comments/1o1zliv/our_fail_with_indonesian_visa_and_how_not_to_be/"
  ]
}' |
apify call apimy/reddit-comments-scraper --silent --output-dataset

```

## MCP server setup

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