# Reddit User & Subreddit Scraper: Posts, Comments, Profiles (`kizukidata/reddit-user-subreddit-scraper`) Actor

Enter Reddit usernames or subreddits and get each user's posts and comment history, plus subreddit info, rules, newest posts and comments. Free profile rows with archived stats (can be over a year old; see statsUpdatedAt). No login. Not affiliated with Reddit.

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

## Pricing

from $0.80 / 1,000 post, comment or subreddit rows

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 User & Subreddit Scraper: Posts, Comments, Profiles

Enter Reddit usernames or subreddit names. For each user you get the posts the user submitted, the comments the user wrote, and a free profile row (archived post and comment counts and score totals, first and last activity, the subreddits the user is most active in). For each subreddit you get its description, subscriber count and rules, its newest posts, and, if you ask, its newest comments. Export as JSON, CSV or Excel.

No Reddit login, account or API key. You pay only for rows returned: a user or subreddit that cannot be found or read comes back as a free status row. This Actor is an independent tool and is not affiliated with Reddit, Inc.

### What goes in and what comes out

| Input | What it returns |
|---|---|
| `usernames` (`spez`, `u/spez`, or a profile URL) | One free `user` row per account, then the newest `maxPostsPerSource` posts the user submitted and the newest `maxCommentsPerUser` comments the user wrote |
| `subreddits` (`webscraping`, `r/python`, or a URL) | One `subreddit` row (description, subscribers, active users, rules), the newest `maxPostsPerSource` posts, and the newest `maxCommentsPerSubreddit` comments (off by default) |
| `startUrls` (mixed profile and subreddit URLs) | Routed to the user or subreddit handling above |
| `queries` (keywords) | Keeps only posts and comments containing one of the phrases, inside the users and subreddits you list |

Users and subreddits can be mixed in one run. Empty input (`{}`) reads `u/spez` and `r/webscraping` as a sample (17 rows, about 19 seconds in a 2026-11-17 test run).

#### Quick start

A user's profile with their last 50 posts and 100 comments:

```json
{
    "usernames": ["spez"],
    "maxPostsPerSource": 50,
    "maxCommentsPerUser": 100,
    "maxItems": 200
}
```

Watch subreddits for new posts and comments that mention your product, on a schedule:

```json
{
    "subreddits": ["SaaS", "startups"],
    "queries": ["apify", "web scraping"],
    "maxPostsPerSource": 100,
    "maxCommentsPerSubreddit": 200,
    "includeSubredditInfo": false,
    "onlyNewItems": true,
    "maxItems": 500
}
```

Field names from other Reddit user scrapers also work: `username`, `authors`, `maxPostsCount`, `maxCommentsCount`, `includeNSFW`, `postedAfter`, `postedBefore`, `searchSort`.

### Output fields

Every row has `id`, `type` (`user`, `post`, `comment`, or `subreddit`), `source`, `matchedTarget` (`u/name` or `r/name`), `capturedAt`, and `error` (`null` on rows you pay for).

#### User rows (`type: "user"`, free)

The counts and score sums come from the archive's account statistics, which it refreshes rarely. They are as of `statsUpdatedAt`, which can be more than a year old (on 2026-11-17 every account tested was as of 2025-08-26). The last-post and last-comment dates are moved up to the newest post and comment read in the same run, so they are current whenever you also ask for posts or comments. User rows are not charged.

| Field | Description |
|---|---|
| `username`, `userId`, `profileUrl` | Username, account fullname (`t2_...`) and profile URL |
| `postCount`, `commentCount` | Posts and comments the archive counted for the account as of `statsUpdatedAt` |
| `postScoreSum`, `commentScoreSum`, `totalScoreSum` | Sums of the archived scores of those posts and comments, as of `statsUpdatedAt`. They track karma but are not Reddit's karma number |
| `firstPostAt`, `lastPostAt`, `firstCommentAt`, `lastCommentAt`, `firstActivityAt`, `lastActivityAt` | Activity dates (ISO 8601 UTC). `lastPostAt` and `lastCommentAt` are the later of the archive statistics and the newest post or comment read in this run |
| `lastPostAtFrom`, `lastCommentAtFrom` | `archive-stats` or `this-run`: where `lastPostAt` and `lastCommentAt` come from |
| `statsUpdatedAt` | When the archive last recomputed the counts and sums. Can be more than a year old; check it before you compare counts over time |
| `topSubreddits`, `topSubredditsSince` | Up to 10 `{subreddit, count}` where the user posts and comments most. `topSubredditsSince` is `null` for the whole history, or the start of the last-year or last-30-days window used for the most active accounts and bots |

