# Reddit Posts Scraper (`piotrv1001/reddit-posts-scraper`) Actor

The Reddit Posts Scraper extracts posts, comment threads, subreddit feeds, search results and user profiles from Reddit — titles, text, scores, upvote ratios, comment counts, flairs, media links, authors and timestamps — no login or API key needed. Ideal for market research and brand monitoring.

- **URL**: https://apify.com/piotrv1001/reddit-posts-scraper.md
- **Developed by:** [FalconScrape](https://apify.com/piotrv1001) (community)
- **Categories:** Social media, Developer tools, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 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

### 🚀 Reddit Scraper — Posts, Comments, Subreddits & User Profiles (No Login)

Extract Reddit data without an API key or account. The **Reddit Scraper** turns subreddit feeds, keyword searches, post threads and user profiles into clean JSON, CSV or Excel — titles, full text, scores, upvote ratios, comment counts, flairs, media links, authors and timestamps.

### ✨ Features

- 📰 **Subreddit feeds**: new, hot, top or rising posts of any community, with a time range for Top.
- 🔍 **Search**: keyword search across all of Reddit or inside one subreddit, sorted by relevance, new, top or most comments.
- 💬 **Comment threads**: full nested comments of any post — author, score, depth, parent, timestamps — including the "load more" branches.
- 👤 **User profiles**: karma, account age and a user's posts or comments.
- 🖼️ **Media**: image, gallery and video URLs, thumbnails and outbound link URLs.
- 📅 **Incremental runs**: a `postedAfter` date so scheduled runs only fetch what is new.
- 🔞 **NSFW control**: 18+ posts are excluded unless you opt in.
- ⚡ **No browser, no login**: hundreds of posts per minute, no rate-limit babysitting, runs never time out.

### 🛠️ How It Works

1. **Add start URLs** – subreddits (`https://www.reddit.com/r/SaaS/` or just `r/SaaS`), posts, user profiles or search result pages. Or type **search queries** to search all of Reddit.
2. **Pick sort, time range and limits** – `maxPosts` per URL/query and, optionally, `maxCommentsPerPost` to include threads.
3. **Run the scraper** – results land in the dataset, ready to download or fetch via API, webhook or scheduled run.

### 💵 Pricing

Pay only for what you extract — no fee per run:

| Event        | Price              |
| ------------ | ------------------ |
| Post         | $0.002 per post    |
| Comment      | $0.001 per comment |
| User profile | $0.002 per user    |

1,000 posts cost $2. A 500-post monitor with 20 comments each costs about $11. There is no start fee, so small scheduled runs stay cheap.

### 📊 Sample Output Data

Post:

```json
{
    "type": "post",
    "id": "1vzl3jz",
    "url": "https://www.reddit.com/r/SaaS/comments/1vzl3jz/the_weirdest_part_of_putting_llms_into_a_real/",
    "title": "The weirdest part of putting LLMs into a real application: successful failures",
    "text": "I've been integrating LLMs into a real application, and a surprising amount of the work looks like boring old reliability engineering…",
    "author": "Choice-Attorney8884",
    "authorId": "t2_2dltyldfzn",
    "subreddit": "SaaS",
    "subredditId": "t5_2qkq6",
    "subredditSubscribers": 790745,
    "score": 2,
    "upvoteRatio": 1,
    "numComments": 2,
    "numCrossposts": 0,
    "awards": 0,
    "createdAt": "2026-08-27T05:33:00.000Z",
    "editedAt": null,
    "flair": "B2B SaaS",
    "postType": "text",
    "isNsfw": false,
    "isSpoiler": false,
    "isLocked": false,
    "isStickied": false,
    "domain": "self.SaaS",
    "linkUrl": null,
    "thumbnail": null,
    "images": [],
    "videoUrl": null,
    "removedBy": null,
    "scrapedAt": "2026-08-27T06:20:11.512Z",
    "source": "https://www.reddit.com/r/SaaS/"
}
```

Comment:

```json
{
    "type": "comment",
    "id": "p63eklm",
    "url": "https://www.reddit.com/r/AskReddit/comments/1vz9tcq/what_do_you_think_will_happen/p63eklm/",
    "postId": "1vz9tcq",
    "postTitle": "What do you think will happen the day after humanity finds out it is not alone?",
    "parentId": "t3_1vz9tcq",
    "depth": 0,
    "text": "A massive party followed by generations of pain and clean up.",
    "author": "okjetsgo",
    "authorId": "t2_9tsme",
    "subreddit": "AskReddit",
    "score": 16060,
    "awards": 0,
    "controversiality": 0,
    "createdAt": "2026-08-26T21:46:00.000Z",
    "editedAt": null,
    "isSubmitter": false,
    "isStickied": false,
    "scrapedAt": "2026-08-27T06:24:05.513Z",
    "source": "https://www.reddit.com/r/AskReddit/comments/1vz9tcq/"
}
```

User profile:

```json
{
    "type": "user",
    "id": "1w72",
    "url": "https://www.reddit.com/user/spez/",
    "username": "spez",
    "displayName": "spez",
    "description": "Reddit CEO",
    "avatar": "https://styles.redditmedia.com/t5_3k30p/styles/profileIcon_uj015iwx9s7g1.png",
    "totalKarma": 940934,
    "postKarma": 184454,
    "commentKarma": 756480,
    "createdAt": "2005-06-06T04:00:00.000Z",
    "isVerified": true,
    "isGold": true,
    "isMod": true,
    "isNsfw": false,
    "scrapedAt": "2026-08-27T06:20:12.771Z",
    "source": "https://www.reddit.com/user/spez/"
}
```

Every item carries `source` — the start URL or query it came from — so multi-target runs stay easy to split.

### ℹ️ Good to know

- Reddit lists at most about **1,000 posts** per feed or search. To go deeper, combine sorts and time ranges (e.g. `top` for each of `week`, `month`, `year`) or run on a schedule with `postedAfter`.
- Quarantined communities and comment-only search require a logged-in Reddit account and are not available.
- Residential proxies are required and preselected in the default proxy configuration.

Turn Reddit into structured data with the **Reddit Scraper** today! 🚀

# Actor input Schema

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

Reddit URLs to scrape, one per line: a subreddit (https://www.reddit.com/r/SaaS/), a post, a user profile (https://www.reddit.com/user/spez/) or a search results page. Shorthands like r/SaaS and u/spez work too.

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

Keywords to search across all of Reddit, one per line. To search within one subreddit, add its search URL to Start URLs instead (https://www.reddit.com/r/SaaS/search?q=pricing).

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

Order of posts for subreddit feeds, user profiles and searches. A sort that is part of a start URL (e.g. /r/SaaS/top/) takes precedence.

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

Applies to Top sorting and searches.

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

Maximum number of posts to collect per start URL or search query. Reddit itself never lists more than about 1,000 posts per feed or search.

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

Also scrape the comment thread of every post, up to this many comments. 0 = posts only (default). Set it to get full threads for post URLs.

## `includeNsfw` (type: `boolean`):

Keep posts marked 18+ in the results.

## `postedAfter` (type: `string`):

Skip posts older than this date (YYYY-MM-DD). Handy for scheduled runs that only need what is new since the last one.

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

Residential proxies are required for reliable results — the default works.

## Actor input object example

```json
{
  "startUrls": [
    "https://www.reddit.com/r/SaaS/"
  ],
  "searchQueries": [],
  "sort": "new",
  "time": "all",
  "maxPosts": 50,
  "maxCommentsPerPost": 0,
  "includeNsfw": false,
  "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 = {
    "startUrls": [
        "https://www.reddit.com/r/SaaS/"
    ],
    "searchQueries": [],
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("piotrv1001/reddit-posts-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 = {
    "startUrls": ["https://www.reddit.com/r/SaaS/"],
    "searchQueries": [],
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

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

```

## MCP server setup

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