# Reddit Scraper — Posts, Comments, Subreddits & Search (`leopoldsaint/reddit-scraper-fast`) Actor

Fast, reliable no-browser Reddit scraper for posts, nested comment trees, keyword monitoring, subreddit feeds, and user profiles. Includes automatic residential proxy fallback, deduplication, and upvote/keyword filters at flat pay-per-item pricing.

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

## Pricing

from $0.90 / 1,000 reddit post or 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

### What does Reddit Scraper — Posts, Comments, Subreddits & Search do?

**Reddit Scraper — Posts, Comments, Subreddits & Search** extracts real-time posts, nested comment trees, keyword monitoring results, subreddit feeds, and user activity directly from [Reddit](https://www.reddit.com) — **no Reddit API key, no cookies, no login, and no heavy headless browser required**.

Built for brand monitoring, lead discovery, AI/LLM RAG pipelines, sentiment analysis, and market research, it runs on Apify with REST API access, scheduled monitoring, n8n/Make/Zapier webhooks, and Apify MCP support.

### Why use Reddit Scraper — Posts, Comments, Subreddits & Search?

- **All 4 Reddit workflows in one Actor** — search keywords globally or inside target subreddits, pull `hot`/`new`/`top`/`rising` subreddit feeds, extract deep nested comment threads from post URLs, and monitor public user activity.
- **Flat, predictable pay-per-event pricing** — one transparent rate per delivered post or comment, with automatic deduplication so you never pay twice for the same thread across overlapping queries.
- **Built-in signal filtering** — filter by `minUpvotes`, `excludeNsfw`, `timeRange`, and `containsKeywords` before billing so low-signal noise is excluded free.
- **No browser overhead** — direct JSON extraction with automatic residential proxy rotation runs in seconds on 512 MB RAM.

### How to scrape Reddit posts and comments

1. Open the **Input** tab and enter **Search Queries** (e.g. `shopify app recommendation`), **Subreddits** (e.g. `SaaS`, `entrepreneur`), direct **Post URLs**, or **Usernames**.
2. Choose **Sort Order** (`hot`, `new`, `top`, `relevance`, `rising`, `comments`) and **Time Range** (`hour`, `day`, `week`, `month`, `year`, `all`).
3. Toggle **Include Comments** if you also want nested comment threads flattened with `depth` and `parentId`.
4. Click **Start** and export structured results as **JSON, CSV, Excel, or HTML**.

### Input

| Field | Type | Default | Description |
| --- | --- | --- | --- |
| `searchQueries` | string\[] | `["shopify app recommendation"]` | Keywords to search site-wide or within target subreddits |
| `subreddits` | string\[] | `["SaaS"]` | Subreddit names or URLs (`SaaS`, `r/shopify`, etc.) |
| `postUrls` | string\[] | `[]` | Direct Reddit post URLs to extract posts + nested comment trees |
| `usernames` | string\[] | `[]` | Reddit usernames (`u/name` or `name`) to fetch public posts/comments |
| `restrictSearchToSubreddits` | boolean | `false` | Scope `searchQueries` strictly inside the listed `subreddits` |
| `sort` / `timeRange` | string | `"hot"` / `"month"` | Sort order and time window |
| `includeComments` / `maxCommentsPerPost` | boolean / int | `false` / `20` | Extract nested comment replies per post |
| `minUpvotes` / `excludeNsfw` / `containsKeywords` | filters | `0` / `true` / `[]` | Pre-billing noise filters |
| `maxItemsPerSource` / `maxTotalItems` | integer | `20` / `30` | Per-source and run caps |

### Output

You can download the dataset in various formats such as **JSON, HTML, CSV, or Excel**.

```json
{
    "itemType": "post",
    "id": "1abc234",
    "fullname": "t3_1abc234",
    "subreddit": "SaaS",
    "title": "Which Shopify loyalty apps actually drive repeat orders?",
    "body": "Testing lightweight store-credit tools for our DTC store...",
    "author": "dtc_founder",
    "score": 148,
    "upvoteRatio": 0.94,
    "numComments": 42,
    "flair": "Discussion",
    "url": "https://www.reddit.com/r/SaaS/comments/1abc234/...",
    "createdAt": "2026-11-23T18:22:10.000Z",
    "sourceType": "subreddit",
    "sourceRef": "r/SaaS"
}
```

### Data table

| Field | Type | Description |
| --- | --- | --- |
| `itemType` | string | `"post"` or `"comment"` |
| `id` / `fullname` / `postId` / `parentId` | string | Canonical Reddit IDs and thread parent linkage |
| `depth` | integer | `0` for posts and top-level comments; increments for nested replies |
| `subreddit` | string | Subreddit name |
| `title` / `body` | string | Post title and post selftext or comment markdown body |
| `author` / `isSubmitter` | string / boolean | Username and whether the commenter is the OP |
| `score` / `upvoteRatio` / `numComments` | number | Engagement metrics |
| `url` / `externalUrl` / `mediaUrl` | string | Canonical Reddit permalink and outbound/media URLs |
| `createdAt` | string | ISO-8601 UTC timestamp |

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

Simple **pay-per-event** pricing with platform usage included:

- **Free tier:** `$1.50` per 1,000 items (`$0.0015 / post or comment`) + `$0.00005` start
- **Bronze:** `$1.30` per 1,000 items
- **Silver:** `$1.10` per 1,000 items
- **Gold+:** `$0.90` per 1,000 items

### API, Automation & AI Agent Integration

#### JavaScript / TypeScript (`apify-client`)

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('leopoldsaint/reddit-scraper-fast').call({
    searchQueries: ['alternative to hubspot'],
    sort: 'new',
    timeRange: 'week',
    includeComments: true,
    maxTotalItems: 100,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

#### Python (`apify-client`)

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("leopoldsaint/reddit-scraper-fast").call(run_input={
    "subreddits": ["SaaS", "entrepreneur"],
    "sort": "top",
    "timeRange": "week",
    "minUpvotes": 20,
    "maxTotalItems": 100,
})
items = client.dataset(run["defaultDatasetId"]).list_items().items
```

#### n8n, Make, Clay & Zapier (Single HTTP Request)

```bash
curl -X POST "https://api.apify.com/v2/acts/leopoldsaint~reddit-scraper-fast/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"subreddits": ["SaaS"], "sort": "hot", "maxTotalItems": 25}'
```

#### AI Agents (Apify MCP)

Connect directly from Claude, Cursor, or ChatGPT via `https://mcp.apify.com` with Actor ID `leopoldsaint/reddit-scraper-fast`.

### Related Audience & Social Intelligence Actors

- [YouTube Comments & Replies Scraper](https://apify.com/leopoldsaint/youtube-comments-scraper) — scrape YouTube discussions and reply threads
- [Google News Scraper with Decoded Publisher URLs](https://apify.com/leopoldsaint/google-news-scraper-fast) — monitor breaking industry news with real canonical links
- [Google Trends Fast Scraper](https://apify.com/leopoldsaint/google-trends-scraper-fast) — measure search momentum behind rising Reddit topics

### FAQ, disclaimers, and support

- **Is this legal?** This Actor extracts publicly accessible Reddit posts and comments without authentication. Respect Reddit's Terms of Service and applicable privacy laws when processing personal data.
- **Need help or a custom workflow?** Open an issue in the **Issues** tab.

# Actor input Schema

## `searchQueries` (type: `array`):

Keywords or phrases to search across Reddit (or restricted to the Subreddits listed below when Restrict Search to Subreddits is enabled).

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

Subreddit names (e.g. 'SaaS', 'r/shopify', 'entrepreneur') to fetch feeds from, or to scope Search Queries.

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

Direct Reddit post URLs to scrape along with their full nested comment trees.

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

Reddit usernames (with or without u/) to extract recent public posts and comments.

## `restrictSearchToSubreddits` (type: `boolean`):

When both Search Queries and Subreddits are provided, search inside each listed subreddit instead of site-wide.

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

Sort order for search results and subreddit listings.

## `timeRange` (type: `string`):

Time window applied to Top and Search sorts.

## `includeComments` (type: `boolean`):

Also extract nested comments for each scraped post (always enabled for direct Post URLs).

## `maxCommentsPerPost` (type: `integer`):

Maximum comments extracted per post when Include Comments is enabled or Post URLs are provided.

## `minUpvotes` (type: `integer`):

Skip posts or comments with net upvotes below this threshold (0 = no filter).

## `excludeNsfw` (type: `boolean`):

Filter out posts marked over_18 / NSFW.

## `containsKeywords` (type: `array`):

Optional case-insensitive keywords; only emit posts/comments matching at least one keyword.

## `maxItemsPerSource` (type: `integer`):

Maximum posts fetched per search query, subreddit, or username.

## `maxTotalItems` (type: `integer`):

Hard cap on total unique posts + comments emitted across the entire run.

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

Apify Proxy settings. Residential proxy fallback is automatically used if datacenter IPs are blocked by Reddit.

## `demoMode` (type: `boolean`):

Run offline on bundled sample Reddit posts & comments without network calls or charges.

## Actor input object example

```json
{
  "searchQueries": [
    "shopify app recommendation"
  ],
  "subreddits": [
    "SaaS"
  ],
  "postUrls": [],
  "usernames": [],
  "restrictSearchToSubreddits": false,
  "sort": "hot",
  "timeRange": "month",
  "includeComments": false,
  "maxCommentsPerPost": 20,
  "minUpvotes": 0,
  "excludeNsfw": true,
  "containsKeywords": [],
  "maxItemsPerSource": 15,
  "maxTotalItems": 20,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  },
  "demoMode": false
}
```

# Actor output Schema

## `items` (type: `string`):

No description

## `summary` (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 = {
    "searchQueries": [
        "shopify app recommendation"
    ],
    "subreddits": [
        "SaaS"
    ],
    "maxItemsPerSource": 15,
    "maxTotalItems": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("leopoldsaint/reddit-scraper-fast").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 = {
    "searchQueries": ["shopify app recommendation"],
    "subreddits": ["SaaS"],
    "maxItemsPerSource": 15,
    "maxTotalItems": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("leopoldsaint/reddit-scraper-fast").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 '{
  "searchQueries": [
    "shopify app recommendation"
  ],
  "subreddits": [
    "SaaS"
  ],
  "maxItemsPerSource": 15,
  "maxTotalItems": 20
}' |
apify call leopoldsaint/reddit-scraper-fast --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,leopoldsaint/reddit-scraper-fast"
        }
    }
}
```

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/arPQPBimqSSiNqeLw/builds/GfswOfT5KH8kAz5E7/openapi.json