#### Post rows (`type: "post"`)

`postId`, `url`, `permalink`, `subreddit`, `title`, `body`, `author`, `authorFlairText`, `linkFlairText`, `domain`, `externalUrl`, `thumbnailUrl`, `isSelf`, `isVideo`, `isNsfw`, `isSpoiler`, `score`, `upvoteRatio`, `numComments`, `metricsRefreshed`, `removedBy`, `createdAt`, `retrievedAt`, `matchedQuery`, `matchesQueryTerms`.

#### Comment rows (`type: "comment"`)

`commentId`, `postId`, `parentId` (`t3_...` for a top-level comment, `t1_...` for a reply), `depth` (`0` for a top-level comment, `null` for a reply), `subreddit`, `postTitle`, `postUrl`, `postAuthor`, `url`, `permalink`, `author`, `isSubmitter`, `distinguished`, `score`, `body`, `bodyMarkdown`, `createdAt`, `retrievedAt`.

#### Subreddit rows (`type: "subreddit"`)

`subreddit`, `title`, `publicDescription`, `description`, `url`, `subscribers`, `activeUsers`, `isNsfw`, `lang`, `createdAt`, `rules[]` (`shortName`, `description`, `kind`).

#### Output example (shortened)

```json
[
    {
        "id": "user:spez",
        "type": "user",
        "username": "spez",
        "postCount": 549,
        "commentCount": 2568,
        "totalScoreSum": 1499932,
        "firstActivityAt": "2005-06-23T18:45:14.000Z",
        "lastActivityAt": "2026-10-29T22:42:06.000Z",
        "lastCommentAtFrom": "this-run",
        "statsUpdatedAt": "2025-08-26T00:00:02.000Z",
        "topSubreddits": [{ "subreddit": "reddit.com", "count": 1483 }, { "subreddit": "announcements", "count": 663 }],
        "matchedTarget": "u/spez",
        "error": null
    },
    {
        "id": "19ruo33ofgh8i",
        "type": "comment",
        "subreddit": "RDDT",
        "postTitle": "Reddit Announces Q3’26 Earnings (plus AMA!)",
        "author": "spez",
        "body": "Pretty simple. For people who are already coming to Reddit every week, ...",
        "matchedTarget": "u/spez",
        "error": null
    }
]
```

### Data freshness

- New posts usually appear within a minute of being posted: in this Actor's 2026-11-17 test runs, half of the 534 recent posts were stored within 16 s and 95% within 46 s (the slowest took about 17 hours).
- Comments can take longer: for 571 recent comments, half were stored within about 1.6 hours, 95% within about 21 hours, and the slowest took about 4 days. A quiet subreddit's newest comment can be hours old for that reason or simply because nobody posted.
- Scores and comment counts are first stored at the moment of posting and re-read later, usually within 36 hours. `metricsRefreshed: true` on a post means the counts were re-read.
- The user row's counts and score sums are as of `statsUpdatedAt`, which can be more than a year old. Its last-post and last-comment dates are brought up to date from the posts and comments read in the same run.
- Removed and deleted posts and comments are left out by default, so you get and pay only for what people can still see. Set `includeRemoved: true` to get them too. The run summary (`OUTPUT`) reports how many were left out (`removedPostsSkipped`, `removedCommentsSkipped`).

### Scheduled monitoring with `onlyNewItems`

With `onlyNewItems: true`, the Actor remembers the posts and comments it returned for 90 days and later runs return and charge only new ones. User and subreddit rows are snapshots and come back on every run (user rows free), so you can follow subscriber counts over time; user counts change only when the archive refreshes them (`statsUpdatedAt`). Turn `includeProfile` or `includeSubredditInfo` off if you do not need them. The memory is kept per set of users and subreddits (order does not matter), keywords, `after`, `includeNsfw` and `includeRemoved`. Do not run the exact same input concurrently.

