# Reddit Scraper ✅ Posts, Comments, Users, Communities | NO LOGIN (`peakydev/reddit-scraper-post-comments-users`) Actor

✅. Reddit scraper for posts, comments, users, listings, communities and more. NO LOGIN Required

- **URL**: https://apify.com/peakydev/reddit-scraper-post-comments-users.md
- **Developed by:** [Peaky Dev](https://apify.com/peakydev) (community)
- **Categories:** Social media, SEO tools, Automation
- **Features:** Limited permissions
- **Stats:** 271 total users, 4 monthly users, 100.0% runs succeeded, 14 bookmarks
- **User rating**: 4.98 out of 5 stars

## Pricing

from $1.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.
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 Scraper

Extract posts, comments, communities, and user profiles from Reddit, structured, clean, and ready to use.

***

### What It Does

This scraper lets you pull data from any public Reddit URL or search term. Whether you're tracking discussions, researching communities, or building datasets, it returns organised JSON you can pipe straight into your workflow.

**Supported content types:**

- Posts and listing pages
- Comment threads
- User profiles
- Subreddit community pages

***

### Getting Started

1. Paste one or more Reddit URLs **or** enter a search term
2. Choose a scrape type — post, comments, user, listing, or community
3. Set your result limits
4. Run and collect your dataset

***

### Input URL Examples

| Content | Example URL |
| --- | --- |
| Subreddit listing | `https://www.reddit.com/r/worldnews/` |
| Post + comments | `https://www.reddit.com/r/learnprogramming/comments/lp1hi4/...` |
| User profile | `https://www.reddit.com/user/lukaskrivka` |
| Search — posts | `https://www.reddit.com/search/?q=news` |
| Search — users & communities | `https://www.reddit.com/search/?q=news&type=sr%2Cuser` |

***

### Input Parameters

| Parameter | Type | Description | Default |
| --- | --- | --- | --- |
| `url` | array | One or more Reddit URLs to scrape | — |
| `searchTerm` | string | Keyword to search Reddit | `""` |
| `searchSort` | string | Sort order: `relevance`, `hot`, `top`, `new`, `comments` | `relevance` |
| `searchTime` | string | Time filter: `all`, `hour`, `day`, `week`, `month`, `year` | `all` |
| `searchSubreddit` | string | Limit search to a specific subreddit (no `r/` prefix) | `""` |
| `scrapeType` | string | What to scrape: `post`, `listing`, `comments`, `user`, `community` | `post` |
| `maxPosts` | integer | Max posts to return | `1000` |
| `maxComments` | integer | Max comments to return | `1000` |
| `maxListingPosts` | integer | Max posts from a listing page | `1000` |
| `maxCommunities` | integer | Max communities to return | `1000` |
| `maxUsers` | integer | Max user profiles to return | `1000` |

> Use `url` **or** `searchTerm` — not both at the same time.

***

### Sample Input

```json
{
    "url": [
        "https://www.reddit.com/r/learnprogramming/comments/lp1hi4/is_webscraping_a_good_skill_to_learn_as_a_beginner/"
    ],
    "scrapeType": "post",
    "maxPosts": 1000,
    "maxComments": 1000
}
```

***

### Sample Output

```json
[
    {
        "contentType": "post",
        "id": "lp1hi4",
        "parseId": "lp1hi4",
        "createdAt": "2021-02-21T17:08:34.853Z",
        "scrapedAt": "2025-11-06T20:39:27.038Z",
        "communityName": "learnprogramming",
        "author": "SadFrodo401",
        "title": "Is Web-Scraping a good skill to learn as a Beginner?",
        "body": "I'm a python beginner...",
        "upvotes": 4,
        "noOfcomments": 12,
        "url": "https://www.reddit.com/r/learnprogramming/comments/lp1hi4/...",
        "thumbnailUrl": null,
        "isVideo": false,
        "isAd": false,
        "isPinned": false,
        "isOver18": false
    },
    {
        "contentType": "comments",
        "id": "nnegxe8",
        "parseId": "nnegxe8",
        "createdAt": "2025-11-06T11:33:27.000Z",
        "scrapedAt": "2025-11-06T20:46:20.020Z",
        "communityName": "ContagiousLaughter",
        "author": "AutoModerator",
        "body": "Please report this post if...",
        "upvotes": 1,
        "noOfcomments": 0,
        "noOfreplies": 0,
        "url": "https://www.reddit.com/r/ContagiousLaughter/comments/1opwizl/.../nnegxe8/",
        "isVideo": false,
        "isAd": false,
        "isPinned": true,
        "isOver18": false,
        "depth": 0,
        "parentId": "1opwizl",
        "postUrl": "https://www.reddit.com/r/ContagiousLaughter/comments/1opwizl/eddie_murphys_uncle/"
    },
    {
        "id": "worldnews",
        "name": "t5_worldnews",
        "title": "r/worldnews",
        "headerImage": "https://external-preview.redd.it/...",
        "description": "Anyone can view, post, and comment to this community",
        "over18": false,
        "createdAt": "2008-01-24T23:00:00.000Z",
        "scrapedAt": "2025-11-06T21:00:17.080Z",
        "numberOfMembers": 46854095,
        "url": "https://www.reddit.com/r/worldnews/",
        "dataType": "community"
    },
    {
        "id": "4y22fmn1",
        "url": "https://www.reddit.com/user/lukaskrivka/",
        "username": "lukaskrivka",
        "userIcon": "https://styles.redditmedia.com/...",
        "postKarma": 44,
        "commentKarma": 270,
        "over18": false,
        "createdAt": "2020-07-22T10:04:07.000Z",
        "scrapedAt": "2025-11-06T20:39:27.038Z",
        "dataType": "user"
    }
]
```

***

### Resumable Runs

If a run is interrupted — whether by a timeout, error, or manual stop — you can restart it and it will pick up from where it left off rather than starting over.

Progress is tracked at the URL level. Once a URL has been fully scraped, it is recorded as complete. On restart, those URLs are skipped entirely and the scraper picks up on any that were not yet finished.

***

### Use Cases

- **Market research** — monitor brand mentions, product feedback, and community sentiment
- **Academic research** — collect discussion data for topic modelling, NLP, or social studies
- **Trend analysis** — track what's gaining traction across subreddits over time
- **App development** — feed live Reddit data into dashboards, bots, or recommendation engines
- **Content strategy** — find high-engagement threads and understand what resonates with an audience

***

### Pricing

| Plan | Limit | Cost |
| --- | --- | --- |
| Free | 100 items per month | Free |

***

### Support

Open a ticket on the **Issues** tab or contact us directly at **peakydev00@gmail.com**.

# Actor input Schema

## `url` (type: `array`):

Provide one or more Reddit links to scrape. Use '+' to include multiple URLs. (Applicable when Input Mode = 'Direct URL(s)')

## `searchTerm` (type: `string`):

Type the keyword or phrase to search on Reddit (Used when Input Mode = 'Search Reddit')

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

Choose how the search results should be ordered

## `searchTime` (type: `string`):

Select the timeframe for the search results

## `searchSubreddit` (type: `string`):

Restrict the search to a specific subreddit (enter only the name without 'r/', for example 'programming')

## `scrapeType` (type: `string`):

Choose the type of Reddit content to collect from the provided URLs

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

Highest number of comments to retrieve when scrapeType = 'comments'.

## `maxPosts` (type: `integer`):

Highest number of posts to retrieve when scrapeType = 'post'.

## `maxListingPosts` (type: `integer`):

Maximum number of posts to collect from a listing when scrapeType = 'listing'.

## `maxCommunities` (type: `integer`):

Maximum number of communities to collect when scrapeType = 'community'.

## `maxUsers` (type: `integer`):

Maximum number of user profiles to collect when scrapeType = 'user'.

## Actor input object example

```json
{
  "url": [
    ""
  ],
  "searchTerm": "crypto",
  "searchSort": "relevance",
  "searchTime": "all",
  "searchSubreddit": "",
  "scrapeType": "post",
  "maxComments": 1000,
  "maxPosts": 1000,
  "maxListingPosts": 1000,
  "maxCommunities": 1000,
  "maxUsers": 1000
}
```

# 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 = {
    "url": [
        ""
    ],
    "searchTerm": "crypto",
    "searchSort": "relevance",
    "searchTime": "all",
    "searchSubreddit": "",
    "scrapeType": "post"
};

// Run the Actor and wait for it to finish
const run = await client.actor("peakydev/reddit-scraper-post-comments-users").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 = {
    "url": [""],
    "searchTerm": "crypto",
    "searchSort": "relevance",
    "searchTime": "all",
    "searchSubreddit": "",
    "scrapeType": "post",
}

# Run the Actor and wait for it to finish
run = client.actor("peakydev/reddit-scraper-post-comments-users").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 '{
  "url": [
    ""
  ],
  "searchTerm": "crypto",
  "searchSort": "relevance",
  "searchTime": "all",
  "searchSubreddit": "",
  "scrapeType": "post"
}' |
apify call peakydev/reddit-scraper-post-comments-users --silent --output-dataset

```

## MCP server setup

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

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/sbfo12igp2bfetUqK/builds/9jRqDTjqee2Cxv0An/openapi.json
