# Reddit Scraper: Posts, Comments, Users & Search (`istmobot/reddit-scraper-cheap`) Actor

Scrape Reddit posts, comments, subreddits, users and search results with no login. Same input and output fields as the most-used Reddit scrapers, at $0.80 per 1,000 results.

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

## Pricing

from $0.80 / 1,000 results

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?

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

### Cheaper drop-in Reddit scraper: same input, same output fields

Already using a Reddit scraper on Apify? **Paste your existing input JSON here and it runs as is.** Input names (`startUrls`, `searches`, `maxItems`, `maxPostCount`, `maxComments`, `skipComments`, `sort`, `time`…) and output fields (`id`, `parsedId`, `url`, `username`, `title`, `communityName`, `body`, `html`, `createdAt`, `dataType`…) match the most-used Reddit scrapers in the Store, so your integrations, Zapier/Make flows and spreadsheets keep working, at a fraction of the price.

No login, no Reddit API key, no browser.

#### Price comparison

| | Price per 1,000 results | 10,000 results |
|---|---|---|
| **This Actor** | **$0.80** | **$8** |
| Typical cheap Reddit scrapers | $1.15 to $1.49 | $11.50 to $14.90 |
| Most popular Reddit scraper (lite) | $4.00 | $40 |

You pay $0.80 per 1,000 saved items (posts, comments, communities, users) plus $0.001 per run start. Error rows are free. No monthly rental.

### What you can scrape

- **Subreddits**: `https://www.reddit.com/r/pasta/`, and any sort: `/r/pasta/new/`, `/r/pasta/top/?t=week`, `/r/popular/`
- **Posts with comments**: `https://www.reddit.com/r/pasta/comments/vwi6jx/...` (up to about 500 comments per post)
- **Users**: `https://www.reddit.com/user/spez/` (their latest posts and comments), `/user/spez/comments/`, `/user/spez/submitted/`
- **Search**: keywords in `searches`, optionally inside one subreddit (`searchCommunityName`), sorted by relevance, hot, top, new or comments, with a time filter
- **Community search**: find subreddits by keyword (`searchCommunities`)

Each subreddit or search post is followed by its comments (set `skipComments` to turn that off).

### Input example

```json
{
  "startUrls": [
    { "url": "https://www.reddit.com/r/pasta/" },
    { "url": "https://www.reddit.com/r/pasta/comments/vwi6jx/pasta_peperoni_and_ricotta_cheese_how_to_make/" }
  ],
  "maxItems": 100,
  "maxPostCount": 10,
  "maxComments": 10
}
```

Search instead of URLs:

```json
{
  "searches": ["best pasta sauce"],
  "searchCommunityName": "Cooking",
  "sort": "top",
  "time": "year",
  "maxItems": 200,
  "maxPostCount": 50,
  "maxComments": 3
}
```

As with other Reddit scrapers, the search fields are ignored when Start URLs are filled in (set `ignoreStartUrls` to run searches anyway).

### Output

#### Post

```json
{
  "id": "t3_1xi7ytl",
  "parsedId": "1xi7ytl",
  "url": "https://www.reddit.com/r/pasta/comments/1xi7ytl/its_clean_out_the_freezer_week/",
  "username": "callmestinkingwind",
  "title": "it's clean out the freezer week...",
  "communityName": "r/pasta",
  "parsedCommunityName": "pasta",
  "category": "pasta",
  "body": "the bratwurst is homemade.",
  "html": "<div class=\"md\"><p>the bratwurst is homemade. </p> </div>",
  "link": "https://www.reddit.com/gallery/1xi7ytl",
  "thumbnailUrl": "https://preview.redd.it/i6touxx8hbyh1.jpeg?width=140&height=105&...",
  "imageUrls": [],
  "videoUrls": [],
  "isVideo": false,
  "createdAt": "2026-10-29T02:24:51.000Z",
  "scrapedAt": "2026-10-29T06:10:02.114Z",
  "dataType": "post"
}
```

#### Comment

```json
{
  "id": "t1_ifpybzt",
  "parsedId": "ifpybzt",
  "url": "https://www.reddit.com/r/pasta/comments/vwi6jx/pasta_peperoni_and_ricotta_cheese_how_to_make/ifpybzt/",
  "postId": "t3_vwi6jx",
  "username": "Cooking_Vito_e_Daisy",
  "communityName": "r/pasta",
  "category": "pasta",
  "body": "Ytube video procedure here...",
  "html": "<div class=\"md\">...</div>",
  "createdAt": "2022-07-11T09:14:21.000Z",
  "dataType": "comment"
}
```

Community items (`dataType: "community"`) carry `id`, `name`, `title`, `description`, `createdAt`, `url`. User items (`dataType: "user"`) carry `username`, `url`, `description`.

### Good to know

