# Reddit User Comments Scraper (`toolzerhub/reddit-user-comments-scraper`) Actor

Extract every comment a Reddit user has posted, sorted by New, Hot, or Top. Just add a username and get comment ID, subreddit, creation date, score, and upvotes for each comment. No Reddit account or API key required.

- **URL**: https://apify.com/toolzerhub/reddit-user-comments-scraper.md
- **Developed by:** [ToolzerHub](https://apify.com/toolzerhub) (community)
- **Categories:** Social media, Automation, Lead generation
- **Stats:** 1 total users, 1 monthly users, 93.5% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.05 / 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?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Reddit User Comments Scraper

Collect everything a Reddit account has commented. Pagination is automatic.

Useful for working out what someone actually talks about -- most accounts comment far more than they post, so this is usually the richer half of an account's history.

### Input

| Field | Use it for |
|---|---|
| **`username`** | Username without `u/`, or a full profile URL. Required. |
| **`sort`** | `NEW` (default), `HOT` or `TOP`. |
| **`maxItems`** | Caps the run. Default `100`. Set `0` for no limit. |

```json
{
  "username": "https://www.reddit.com/user/transit_nerd/",
  "maxItems": 1000
}
```

### Output

One row per comment.

| Field | Contents |
|---|---|
| **`id`** | Comment ID |
| **`username`** | The account you asked for, repeated on every row |
| **`subreddit`** | Where the comment was left |
| **`created_at`** | Creation timestamp |
| **`score`** | Net score |
| **`upvotes`** | Upvote count, where reported separately |

```json
{
  "id": "t1_ll9q2xk",
  "username": "transit_nerd",
  "subreddit": "dataisbeautiful",
  "created_at": "2026-07-14T10:44:02.000Z",
  "score": 1284
}
```

Group by `subreddit` and you have a map of where the account is active, weighted by how much they actually say there.

### Questions

**Only three sort options?**
Yes -- `NEW`, `HOT` and `TOP`, defaulting to `NEW`. The five-way sort with `BEST` and `RISING` belongs to subreddit feeds, not to a user's comment history.

**Does this include the post each comment is on?**
Each row carries the comment and its subreddit. To attach the parent post, take the comment's parent reference from the row and look it up with the [Post Scraper](https://apify.com/toolzerhub/reddit-post-scraper), which batches a whole list far more cheaply than fetching posts one at a time.

**Why do the counts not match the profile's comment karma?**
Deleted and removed comments do not appear in the feed but their karma may still be counted on the profile. The rows are what is publicly readable now, not a lifetime ledger.

**How far back does it go?**
As far as Reddit will page. The run ends when there is no next cursor, the page is empty, or the same cursor returns twice. For most accounts that is the full public history; for very heavy commenters you will hit Reddit's ceiling first, and the run log states where it stopped.

### Related Actors

| Actor | Purpose |
|---|---|
| [Reddit User Posts Scraper](https://apify.com/toolzerhub/reddit-user-posts-scraper) | The same account's submissions |
| [Reddit User Profile Scraper](https://apify.com/toolzerhub/reddit-user-profile-scraper) | The account itself, plus its active subreddits |
| [Reddit Post Comments Scraper](https://apify.com/toolzerhub/reddit-post-comments-scraper) | A whole thread rather than one person's side of it |

### Support

Questions, bugs, or feature requests: **contact@toolzerhub.com**

Browse the rest: [apify.com/toolzerhub](https://apify.com/toolzerhub)

# Actor input Schema

## `username` (type: `string`):

Reddit username (without u/), or a profile URL (https://www.reddit.com/user/<name>/).

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

Sort order for the feed or listing. Not every Reddit listing offers every order — one that doesn't applies its own default instead.

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

Maximum number of items to save. Set 0 for no limit.

## Actor input object example

```json
{
  "username": "Turbulent_Nerve3744",
  "sort": "NEW",
  "maxItems": 20
}
```

# Actor output Schema

## `dataset` (type: `string`):

Every record collected during this run

# 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 = {
    "username": "Turbulent_Nerve3744",
    "maxItems": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("toolzerhub/reddit-user-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 = {
    "username": "Turbulent_Nerve3744",
    "maxItems": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("toolzerhub/reddit-user-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 '{
  "username": "Turbulent_Nerve3744",
  "maxItems": 20
}' |
apify call toolzerhub/reddit-user-comments-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,toolzerhub/reddit-user-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/nVLyLAxfa7wa7mlOG/builds/2cYxjuEcJUInb3hGi/openapi.json
