# Reddit Scraper — Posts, Comments & Search (No Login) (`pepeschuster/reddit-scraper`) Actor

Scrape Reddit posts, comments, users and search results with zero setup — no login, no API key, no OAuth. A cheap, reliable replacement for Reddit's paid API.

- **URL**: https://apify.com/pepeschuster/reddit-scraper.md
- **Developed by:** [Pepe Schuster](https://apify.com/pepeschuster) (community)
- **Categories:** Social media, News
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$30.00 / 1,000 source scanneds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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 Scraper — Posts, Search & Users (No Login, No API Key)

**Scrape Reddit with zero setup — no login, no API key, no OAuth, no app registration. Just enter up to 10 subreddits (plus optional searches, users, or post URLs) and run.** A cheap, reliable, pay-as-you-go replacement for Reddit's expensive official API.

Since Reddit locked down and priced up its API, pulling Reddit data got painful. This Actor gives it back to you the easy way — it reads Reddit's public feeds through rotating residential connections with real browser fingerprints, so you get clean, structured results **without registering an app or handling a single token.**

### What you can scan

- 🔥 **Subreddits (up to 10 per run)** — posts sorted by **Hot, New, Top, Rising, or Controversial** (with a time window for Top).
- \#️⃣ **Hashtags & terms, globally across ALL of Reddit** — pass a list of hashtags, keywords, brands, or tickers (e.g. `#nvidia`, `rtx 5090`, `$TSLA`) and get matching posts **from every community**, not just one subreddit. Sort by New to monitor the latest mentions.
- 🔎 **Search** — a single query, all of Reddit or restricted to one subreddit.
- 👤 **Users** — a user's recent posts and comments.
- 💬 **Post URLs** — a specific post's comment feed.

### Why this one

- ✅ **Truly zero-config** — no Reddit account, no client ID/secret, no OAuth. It works out of the box.
- 🛡️ **Reliable** — rotates residential IPs and real browser fingerprints to get past Reddit's anti-bot blocking, with automatic session refresh, retries, and back-off.
- 💸 **Cheap & predictable** — you pay **per scanned source** (each subreddit, search, user, or post = one unit), not per item. Ten subreddits = ten units, however many posts come back.
- 🎯 **Clean structured output** — flat records ready for JSON, CSV, or Excel, or straight from the Apify API.
- 🧯 **Graceful** — private, banned, or empty sources are skipped with a log line instead of crashing the run.

### Input

| Field | Description |
|---|---|
| `subreddits` | Up to 10 subreddits (without `r/`), e.g. `programming`, `wallstreetbets`. Each is billed as one scanned source. |
| `sort` | `hot` · `new` · `top` · `rising` · `controversial` (default `hot`). |
| `time` | Time window for Top/Controversial: `hour`…`all`. |
| `searchQuery` | Optional. Search term. With exactly one subreddit set, the search is restricted to it. |
| `usernames` | Optional. Usernames (without `u/`) to scan. |
| `postUrls` | Optional. Reddit post URLs to pull the comment feed for. |
| `limitPerSource` | Items to pull per source (max 100). |
| `maxItems` | Optional overall safety cap on total items. |

**Example input**

```json
{
  "subreddits": ["wallstreetbets", "stocks", "investing"],
  "sort": "top",
  "time": "week",
  "searchQuery": "nvidia earnings",
  "limitPerSource": 100
}
```

### Output

One record per post (or comment, for post-URL scans). **Example:**

```json
{
  "type": "post",
  "id": "1f8z9k0",
  "subreddit": "wallstreetbets",
  "title": "Magnificent Eight — Net Income Comparison",
  "author": "Prudent-Corgi3793",
  "permalink": "https://www.reddit.com/r/wallstreetbets/comments/1f8z9k0/...",
  "created": "2026-09-01T14:03:22+00:00",
  "updated": "2026-09-01T14:03:22+00:00",
  "contentText": "Plain-text of the post body…",
  "contentHtml": "<div>…original HTML…</div>"
}
```

Fields: `type`, `id`, `subreddit`, `title`, `author`, `permalink`, `created`, `updated`, `contentText`, `contentHtml`. Export as JSON, CSV, Excel, XML, or via the dataset API.

### Pricing

**Pay per scanned source** — you're billed one unit for each subreddit, search, user, or post you scan, no matter how many items come back, with no monthly fee. Predictable and cheap: scanning 10 subreddits is 10 units.

### FAQ

**Do I need a Reddit account, app, or API key?** No. Nothing to set up — that's the whole point.
**How does it avoid getting blocked?** It reads Reddit's public feeds over rotating residential connections with real browser fingerprints and a warmed session, retrying past the occasional block.
**Does it return vote scores and comment counts?** No — it reads Reddit's public post feeds, which carry titles, authors, links, timestamps, and post text, but not live vote/comment counts.
**Can I schedule it?** Yes — run it on a schedule to keep a rolling feed of subreddits, searches, or users.
**What formats can I export?** JSON, CSV, Excel, XML, or via the API.

### Notes

Returns publicly available Reddit data only. Please scrape responsibly, respect Reddit's content, and comply with applicable terms and laws.

# Actor input Schema

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

Subreddits to scan, without the r/ (e.g. 'programming', 'wallstreetbets'). Up to 10 per run. Each is fetched by the chosen sort order and billed as one scanned source.

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

How to sort subreddit posts (also applied to search results).

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

Time window used only when sort is Top or Controversial.

## `searchQuery` (type: `string`):

Optional. Search Reddit for this term (one scanned source). If exactly one subreddit is set above, the search is restricted to that subreddit; otherwise it searches all of Reddit.

## `searchTerms` (type: `array`):

Optional. Keywords or hashtags to monitor across ALL of Reddit — every term is searched site-wide (not limited to a subreddit) and returns matching posts from any community. Each term is one scanned source. Great for tracking a brand, ticker, topic, or hashtag globally.

## `searchSort` (type: `string`):

How to sort global term/hashtag results. 'New' is best for monitoring the latest mentions.

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

Optional. Reddit usernames (without u/) whose recent posts and comments you want. Each username is one scanned source.

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

Optional. Full Reddit post URLs to fetch that post's comment feed. Each URL is one scanned source.

## `limitPerSource` (type: `integer`):

How many items to pull from each scanned source (max 100 — Reddit's feed limit).

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

Optional overall safety cap on total items returned across all sources.

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

Advanced. Defaults to Apify Residential proxy, which is what gets past Reddit's anti-bot protection with no login or keys. Leave as-is unless you know you need to change it.

## Actor input object example

```json
{
  "subreddits": [
    "programming",
    "technology"
  ],
  "sort": "hot",
  "time": "day",
  "searchQuery": "gpu prices",
  "searchTerms": [
    "#nvidia",
    "rtx 5090",
    "$TSLA"
  ],
  "searchSort": "new",
  "usernames": [
    "spez"
  ],
  "postUrls": [
    "https://www.reddit.com/r/programming/comments/abc123/some_post/"
  ],
  "limitPerSource": 100,
  "maxItems": 1000,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

## `results` (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 = {
    "subreddits": [
        "programming"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("pepeschuster/reddit-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 = {
    "subreddits": ["programming"],
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("pepeschuster/reddit-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 '{
  "subreddits": [
    "programming"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call pepeschuster/reddit-scraper --silent --output-dataset

```

## MCP server setup

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