- **Vote counts are not included.** Reddit now blocks its JSON API for logged-out visitors, so this Actor reads Reddit's public feeds, the same source other scrapers use in their default fast mode. `upVotes`, `numberOfComments`, `upVoteRatio`, `over18`, `flair` and `userId` are present for compatibility but `null`. Comment `parentId` (reply threading) is not available either.
- **Not supported**: comment search, user search, media search and leaderboard pages. Reddit does not serve them without login. The input switches are accepted so old inputs don't break; a warning is logged.
- **Limits**: Reddit lists stop at about 1,000 posts per feed, and a post's comment feed returns up to about 500 comments. Combine sorts (`new`, `top`, `hot`) or searches to go further.
- **Proxy**: datacenter Apify Proxy is the default and is all Reddit needs. A copied RESIDENTIAL setting is switched to datacenter automatically.
- **NSFW**: `includeNSFW` applies to searches. Start URLs return whatever the page shows.
- Private, banned or quarantined subreddits return an error row (free) instead of failing the run.

### FAQ

**Is scraping Reddit legal?** This Actor only reads public pages that anyone can open without logging in. Personal data in the results (usernames, comment text) may be protected by GDPR and similar laws; only scrape and store what you have a legitimate reason to process.

**Can I schedule it?** Yes. Use Apify schedules, for example `/r/yourbrand/new/` every hour with `postDateLimit` set, to monitor mentions.

# Actor input Schema

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

Reddit URLs: subreddits (https://www.reddit.com/r/pasta/, /r/pasta/top/?t=week), posts, users (https://www.reddit.com/user/spez/) or search pages (https://www.reddit.com/search/?q=pasta). When set, the search fields below are ignored.

## `skipComments` (type: `boolean`):

Only output posts, not their comments.

## `skipUserPosts` (type: `boolean`):

For user URLs, only output the user item, not their posts and comments.

## `skipCommunity` (type: `boolean`):

For subreddit URLs, do not output the community item.

## `searches` (type: `array`):

Keywords to search on Reddit. Only used when Start URLs is empty.

## `searchCommunityName` (type: `string`):

Search only inside this subreddit, e.g. "programming".

## `ignoreStartUrls` (type: `boolean`):

Run the searches even if Start URLs are filled in.

## `searchPosts` (type: `boolean`):

Return matching posts (with their comments unless "Skip comments").

## `searchCommunities` (type: `boolean`):

Return matching subreddits.

## `searchComments` (type: `boolean`):

Not supported: Reddit no longer serves comment search without login. Kept so existing inputs still run.

## `searchUsers` (type: `boolean`):

Not supported: Reddit no longer serves user search without login. Kept so existing inputs still run.

## `searchMedia` (type: `boolean`):

Not supported. Kept so existing inputs still run.

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

Sort order for search results.

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

Time window for search results.

## `includeNSFW` (type: `boolean`):

Include over-18 results in searches.

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

Total items (posts + comments + communities + users) across the whole run. You pay per saved item.

## `maxPostCount` (type: `integer`):

Posts per subreddit, search or user feed.

## `maxComments` (type: `integer`):

Comments per post (Reddit returns at most about 500 per post). 0 = no comments.

## `maxCommunitiesCount` (type: `integer`):

Communities per search term (with "Search for communities").

## `maxUserCount` (type: `integer`):

Kept for input compatibility (user search is not supported).

## `postDateLimit` (type: `string`):

Only posts published on or after this date.

## `commentDateLimit` (type: `string`):

Only comments posted on or after this date.

## `proxy` (type: `object`):

Datacenter Apify Proxy is enough for Reddit. RESIDENTIAL is not needed and is switched to datacenter automatically.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.reddit.com/r/pasta/comments/vwi6jx/pasta_peperoni_and_ricotta_cheese_how_to_make/"
    }
  ],
  "skipComments": false,
  "skipUserPosts": false,
  "skipCommunity": false,
  "ignoreStartUrls": false,
  "searchPosts": true,
  "searchCommunities": false,
  "searchComments": false,
  "searchUsers": false,
  "searchMedia": false,
  "sort": "new",
  "includeNSFW": true,
  "maxItems": 10,
  "maxPostCount": 10,
  "maxComments": 10,
  "maxCommunitiesCount": 2,
  "maxUserCount": 2,
  "proxy": {
    "useApifyProxy": true
  }
}
```

# 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 = {
    "startUrls": [
        {
            "url": "https://www.reddit.com/r/pasta/comments/vwi6jx/pasta_peperoni_and_ricotta_cheese_how_to_make/"
        }
    ],
    "maxItems": 10,
    "maxPostCount": 10,
    "maxComments": 10,
    "proxy": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("istmobot/reddit-scraper-cheap").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 = {
    "startUrls": [{ "url": "https://www.reddit.com/r/pasta/comments/vwi6jx/pasta_peperoni_and_ricotta_cheese_how_to_make/" }],
    "maxItems": 10,
    "maxPostCount": 10,
    "maxComments": 10,
    "proxy": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("istmobot/reddit-scraper-cheap").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 '{
  "startUrls": [
    {
      "url": "https://www.reddit.com/r/pasta/comments/vwi6jx/pasta_peperoni_and_ricotta_cheese_how_to_make/"
    }
  ],
  "maxItems": 10,
  "maxPostCount": 10,
  "maxComments": 10,
  "proxy": {
    "useApifyProxy": true
  }
}' |
apify call istmobot/reddit-scraper-cheap --silent --output-dataset

```

## MCP server setup

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

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/Pk1nPR0TW6htk3R8Q/builds/V3VSl21wmDwkrQsBO/openapi.json
