# Reddit User Posts Scraper (`scrapingdino/reddit-user-posts-scraper`) Actor

Export posts submitted by Reddit users with sort and time filters — structured publishing history for research and creator analysis. $0.50 per 1,000 posts.

- **URL**: https://apify.com/scrapingdino/reddit-user-posts-scraper.md
- **Developed by:** [Scraping Dino](https://apify.com/scrapingdino) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.50 / 1,000 posts

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 Posts Scraper - Scrape Submitted Posts by Username

### Overview

The **Reddit User Posts Scraper** exports posts submitted by one or more Reddit users. Fetch recent posts (new/hot) or top posts over a selected time range, with a configurable per-user limit, as **clean, structured JSON**.

Use it for creator research, competitor content audits, influencer analysis, and building author-level post datasets. Supports plain usernames and common URL/`u/` formats via normalization.

### Features

- Multi-username batch scraping
- Modes: `posts` or `top`
- Sort for posts mode: `new` or `hot`
- Time range for top mode: `hour` → `all` (default `year`)
- Per-user `maxResults` (1–500, default 50)
- Structured post summaries: title, subreddit, score, comments, URLs, body
- Concurrent workers for faster enrichment jobs
- Per-user error handling for resilient runs

### Use Cases

- **Competitor analysis** — Archive what rival founders post
- **Content research** — Mine successful post formats from creators
- **Brand monitoring** — Follow posts from known brand accounts
- **Influencer / sales intelligence** — Evaluate posting cadence and niches
- **AI training datasets** — Author-conditioned post text
- **Academic research** — Longitudinal samples of user submissions
- **Recruitment** — Review public writing samples at scale
- **Trend monitoring** — Detect topic shifts in a user’s output

### Input

| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| `usernames` | array of strings | **Yes** | — | Reddit usernames to scrape. |
| `mode` | string | No | `"posts"` | `posts` or `top`. |
| `sort` | string | No | `"new"` | When mode is `posts`: `new` or `hot`. |
| `time` | string | No | `"year"` | When mode is `top`: `hour`, `day`, `week`, `month`, `year`, `all`. |
| `maxResults` | integer | No | `50` | Max posts per user (1–500). |

**How parameters affect the run:** `mode` selects recent vs top listings. `time` only applies to top. `maxResults` controls pagination depth per username.

#### Example input

```json
{
  "usernames": ["spez", "GoldenChrysus"],
  "mode": "posts",
  "sort": "new",
  "maxResults": 75
}
```

### Output

| Field | Type | Description |
|---|---|---|
| `username` | string | Target user |
| `mode` | string | Mode used |
| `id` | string | null | Post ID |
| `name` | string | null | Fullname |
| `kind` | string | null | `t3` |
| `title` | string | null | Title |
| `author` | string | null | Author |
| `subreddit` | string | null | Subreddit |
| `score` | number | null | Score |
| `numComments` | number | null | Comments |
| `createdUtc` | number | string | null | Created |
| `permalink` | string | null | Permalink |
| `url` | string | null | Destination URL |
| `body` | string | null | Selftext excerpt |

### Example Output

```json
{
  "username": "GoldenChrysus",
  "mode": "posts",
  "sort": "new",
  "id": "1pq2345",
  "name": "t3_1pq2345",
  "kind": "t3",
  "title": "Built a small tool to track Reddit keyword mentions — feedback welcome",
  "author": "GoldenChrysus",
  "subreddit": "SideProject",
  "score": 420,
  "numComments": 67,
  "createdUtc": 1718100000,
  "permalink": "https://www.reddit.com/r/SideProject/comments/1pq2345/built_a_small_tool_to_track_reddit_keyword/",
  "url": "https://www.reddit.com/r/SideProject/comments/1pq2345/built_a_small_tool_to_track_reddit_keyword/",
  "body": "It polls search results hourly and sends Slack alerts when score crosses a threshold..."
}
```

### Related Scrapers

- **Reddit User Comments Scraper** — Comment history for the same users
- **Reddit User Scraper** — Profile + posts + comments combo
- **Reddit Profile Scraper** — Karma and profile metadata only
- **Reddit User Post Rank Scraper** — Rank a user’s posts inside one subreddit

# Actor input Schema

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

Reddit usernames to scrape posts from. Enter one per line.

## `mode` (type: `string`):

Which post listing to fetch: posts or top.

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

Sort order when mode is posts: new or hot.

## `time` (type: `string`):

Time range when mode is top.

## `maxResults` (type: `integer`):

Maximum number of posts to fetch per user.

## Actor input object example

```json
{
  "usernames": [
    "spez",
    "GoldenChrysus"
  ],
  "mode": "posts",
  "sort": "new",
  "time": "year",
  "maxResults": 50
}
```

# Actor output Schema

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

Default dataset items produced by this Actor.

# 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 = {
    "usernames": [
        "spez",
        "GoldenChrysus"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapingdino/reddit-user-posts-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 = { "usernames": [
        "spez",
        "GoldenChrysus",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("scrapingdino/reddit-user-posts-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 '{
  "usernames": [
    "spez",
    "GoldenChrysus"
  ]
}' |
apify call scrapingdino/reddit-user-posts-scraper --silent --output-dataset

```

## MCP server setup

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