### Pricing and free tier

One price for every charged row: a post, a comment or a subreddit is one `result` event. User profile rows are free. `apify-actor-start` is charged once per run start by the platform.

| Apify plan | Per 1,000 rows |
|---|---:|
| Free | $1.25 |
| Starter (Bronze) | $1.10 |
| Scale (Silver) | $0.95 |
| Business (Gold) | $0.80 |

Example: 10 users with 50 posts and 100 comments each is 1,500 charged rows (plus 10 free profile rows), about $1.65 on Starter (Bronze).

Apify's Free plan includes USD 5 of monthly usage, which covers about 4,000 rows at the Free plan price (run start fees aside).

Not charged: user profile rows, rows with an `error` (user or subreddit not found, source timeout), users or subreddits with no matching activity (listed in `OUTPUT.emptyInputs`), invalid inputs, removed items left out, and items skipped by `onlyNewItems`.

### Limits

- Up to 50 usernames, 50 subreddits and 100 start URLs per run; up to 500 posts per user or subreddit, 1,000 comments per user or subreddit, and 5,000 charged rows per run.
- Posts and comments are read newest first. `sort: top` and `sort: comments` re-order the posts that were read; they are not Reddit's all-time top list, and there is no hot or rising order.
- Reddit's own karma number, account creation date, follower count, bio and avatar are not returned (they need Reddit's site or API). Account counts and score sums can be more than a year old (`statsUpdatedAt`), and accounts created after the archive's last refresh may come back as a free `not-found` user row (their posts and comments are still read).
- If the source stops answering for 3 users or subreddits in a row, the run stops early and lists the rest in `OUTPUT.uncheckedInputs` (nothing is charged for them).
- For the very largest accounts (bots such as AutoModerator), the source does not count active subreddits: the user row then comes back free with the counts filled in, an empty `topSubreddits`, and an `error` that says so.
- Single posts and their comment trees are handled by [Reddit Scraper](https://apify.com/kizukidata/reddit-scraper) and [Reddit Comments Scraper](https://apify.com/kizukidata/reddit-comments-scraper).

### Integrations and MCP

#### MCP (Claude, Cursor, n8n)

```text
https://mcp.apify.com?tools=fetch-actor-details,kizukidata/reddit-user-subreddit-scraper
```

- **Claude Code**: `claude mcp add --transport http apify "https://mcp.apify.com?tools=fetch-actor-details,kizukidata/reddit-user-subreddit-scraper"`
- **Cursor / Claude Desktop**: add an HTTP MCP connector with the URL above and your Apify API token.

#### API (cURL / Python)

```bash
curl -X POST "https://api.apify.com/v2/acts/kizukidata~reddit-user-subreddit-scraper/runs?token=<APIFY_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{"usernames":["spez"],"subreddits":["webscraping"],"maxItems":50}'
```

```python
from apify_client import ApifyClient

client = ApifyClient("<APIFY_TOKEN>")
run = client.actor("kizukidata/reddit-user-subreddit-scraper").call(run_input={
    "usernames": ["spez", "kn0thing"],
    "maxPostsPerSource": 25,
    "maxCommentsPerUser": 50,
    "maxItems": 200,
})
for row in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(row["type"], row.get("title") or row.get("body") or row.get("username"))
```

### Related Kizuki Actors

- [Reddit Scraper](https://apify.com/kizukidata/reddit-scraper): posts by subreddit, post URL, author or keyword, with nested comment trees as LLM-ready Markdown.
- [Reddit Comments Scraper](https://apify.com/kizukidata/reddit-comments-scraper): every comment of a post as its own row, with AMA filtering.
- [Bluesky Scraper](https://apify.com/kizukidata/bluesky-monitor): keyword posts, account feeds and follower snapshots.
- [Telegram Channel Scraper](https://apify.com/kizukidata/telegram-channel-feed): public channel posts with views and reactions.

# Actor input Schema

## `usernames` (type: `array`):

Reddit usernames (spez, u/spez) or profile URLs, up to 50. Empty input with no subreddits reads u/spez and r/webscraping as a sample.

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

Subreddit names (webscraping, r/python) or URLs, up to 50.

## `startUrls` (type: `array`):

Mixed Reddit profile and subreddit URLs, routed by type (up to 100). Post links are skipped: use Reddit Scraper for single posts.

## `includeProfile` (type: `boolean`):

One free row per user: archived post and comment counts and score sums (close to karma; as of statsUpdatedAt, which can be more than a year old), first and last activity, and the 10 subreddits the user is most active in.

## `maxPostsPerSource` (type: `integer`):

Newest posts returned for each user (posts they submitted) and each subreddit. 0 skips posts.

## `maxCommentsPerUser` (type: `integer`):

Newest comments each user wrote, with the post they replied on. 0 skips the comment history.

## `includeSubredditInfo` (type: `boolean`):

One row per subreddit: title, description, subscribers, active users, NSFW flag and community rules.

## `maxCommentsPerSubreddit` (type: `integer`):

Newest comments posted anywhere in each subreddit. 0 (default) skips them.

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

Keep only posts and comments that contain one of these phrases (2-120 characters, up to 10; supports "exact phrase", OR, -exclude). Filters inside the users and subreddits above; it is not a Reddit-wide search.

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

Order of the posts read for each user or subreddit: new (default), top (score) or comments (comment count). Posts are the newest ones first, then re-ordered; not an all-time top list.

## `after` (type: `string`):

Oldest post or comment time: ISO date (2026-11-01), epoch seconds, or relative (24h, 7d, 30d). Empty means no limit.

## `before` (type: `string`):

Newest post or comment time: ISO date, epoch seconds, or relative (7d). Empty means now.

## `includeNsfw` (type: `boolean`):

Include posts and comments marked NSFW. Off by default.

## `includeRemoved` (type: `boolean`):

Also return posts and comments that were removed or deleted (a removed post's removedBy says who). Off by default, so you get and pay only for what people can still see.

## `onlyNewItems` (type: `boolean`):

For schedules: skip posts and comments returned by earlier runs with the same users, subreddits and filters (90-day memory). Profile and subreddit rows are returned on every run.

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

Max rows charged per run, across all users and subreddits (1-5000, default 20). Rows with an error are free and do not count.

## `proxyConfiguration` (type: `object`):

Proxy settings. Default uses no proxy. Residential proxies are not available.

## Actor input object example

```json
{
  "usernames": [
    "spez",
    "u/GovSchwarzenegger"
  ],
  "subreddits": [
    "webscraping",
    "r/SaaS"
  ],
  "includeProfile": true,
  "maxPostsPerSource": 5,
  "maxCommentsPerUser": 5,
  "includeSubredditInfo": true,
  "maxCommentsPerSubreddit": 0,
  "sort": "new",
  "after": "",
  "before": "",
  "includeNsfw": false,
  "includeRemoved": false,
  "onlyNewItems": false,
  "maxItems": 20,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

User profiles, posts, comments and subreddits returned by this run.

## `runSummary` (type: `string`):

Status code, counters and skipped input entries of 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 = {
    "maxPostsPerSource": 5,
    "maxCommentsPerUser": 5,
    "maxCommentsPerSubreddit": 0,
    "sort": "new",
    "after": "",
    "before": "",
    "includeNsfw": false,
    "includeRemoved": false,
    "onlyNewItems": false,
    "maxItems": 20,
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("kizukidata/reddit-user-subreddit-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 = {
    "maxPostsPerSource": 5,
    "maxCommentsPerUser": 5,
    "maxCommentsPerSubreddit": 0,
    "sort": "new",
    "after": "",
    "before": "",
    "includeNsfw": False,
    "includeRemoved": False,
    "onlyNewItems": False,
    "maxItems": 20,
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("kizukidata/reddit-user-subreddit-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 '{
  "maxPostsPerSource": 5,
  "maxCommentsPerUser": 5,
  "maxCommentsPerSubreddit": 0,
  "sort": "new",
  "after": "",
  "before": "",
  "includeNsfw": false,
  "includeRemoved": false,
  "onlyNewItems": false,
  "maxItems": 20,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call kizukidata/reddit-user-subreddit-scraper --silent --output-dataset

```

## MCP server setup

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