# Reddit Scraper (`superslowsloth/reddit-scraper`) Actor

Scrape posts from any subreddit by hot, new, top, rising or controversial, or search within subreddits. Returns post ID, title, author, permalink, subreddit and timestamps. Reads Reddit's public feeds, so no account or login is needed. Score and comment count are returned as null.

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

## Pricing

from $1.40 / 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.

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

Scrape posts from any subreddit without a Reddit account, an API key or an OAuth app. Choose a listing — hot, new, top, rising or controversial — or search inside a subreddit, and get back the post ID, title, author, permalink, subreddit and timestamps.

### What you can do with it

- Monitor a subreddit for new posts mentioning your product or a competitor
- Collect discussion titles for topic and trend analysis
- Feed post titles and links into an LLM for summarising a community's week
- Build a dataset of what a niche community talks about over time
- Watch a job, deals or launch subreddit for new listings

### Read this before you buy: what the public feed does not carry

This actor reads Reddit's **public feeds**, which is what makes it work with no account and no credentials. That choice sets a hard limit on the fields available:

| Field | Returned |
|---|---|
| `id`, `title`, `author`, `permalink`, `url` | yes |
| `subreddit`, `published`, `updated` | yes |
| `score`, `num_comments` | **null** |

Score and comment count are **not** carried by the public feed. They are returned as `null` rather than `0`, because a zero would look like a real measurement of an unpopular post. If your use case depends on scores, this is not the right actor for you and we would rather you knew that before paying.

### Input

| Field | Type | Notes |
|---|---|---|
| `subreddits` | array | Names, `r/` prefixes or full subreddit URLs. All three forms work. |
| `sort` | string | `hot`, `new`, `top`, `rising` or `controversial`. |
| `timeFilter` | string | Only meaningful for `top` and `controversial`. |
| `searchQuery` | string | Optional. Searches within the subreddits instead of listing them. |
| `maxItems` | integer | Per subreddit. |
| `proxyConfiguration` | object | Recommended. Reddit rate-limits per address. |

```json
{
  "subreddits": ["python", "learnjapanese"],
  "sort": "new",
  "maxItems": 50,
  "proxyConfiguration": { "useApifyProxy": true, "apifyProxyGroups": ["RESIDENTIAL"] }
}
```

### Output

One dataset item per post:

```json
{
  "id": "1vwtd2g",
  "subreddit": "Python",
  "title": "GUI based Python Tkinter Serial Port Program",
  "author": "xanthium_in",
  "url": "https://www.reddit.com/r/Python/comments/1vwtd2g/...",
  "permalink": "https://www.reddit.com/r/Python/comments/1vwtd2g/...",
  "published": "2026-08-24T05:05:14+00:00",
  "updated": "2026-08-24T05:05:14+00:00",
  "score": null,
  "num_comments": null
}
```

### Why a proxy is recommended

Reddit rate-limits by address. A run covering several subreddits takes a fresh address for each one, which is why multi-subreddit runs finish cleanly with a proxy enabled and start returning rate-limit errors without one.

### Pricing

Pay per result. You are charged for each post delivered, plus a small per-run start fee. A subreddit that returns nothing — private, banned or empty — costs you nothing beyond that start fee.

### FAQ

**Do I need a Reddit account?** No. No account, no API key, no OAuth application and no client secret.

**How far back can I go?** The public feed serves a recent window per listing rather than full history. For older posts, use `searchQuery` with a narrower term.

**Can I get comments?** Not with this actor. It returns posts.

**Does it work on private subreddits?** No. Private and banned subreddits return nothing and are reported in the run log.

# Actor input Schema

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

Names, r/ prefixes, or full subreddit URLs. All three forms work.

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

Which listing to read.

## `timeFilter` (type: `string`):

Only meaningful for top and controversial.

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

Optional. When set, searches within the subreddits instead of reading a listing.

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

Reddit serves 100 per page; more than that is paginated automatically.

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

Recommended. Reddit rate-limits repeated requests from one address.

## Actor input object example

```json
{
  "subreddits": [
    "python"
  ],
  "sort": "hot",
  "timeFilter": "day",
  "maxItems": 100,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

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

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

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

```

## MCP server setup

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