# Reddit Scraper: Posts, Comments & Users, from $0.49/1K (`laptime/reddit-scraper`) Actor

From $0.49/1K comments, $0.99/1K posts. Fastest Reddit scraper in our head-to-head tests. No login, no start fee. Full comment threads from subreddits, post URLs, keyword search and users. Only-new monitoring, 70+ fields, AI lead scoring.

- **URL**: https://apify.com/laptime/reddit-scraper.md
- **Developed by:** [Laptime](https://apify.com/laptime) (community)
- **Categories:** Social media, Lead generation, Agents
- **Features:** Limited permissions
- **Stats:** 12 total users, 5 monthly users, 97.4% runs succeeded, 0 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $0.35 / 1,000 comments

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** gets posts, complete comment threads, users and communities from any subreddit, post link, search term or username, ready for Excel, CSV or JSON. No login, no API key.

[![How to use Reddit Scraper without coding: 1. Try for free 2. Paste a subreddit + Start 3. Posts with full comment threads 4. Export to Excel](https://raw.githubusercontent.com/laptimehq/laptime-assets/main/howto/reddit-scraper-steps.jpg?v=20261120)](https://raw.githubusercontent.com/laptimehq/laptime-assets/main/howto/reddit-scraper-steps.jpg?v=20261120)

*No coding: click **Try for free**, keep the example input, click **Start**, export to Excel.*

### Why this one

- 💰 **The cheapest of the top Reddit scrapers:** $0.99/1K posts, $0.49/1K comments; 100 posts with 20 comments each ≈ $1.08. No start fee; filtered rows and empty runs are free.
- ⚡ **Fastest in our head-to-head tests:** 100 posts in 3.4 s and 300 comments in 4.5 s, up to 70× faster than the most-used Reddit scraper ([benchmarks](#how-does-it-compare-to-other-reddit-scrapers)).
- 🎯 **Strict search:** 20 of 20 results really mention your keyword, against 8 or 9 of 20 from Reddit's own search and other scrapers.
- 🔔 **Only new posts:** schedule it and get just the posts you haven't seen, with every comment at every depth. Nothing new costs $0.
- 🔁 **Drop-in:** inputs for trudax, harshmaur, automation-lab, fatihtahta and clearpath run unchanged; change only the Actor ID.

[![Reddit Scraper results in Apify: r/webscraping posts with title, subreddit, author, text, score and comment count](https://raw.githubusercontent.com/laptimehq/laptime-assets/main/howto/reddit-scraper-output.jpg?v=20261120)](https://raw.githubusercontent.com/laptimehq/laptime-assets/main/howto/reddit-scraper-output.jpg?v=20261120)

*A real run of the default input: 10 posts and 24 comments from r/webscraping in 3.5 s, one row per post or comment.*

### What is Reddit Scraper?

**Reddit Scraper** extracts posts and comments from [Reddit](https://www.reddit.com) without the Reddit API, a login or cookies: titles, text, scores, upvote ratios, flair, authors, images, videos, polls and **complete comment threads** with their nesting. Paste a subreddit, a post link, a search term or a username, click **Start**, and download JSON, CSV or Excel.

It keeps working through Reddit's 2026 lockdown (no more anonymous `.json` pages or RSS feeds, and no new API access), because it reads the same public pages any logged-out visitor sees.

- 🔔 **Monitor brands and keywords:** schedule a search and get only the posts you haven't seen yet. A run that finds nothing new costs $0.
- 🎯 **Find leads and pain points:** "alternative to X" threads, recommendation requests and complaints about competitors, with every commenter's username. Search comments too, not just posts.
- 🤖 **Build AI datasets:** Markdown text plus `depth`, `parentId` and `rootCommentId` on every comment, every level of every thread, ready for RAG, fine-tuning and sentiment analysis.
- 📊 **Research communities:** a subreddit's new, hot or top posts with their comments and community stats, past Reddit's ~1,000-post limit. **Find communities** by keyword, with members and weekly visitors.
- 👤 **Look up users:** profiles with karma, account age and trophies, plus each user's posts and comments, live from Reddit.
- 🧠 **RAG and fine-tuning formats:** one Markdown document or one chat-format training example per thread, comments inside, ready to embed or train on.

> ✅ **Verified working on 19 Nov 2026:** the default input below ran on Apify three times in a row (release 0.5) and returned 10 posts and 24 comments in 3.4 to 4.6 s every time. We re-run the benchmarks every month and update this date.

### How does it compare to other Reddit scrapers?

**Speed, measured head to head** on Apify on 17 Nov 2026: the same task with each Actor's default settings. Time is the run's total time as Apify reports it, start-up included.

| Task | **Laptime** | harshmaur | clearpath | automation-lab | fatihtahta | trudax (lite) |
|---|---|---|---|---|---|---|
| r/technology, 100 newest posts | **3.4 s** | 4.1 s | 34 s | 44 s | 127 s | gave up after 333 s |
| r/AskReddit, top of the week: 10 posts × 20 comments | **3.9 s** | 4.8 s | 6.8 s | 39 s | 112 s | 286 s |
| 300 comments from one 1,729-comment r/AskReddit thread | **4.5 s** | 7.9 s | 9.5 s | 55 s | no comments returned | |

**Relevance, measured** on 18 Nov 2026: the search "HubSpot alternative", newest first, 20 posts per Actor, all runs within 20 minutes.

| | **Laptime, Strict search on** | harshmaur | getanyapi | Laptime, Strict search off (Reddit's own results) |
|---|---|---|---|---|
| Posts that mention HubSpot | **20 of 20** | 9 of 20 | 9 of 20 | 8 of 20 |

Reddit's search matches loosely, more so when sorted by new. Strict search keeps a post only when its title or text contains every word of your term (plurals and any case are fine), a "quoted phrase" as written, and none of your -words. Posts it drops are free, and most are ruled out without even loading them.

**Price** for the same job at each Actor's **Free plan list price** (18 Nov 2026).

| Job | **Laptime** | automation-lab | fatihtahta | harshmaur | apify | trudax (lite) |
|---|---|---|---|---|---|---|
| 1,000 posts, no comments | **$0.99** | $1.15 | $1.49 | $2.02 | $4.00 | $4.04 |
| 100 posts with 20 comments each | **$1.08** | $1.62 | $3.13 | $4.22 | $6.80 | $8.44 |
| Daily brand monitor for a month (30 runs, 600 posts, 6,000 comments) | **$3.53** | $5.28 | $9.83 | $13.80 | $21.63 | $27.60 |
| A run that finds nothing | **$0** | $0.003 | $0 | $0.02 | $0.0015 | $0.04 |

List prices used: automation-lab $1.15 per 1,000 posts, $0.75 per 1,000 comments, $0.003 per run; fatihtahta $1.49 per 1,000 items; harshmaur $2.00 per 1,000 results plus $0.02 per run; apify $4.00 per 1,000 posts, $3.20 per 1,000 comments, $0.001 per run; trudax $4.00 per 1,000 results plus $0.02 per GB of memory per run (2 GB in our test).

It's also the only one of these that remembers what it already delivered, so a daily monitoring run with nothing new costs nothing, and the only one that tells you, per post, how complete its comment thread is.

### What data can you extract from Reddit?

**76 fields per post and 48 per comment**, every one documented (type, meaning, when it's empty) in the Output tab's schema.

| | | |
|---|---|---|
| 📝 Post title and text (Markdown + HTML) | ⬆️ Score, upvote ratio, votes and comments per hour | 💬 Comment count, comments scraped and completeness |
| 👤 Author, author ID and avatar | 🏷️ Flair text and colors | 📅 Created and edited dates (ISO 8601 and Unix) |
| 🖼️ Images and galleries (originals, sizes, captions) | 🎬 Videos with sound, duration, HLS and DASH playlists, subtitles | 📊 Polls with options and results |
| 🔗 Link, domain, embeds (YouTube…) and crosspost parent | 👥 Subreddit members, weekly visitors and contributions, icon, banner, type | 🏆 Awards, rank in the feed |
| 🗨️ Comment text, score, author, bot flag and badge | 🌳 Depth, parent, root and path on every comment | 🗑️ Deleted and removed markers, and who removed it |
| 🎖️ Author karma and account age (optional) | 🔞 NSFW, spoiler, locked, pinned, archived flags | 🔑 A stable `idempotencyKey` for upserts |

Every reply keeps its parent: when Reddit no longer shows a comment but still shows its replies, you get a free placeholder row in its place (`isPlaceholder: true`).

### What can it do?

- **Subreddits, posts, searches, users:** paste any mix of URLs, or type search terms. Share links (`/r/x/s/…`), `redd.it` links, galleries, comment links, `v.redd.it` videos, `i.redd.it` images and `/r/popular/` (Reddit's Popular feed) work too.
- **Complete comment threads:** every "load more comments" and "more replies" button and every "continue this thread" link, down to the deepest reply. Each post row says how many comments were scraped and how complete the thread is.
- **Comment search:** search Reddit's comments, across Reddit or inside one subreddit, sorted by relevance, top or new.
- **Monitoring:** **Only new posts** remembers what earlier runs delivered and skips it, so a scheduled run returns only new posts and costs nothing when there's nothing new.
- **Strict search:** keep only results that really contain your search words or "exact phrase", instead of everything Reddit's loose search returns. With it off, every search result still says in `matchesQuery` whether it really matches, so you can filter later.
- **Date windows and filters:** "newer than 7 days", "older than 2026-11-01", must-contain and must-not-contain keywords, **min upvotes**, **min comments**, **post types** (text, image, gallery, video, link, poll), **flairs** ("Question", or any flair at all), NSFW on or off. A date window also narrows Reddit's time range for you, so a "last 7 days" search fills up with posts from those 7 days.
- **More than 1,000 posts per subreddit:** **Combine sorts** reads up to 13 of a subreddit's lists side by side and removes duplicates.
- **Users:** paste usernames or profile URLs. Each user's posts and comments come live from Reddit, newest first or top; past Reddit's ~1,000 per list the [Arctic Shift](https://arctic-shift.photon-reddit.com) archive continues (marked `"dataSource": "archive"`). Turn on **User profiles** for a profile row (post, comment and total karma, account age, verified, premium, moderator and employee flags, avatar, bio, trophies), or **Only user profiles** for a fast bulk lookup.
- **Community search:** **Search for communities** finds subreddits by keyword, best match first, with members, weekly visitors, description, type, language and created date.
- **Skip the noise:** **Skip pinned and moderator posts** drops pinned posts, official moderator or admin posts and AutoModerator's daily threads; **Skip posts by these users** drops bots or your own brand account. Both free.
- **AI-ready output:** **Output format** `rag-markdown` gives one Markdown document per thread (post, metadata header and comments, with `chunkId` and flat `metadata` for your vector database); `jsonl-finetune` gives one OpenAI chat-format training example per thread. Export the dataset as JSONL.
- **Optional AI enrichment:** sentiment, intent, lead scores and thread summaries on the rows you scrape ([details](#ai-enrichment-optional)).

### How to scrape Reddit

1. [Create a free Apify account](https://console.apify.com/sign-up). No credit card needed.
2. Open Reddit Scraper and paste a subreddit URL (like `https://www.reddit.com/r/webscraping/`) or a post URL into **Start URLs**, a keyword into **Search terms**, or a username into **Usernames**. One is enough.
3. Open **Limits** to set **Max posts per URL or search** and **Max comments per post**. Start small to test.
4. Click **Start**. Most runs finish in seconds.
5. Download your Reddit data as JSON, CSV, Excel or HTML, or fetch it with the API.

**Quick start input** (the prefilled default):

```json
{
  "startUrls": [{ "url": "https://www.reddit.com/r/webscraping/" }],
  "maxPostCount": 10,
  "maxComments": 5
}
```

### How much does it cost to scrape Reddit?

Reddit Scraper uses **pay-per-event** pricing. Proxies and Apify platform usage are included.

| Event | Price on the Free plan |
|---|---|
| Post delivered (also each community, user profile, or AI-ready document) | **$0.99 per 1,000** |
| Comment delivered | **$0.49 per 1,000** |
| Run start | **free** |

AI-ready documents (`outputFormat`) include up to 10 comments in the post price; each further comment in a document is charged as a comment.

| You want | Cost |
|---|---|
| 1,000 posts, no comments | $0.99 |
| 100 posts with 50 comments each | $0.10 + $2.45 = $2.55 |
| 10,000 posts | $9.90 |
| 1,000 RAG documents (threads with 10 comments each) | $0.99 |
| Karma lookup for 1,000 usernames (profiles only) | $0.99 |
| A daily brand monitor that finds nothing new | $0 |

What you are never charged for: run starts, placeholder rows, posts skipped by your filters (dates, keywords, strict search, upvotes, comments, post types, flairs), posts an earlier monitoring run already delivered, and runs that return nothing. A run that fails halfway is charged only for the rows it delivered, and a run Apify moves to another server never charges a row twice. **Max items in total** stops the run at a fixed number of rows, and Apify's **Maximum cost per run** setting is respected, so you can cap every run's bill.

**Works on the Apify free plan:** the $5 of monthly platform credit covers about 10,000 comments with this Actor, no card needed. That is also about 5,000 posts, or 1,000 posts with 8,000 comments.

### AI enrichment (optional)

Off by default; turn it on in the **AI enrichment** section of the input.

- **AI labels:** every post and comment gets `aiSentiment` and `aiSentimentScore`, `aiIntent` (buying intent, recommendation request, question, complaint, praise, self-promotion, job post, news, discussion), `aiEmotion`, a 0-100 `aiLeadScore` with a one-line `aiLeadReason` judged against what you sell (`aiContext`), `aiTopic`, the brands and products named (`aiEntities`), `aiLanguage` and a one-sentence `aiSummary` of long posts.
- **Yes/no flags and your own questions:** ready-made flags (wantsHelp, isVendor, hasPain, willingToPay, mentionsPrice, isSwitching, alreadySolved, competitor…) or up to 10 custom labels in `{"name": "instruction"}` form, answered in `aiLabels`.
- **Thread summaries:** "what are people saying" in 2-3 sentences, the products mentioned most, the overall tone, and whether the author got a useful answer, on each post row.

| AI event | Price |
|---|---|
| Labelled row (`ai-label`) | **$0.30 per 1,000** |
| Each extra yes/no flag or custom label per row (`ai-custom-label`) | **$0.05 per 1,000** |
| Thread summary (`ai-thread-summary`) | **$3 per 1,000** |

Bot, moderator and deleted rows are skipped and never charged, and so are rows the AI could not label. **Bring your own key** (OpenRouter, OpenAI, Anthropic, Gemini or any OpenAI-compatible endpoint) and no AI events are charged at all. On Apify's free plan, our AI covers the first 100 rows and 5 thread summaries of each run; upgrade your Apify plan or add your own key to label everything.

### Use cases with copy-paste inputs

Paste an input into the **JSON** tab of the input form, or send it through the API.

#### Monitor a brand or competitor every day

Searches all of Reddit for your names, drops the other meanings, and returns only posts no earlier run delivered.

```json
{
  "searches": ["\"Acme CRM\"", "acmecrm"],
  "sort": "new",
  "postDateLimit": "2 days",
  "excludeKeywords": ["acme anvil", "looney tunes"],
  "onlyNew": true,
  "monitorName": "acme-brand",
  "maxPostCount": 100,
  "maxComments": 20
}
```

Save it as a task, add a daily schedule, and connect Slack or Google Sheets ([recipes](#send-reddit-data-to-slack-google-sheets-n8n-make-or-zapier)). "2 days" overlaps the daily schedule, so a late or failed run never leaves a gap, and the monitor memory stops you paying twice. A day with 20 new posts and 20 comments each costs $0.02 + $0.20 = $0.22; a day with nothing new costs $0.

#### Find leads: people asking for an alternative

```json
{
  "searches": ["alternative to Zapier", "Zapier alternative", "replace Zapier"],
  "sort": "new",
  "strictSearch": true,
  "postDateLimit": "7 days",
  "excludeKeywords": ["[hiring]", "[for hire]"],
  "maxPostCount": 50,
  "maxComments": 0,
  "aiAnalysis": true,
  "aiScope": "posts",
  "aiContext": "We sell an automation platform for small teams. Competitors: Zapier, Make, n8n."
}
```

Posts only, with an AI lead score on each: 150 posts cost at most $0.15 + $0.05. Sort by `aiLeadScore`, then pull the comments only for the threads worth answering: put their URLs in **Start URLs** with `"maxComments": 100`.

#### Find what people say in comments

```json
{
  "searches": ["notion vs obsidian"],
  "searchComments": true,
  "searchPosts": false,
  "sort": "new",
  "time": "month",
  "maxPostCount": 100
}
```

Each matching comment comes with its post's ID and title. Add `"searchCommunityName": "productivity"` to search inside one subreddit.

#### Build an AI or sentiment dataset

```json
{
  "startUrls": [{ "url": "https://www.reddit.com/r/LocalLLaMA/top/?t=year" }],
  "maxPostCount": 200,
  "maxComments": 300,
  "commentSort": "top",
  "maxItems": 60000
}
```

Every comment has `depth`, `parentId`, `rootCommentId`, `path` and `postId`, and comments arrive in reading order (each top-level comment followed by its replies). Deleted and removed comments keep their place in the tree, with `removalStatus` and `removedBy`. 200 posts with up to 300 comments each cost at most $0.20 + $29.40.

#### Feed a RAG pipeline or fine-tune a model

```json
{
  "startUrls": [{ "url": "https://www.reddit.com/r/LocalLLaMA/top/?t=month" }],
  "maxPostCount": 200,
  "maxComments": 10,
  "commentSort": "top",
  "outputFormat": "rag-markdown"
}
```

One row per thread (`dataType: "rag"`): `markdown` (also as `pageContent` for LangChain and LlamaIndex) holds the title, a metadata header, the post and its top 10 comments as a nested list; `chunkId` (`reddit-<subreddit>-<postId>`) is stable for upserts; `metadata` has subreddit, score, date, flair and any AI labels as flat fields. 200 documents cost $0.20. Use `"outputFormat": "jsonl-finetune"` for OpenAI chat-format examples (`messages`: system, the post, the community's answers) and download the dataset as JSONL.

#### Find subreddits about a topic

```json
{
  "searches": ["web scraping", "data engineering"],
  "searchCommunities": true,
  "searchPosts": false,
  "maxCommunities": 25
}
```

Up to 25 communities per term (`dataType: "community"`), best match first, with members, weekly visitors, description, NSFW flag and created date. Feed the subreddits you like into **Start URLs** next.

#### Look up Reddit users

```json
{
  "usernames": ["spez", "u/kn0thing"],
  "includeUserProfiles": true,
  "userSection": "overview",
  "userComments": true,
  "maxPostCount": 50
}
```

A profile row per user (karma, account age, trophies, flags), then their 50 newest posts and 50 newest comments, live. `"userProfilesOnly": true` returns just the profiles: a list of 1,000 usernames costs $0.99. The focused [Reddit User Scraper](https://apify.com/laptime/reddit-user-scraper) has this form ready.

#### Get the whole comment thread of one post

```json
{
  "startUrls": [{ "url": "https://www.reddit.com/r/AskReddit/comments/1xun2rw/" }],
  "maxComments": 100000
}
```

Every branch, at any depth: on our test threads (24 to 1,064 comments) that was 97-100% of the count Reddit shows, which includes comments it no longer displays. `maxCommentDepth` keeps only the top levels when you don't need deep replies.

#### Scrape more than 1,000 posts from a subreddit

```json
{
  "startUrls": [{ "url": "https://www.reddit.com/r/lisp/" }],
  "combineSorts": true,
  "maxPostCount": 5000,
  "skipComments": true
}
```

Reddit stops every list at about 1,000 posts. **Combine sorts** reads up to 13 lists (new, hot, rising, top and controversial over several time ranges) side by side and removes duplicates. On r/lisp that gave 1,792 unique posts in 62 s. Add **Only posts newer than** / **older than** for a date window.

#### Replace a Reddit RSS feed or the n8n/Make Reddit node

Reddit switched off RSS on 13 Nov 2026 and is closing its public API to unregistered apps from 12 Jan 2027. That breaks `.rss` links, PRAW scripts, the n8n Reddit node and the Make Reddit app. Use these inputs instead:

| You used | Use this input |
|---|---|
| A subreddit feed (`/r/SaaS/new/.rss`) | `"startUrls": [{"url": "https://www.reddit.com/r/SaaS/new/"}]`, `"postDateLimit": "2 hours"`, `"onlyNew": true` on an hourly schedule |
| A search feed (`/search.rss?q=...`) | `"searches": ["your keyword"]`, `"sort": "new"`, `"postDateLimit": "1 day"`, `"onlyNew": true` |
| Reddit node: get posts of a subreddit | `"startUrls"` with the subreddit and `"maxPostCount"` |
| Reddit node: get comments of a post | `"startUrls"` with the post URL and `"maxComments"` |
| Reddit node: search | `"searches"` with `"sort"` and `"time"` |

### Send Reddit data to Slack, Google Sheets, n8n, Make or Zapier

**Quickest:** paste a Slack incoming-webhook or Discord webhook URL into **Send results to a webhook**. Each run that delivers rows posts a message with the first 15 posts (title, link, subreddit, score; the comments, in a comment-search run) and a link to all rows; a monitoring run with nothing new stays silent. Any other URL gets the counts and the first 50 posts or comments as JSON.

Start by saving your input as a **task** (the **Save as new task** button), then give it a schedule (**Schedule** in the task menu).

- **Slack:** on the task's **Integrations** tab, add **Slack**, tick the "Run succeeded" event and use this message: `:mag: {{resource.statusMessage}} <https://console.apify.com/storage/datasets/{{resource.defaultDatasetId}}|Open the results>`. The status message reads like "Done: 12 posts and 140 comments in 9.4s". Tick "Run failed" as well to get an alert when something breaks.
- **Google Sheets (no code):** in a cell, `=IMPORTDATA("https://api.apify.com/v2/actor-tasks/<TASK_ID>/runs/last/dataset/items?format=csv&view=posts&status=SUCCEEDED&token=<API_TOKEN>")` loads the last successful run. Anyone who can open the sheet can see the token, so use it only in private sheets. For appending rows, use Make or Zapier below.
- **n8n:** add the Apify node, operation **Run an Actor and get dataset** (or **Run task and get dataset**), Actor `laptime/reddit-scraper`, and paste your input as JSON. The items flow into the next node (Slack, Sheets, Notion, your CRM).
- **Make:** Apify **Run an Actor** (Run synchronously: Yes) → Apify **Get Dataset Items** → Google Sheets **Bulk Add Rows**. For long runs, use **Watch Actor Runs** as the trigger instead.
- **Zapier:** trigger **Finished task run** (Apify) → search **Fetch dataset items** → Google Sheets **Create Spreadsheet Row** or Slack **Send Channel Message**.
- **Webhooks:** any URL can receive a POST when a run finishes (task → **Integrations** → **HTTP webhook**).

### Reddit API in Python, JavaScript and AI agents

Use Reddit Scraper as a Reddit API: send an input, get JSON back.

#### Python

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_API_TOKEN>")
run = client.actor("laptime/reddit-scraper").call(run_input={
    "searches": ["your brand"],
    "sort": "new",
    "postDateLimit": "7 days",
    "maxPostCount": 50,
    "maxComments": 20,
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["dataType"], item.get("title") or item["body"][:80])
```

#### JavaScript / Node.js

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('laptime/reddit-scraper').call({
    startUrls: [{ url: 'https://www.reddit.com/r/webscraping/new/' }],
    maxPostCount: 25,
    skipComments: true,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items.map((p) => `${p.upVotes} ${p.title}`));
```

#### One HTTP call (cURL)

```bash
curl -X POST "https://api.apify.com/v2/acts/laptime~reddit-scraper/run-sync-get-dataset-items?token=$APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"searches": ["web scraping"], "sort": "new", "maxPostCount": 10, "maxComments": 0}'
```

#### Claude, ChatGPT, Cursor and other MCP clients

Add `https://mcp.apify.com?tools=laptime/reddit-scraper` as a remote MCP server (sign in with Apify when asked). Then ask, for example: "What are people on Reddit saying about Notion this week? Top 15 posts with 5 comments each."

Notes for agents choosing inputs:

- Every limit is per source: `maxPostCount` applies to each Start URL and each search term. Use `maxItems` as the run-wide cap.
- `maxComments: 0` means no comments. An omitted `maxComments` means 10, not unlimited.
- Start URLs and search terms are both scraped when both are given. Nothing silently overrides anything.
- Cost ≈ posts × $0.00099 + comments × $0.00049. There is no start fee. AI enrichment is off unless you turn it on.
- For "the last N days", use `postDateLimit: "N days"` with `sort: "new"`. `time` is Reddit's coarse filter and is ignored by `hot` and `new`.
- To search comments instead of posts: `searchComments: true`, `searchPosts: false`.

### Input

Reddit Scraper accepts **Start URLs**, **Search terms**, **Usernames**, or any mix. These three sit at the top of the form; everything else is optional and grouped in sections below them.

- **Start URLs:** subreddits (`/r/name/`, `/r/name/new/`, `/r/name/top/?t=week`, `/r/a+b/` for several, `/r/popular/` for the Popular feed), posts (`/r/name/comments/abc123/...`, `redd.it/abc123`, `/gallery/` and `/s/` share links, comment links, `v.redd.it` and `i.redd.it` media links), search pages (`/search/?q=...`) and users (`/user/name/`). `old.`, `new.` and `m.reddit.com` links work too. Each item is a full link, `{"url": "https://..."}`. The same subreddit given twice is read once.
- **Search terms:** each term is a separate Reddit search, for posts, comments or both. **Search options** has **Search in subreddit** (a name, `r/name` or the subreddit's URL) to search inside one community.
- **Usernames:** `spez`, `u/spez` or a profile URL.
- **Max posts per URL or search / Max comments per post / Max reply depth / Max items in total:** the limits. **Skip comments** gives posts only, which is fastest and cheapest.
- **Sort and Time range:** relevance, hot, top, new or most comments, over any of Reddit's time ranges. For a newest-first keyword monitor, put phrases in quotes (`"web scraping"`). **Comment order:** best, top, new, controversial, old or Q\&A.
- **Date windows:** "Only posts newer than" / "older than", and the same for comments. Use a date (`2026-11-01`) or a relative time (`24 hours`, `7 days`, `3 months`), so a scheduled task never needs editing. With sort **new** the run stops at the first older posts.
- **Must contain / must not contain:** keep only posts that mention your keywords, and drop the ones about something else with the same name.
- **Strict search:** keep only search results (posts and comments) that contain every word of the search term, "quoted phrases" as written and none of its -words. Off by default here, on by default in Reddit Monitor and Reddit Search Scraper.
- **Min upvotes, Min comments, Post types, Flairs:** keep only active or popular posts, only text posts (or images, videos, links, galleries, polls), or only posts with a given flair (`"Bot detection"` matches `Bot detection 🤖`; `"*"` = any flair).
- **Only new posts (monitoring):** remembers what earlier runs delivered (per monitor name, in your own Apify storage) and skips it, comment-search hits and users' comments included. Skipped rows aren't charged.
- **Combine sorts:** reads a subreddit's lists side by side to get past Reddit's ~1,000-post limit.
- **Archive fallback:** if Reddit refuses a subreddit, a search limited to one subreddit, or the rest of a comment thread, the run fills up from the archive instead of failing, and marks those rows. **Fill comments from archive** adds comments Reddit no longer shows.
- **Subreddit details** (on) and **Author details** (off): community stats on every post, and karma and account age on every author. Neither is charged.
- **AI enrichment:** see [above](#ai-enrichment-optional).

Every field's allowed values, default and meaning of empty or 0 are written in the field's help text on the **Input** tab.

### Output

Each post and each comment is one row. Use the **Overview**, **Posts**, **Comments**, **Search results**, **Media**, **Engagement and community** and **AI labels** views on the Output tab, or filter on `dataType`. Rows from a search carry the term (`searchQuery`) and whether their text really contains it (`matchesQuery`).

#### Example post (a few of its 74 fields)

```json
{
  "dataType": "post",
  "id": "t3_1xxao66",
  "parsedId": "1xxao66",
  "url": "https://www.reddit.com/r/webscraping/comments/1xxao66/a_compileonce_zerotoken_runtime_approach_to_web/",
  "idempotencyKey": "reddit:t3_1xxao66",
  "username": "Pitiful_Direction231",
  "title": "A compile-once, zero-token runtime approach to web scraping with AI",
  "communityName": "r/webscraping",
  "communitySubscribers": 106035,
  "communityWeeklyVisitors": 19562,
  "body": "Hi all,\n\nOver the past few weeks, I've been working on a project testing a hybrid architecture for general-pur...",
  "numberOfComments": 13,
  "commentsScraped": 5,
  "commentsCompleteness": 0.385,
  "upVotes": 8,
  "upVoteRatio": 0.786,
  "upVotesPerHour": 0.17,
  "contentType": "multi_media",
  "mediaType": "text",
  "imageUrls": [],
  "rank": 7,
  "createdAt": "2026-11-15T23:57:31.126Z",
  "scrapedAt": "2026-11-17T23:20:24.393Z",
  "source": "https://www.reddit.com/r/webscraping/",
  "dataSource": "reddit"
}
```

#### Example comment (a few of its 46 fields)

```json
{
  "dataType": "comment",
  "id": "t1_19sqjtq7dg41s",
  "parsedId": "19sqjtq7dg41s",
  "url": "https://www.reddit.com/r/webscraping/comments/1xxao66/comment/19sqjtq7dg41s/",
  "postId": "t3_1xxao66",
  "parentId": "t1_19spx5sp59m6c",
  "rootCommentId": "t1_19spx5sp59m6c",
  "depth": 1,
  "path": "19spx5sp59m6c/19sqjtq7dg41s",
  "username": "catsRfriends",
  "isSubmitter": false,
  "authorIsBot": false,
  "body": "Right?? This isn't a \"hybrid\" approach. It's just regular vibe coding a scraper and pushing to prod.",
  "upVotes": 5,
  "numberOfReplies": 1,
  "removalStatus": null,
  "isPlaceholder": false,
  "createdAt": "2026-11-16T19:34:37.290Z",
  "source": "https://www.reddit.com/r/webscraping/",
  "dataSource": "reddit"
}
```

Every field, with its type and when it's empty, is listed in the dataset schema on the Output tab. Field names don't change without a changelog entry, and new fields are only ever added. Each run also writes `RUN_STATS` (counts, speed, per-post comment completeness, any errors) to its key-value store.

### Benchmarks

Measured on Apify on **17 Nov 2026**, release 0.3, with the default memory and the built-in residential proxies. The default memory adapts to the input: 1 GB for runs like the default input, up to 4 GB for big comment jobs (which makes them faster and no more expensive for you: compute is included in the price). "Time" is the run's total time as Apify reports it, start-up included.

| Run | Items | Time |
|---|---|---|
| r/webscraping, 10 posts × 5 comments (the default input) | 32 | 3.2 s |
| r/AskReddit top of the week, 10 posts × 20 comments | 210 | 3.9 s |
| r/technology/new, 100 posts, no comments | 100 | 3.4 s |
| One 1,729-comment r/AskReddit thread, 300 comments | 301 | 4.5 s |
| r/AskReddit top of the week, 20 posts × 100 comments | 2,020 | 17.4 s |
| Search "web scraping", 30 newest posts × 10 comments | 58 | 13.5 s |
| Comment search "apify", newest 40 comments | 40 | 7.1 s |
| r/lisp with Combine sorts, posts only | 1,792 | 62 s |
| A user's posts and comments (`/user/spez/`, from the archive), 10 + 100 | 110 | 12.8 s |
| Only-new monitor, second run with nothing new (free) | 0 | 3.1 s |

Every run succeeded, and the 10 × 20, 20 × 100 and 300-comment runs returned every comment asked for. Raise **Max concurrency** for big runs: each extra session reads Reddit on its own IP address.

### Switch from another Reddit scraper

**Change only the Actor ID.** Reddit Scraper reads the input of the most used Reddit scrapers as it is, with the meaning it had there, and the run log's first lines say how each field was read. Checked on Apify on 18 Nov 2026 with each scraper's own input names.

#### From trudax/reddit-scraper-lite

These are this Actor's own names: `startUrls`, `searches`, `searchCommunityName`, `searchPosts`, `searchComments`, `sort` (including `rising` and an empty sort), `time`, `maxItems`, `maxPostCount`, `maxComments`, `skipComments`, `postDateLimit`, `commentDateLimit`, `includeNSFW`, `searchCommunities` and `ignoreStartUrls`. Community rows keep trudax's `numberOfMembers` and `description`, and user rows its `userIcon`, `postKarma` and `commentKarma`. The output uses the same names for the common fields: `dataType`, `id`, `parsedId`, `url`, `username`, `title`, `communityName`, `body`, `upVotes`, `numberOfComments`, `createdAt` and so on.

No Reddit cookie or `sessionToken` is needed, and proxy, timeout, retry and debug settings are ignored (residential proxies are built in).

#### From harshmaur/reddit-scraper (and its Search, Subreddit and Comments scrapers)

Send the same input. `searchTerms`, `withinCommunity`, `searchSort`, `searchTime`, `subredditUrls`, `subreddits`, `postUrls`, `maxPostsCount`, `crawlCommentsPerPost`, `maxCommentsPerPost`, `postedAfter`, `postedBefore`, `commentedAfter`, `commentedBefore`, `includeNSFW`, `onlyWithFlair`, `customLabels` and the AI questions (`wantsHelp`, `isVendor`, `hasPain`, `mentionsPrice`, `featureRequest`, `willingToPay`, `painPoint`, `competitor`, `isOwner`) all work. As there, comments are off unless `crawlCommentsPerPost` is true, and `maxPostsCount` applies per keyword or URL with no cap on the whole run. Community search (`searchCommunities` with `maxCommunitiesCount`) works too.

Output names that differ:

| harshmaur output | Laptime output |
|---|---|
| `postUrl` | `url` |
| `authorName`, `authorId` | `username`, `userId` |
| `commentsCount` | `numberOfComments` |
| `upvoteRatio` | `upVoteRatio` |
| `bodyHtml` | `html` |
| `images` | `imageUrls` |
| `videoUrl` | `videoUrls` (a list) |
| `crawledAt` | `scrapedAt` |
| comment `commentUpVotes`, `commentCreatedAt` | `upVotes`, `createdAt` |
| `subredditName` | `parsedCommunityName` |
| `customLabels.<name>` | `aiLabels.<name>` |

#### From automation-lab, fatihtahta and clearpath

| Their input | Read here as |
|---|---|
| automation-lab `urls` (a list or one per line), `url`, `commentUrl`, `searchQuery`, `searchQueries`, `searchSubreddit`, `sort` (incl. `rising`), `timeFilter`, `maxPostsPerSource`, `includeComments` + `maxCommentsPerPost`, `filterKeywords` | Start URLs, Search terms, Search in subreddit, Sort, Time range, Max posts per URL or search, comments on with that limit, Must contain any of |
| fatihtahta `queries`, `subredditName` + `subredditKeywords`, `urls`, `sort`, `timeframe`, `scrapeComments` + `maxComments`, `maxPosts`, `dateFrom`, `dateTo`, `commentDateFrom`, `commentDateTo`, `includeNsfw`, `strictTokenFilter`, `maximize_coverage`, `sentiment_analysis` | Search terms (keywords inside one subreddit too), dates, NSFW, Strict search, Combine sorts, AI labels |
| clearpath `query`, `queries`, `subreddit`, `subreddits` (several subreddits to search, or to scrape), `postUrl`, `postUrls`, `maxResults`, `maxPostsPerSubreddit`, `maxPostsPerQuery`, `contentType`, `requireQueryTerms`, `timeFilter`, `postedAfter`, `postedBefore`, `maxAgeHours`, `maxPostAgeHours`, `minScore`, `combineSorts`, `includeComments`, `postsOnly`, `maxCommentsPerPost` | the same, with `requireQueryTerms` = Strict search and `minScore` = Min upvotes |

Comments are off unless that scraper's own switch turns them on (on for lists of post URLs), and its post limit applies per source with no cap on the whole run, as it did there. Set `maxItems` to cap a run.

Also read as they are: user lists (`usernames`, `users`, `username`, `profileUrls`), profile switches (`includeUserProfile`, `includeUsers`, `mode: "profile_only"`), `userContent` (posts, comments or both), community search modes (`searchType: "communities"`, `searchMode: "sr"`), pinned-post switches (`skipStickied`, `skipPinnedPosts`, `excludeStickied`), `excludeAuthors`, and automation-lab's `outputFormat` values `rag-markdown` and `jsonl-finetune`.

#### Try it in shadow mode first

Run both Actors on the same input for a week or two and compare the post IDs (`parsedId` here). Since runs that find nothing cost nothing and there's no start fee, a daily shadow run usually costs cents.

### Related Actors

The same engine, with a form made for one job:

- [Reddit Posts Scraper](https://apify.com/laptime/reddit-posts-scraper): posts only, the cheapest Reddit export, $0.99/1K.
- [Subreddit Scraper](https://apify.com/laptime/subreddit-scraper): whole subreddits, past Reddit's 1,000-post cap, $0.99/1K.
- [Reddit Comments Scraper](https://apify.com/laptime/reddit-comments-scraper): whole comment threads, or comments matching a keyword, $0.49/1K.
- [Reddit Search Scraper](https://apify.com/laptime/reddit-search-scraper): keyword search across Reddit or inside one subreddit, from $0.49/1K.
- [Reddit Monitor](https://apify.com/laptime/reddit-monitor): brand and keyword alerts: only posts you haven't received yet, from $0.49/1K.
- [Reddit User Scraper](https://apify.com/laptime/reddit-user-scraper): user profiles (karma, account age, trophies) with their posts and comments, $0.99/1K.

Other Laptime scrapers that pair well with this one, all with no start fee:

- [Threads Scraper](https://apify.com/laptime/threads-scraper): profiles, posts, threaded replies and keyword search, from $0.99/1K.
- [Bluesky Scraper](https://apify.com/laptime/bluesky-scraper): posts, replies, search, profiles, feeds and trends, from $0.79/1K.
- [Telegram Channel Scraper](https://apify.com/laptime/telegram-channel-scraper): public channel messages, comments and subscribers, $0.79/1K.

### FAQ

#### Do I need a Reddit account or API key?

No. Reddit Scraper reads the public pages a logged-out visitor sees. It needs no Reddit app, OAuth client, API approval or cookie, so nothing of yours can get banned.

#### Does it still work after Reddit's API and RSS shutdown?

Yes. It never depended on the API, `.json` pages, old.reddit or RSS, the routes Reddit closed in 2026. It's checked daily, and when Reddit changed how comment threads load on 17 Nov 2026, full threads were back the same night. A built-in archive fallback keeps runs returning data even if Reddit refuses a request.

#### How is it so fast?

It doesn't run a browser. It requests the same lightweight page fragments reddit.com's own scripts load and reads them with a parser. One solved browser check is shared by several residential IPs, each IP carries several requests at once, slow requests get a second copy on another IP, and feeds load several pages at once.

#### Why is the comment count different from what I got?

Reddit's counter includes deleted and removed comments that it no longer shows, and Reddit hides some comments from logged-out visitors. The scraper opens every "load more" button and every deep reply chain Reddit shows, and each post row tells you how many comments were scraped (`commentsScraped`) against Reddit's count (`commentsCompleteness`). Turn on **Fill comments from archive** to add removed and deleted comments the archive kept.

#### Can I scrape more than 1,000 posts from a subreddit?

Yes, with **Combine sorts** ([recipe](#scrape-more-than-1000-posts-from-a-subreddit)).

#### How do I get only new posts every day?

Turn on **Only new posts**, give the task a **Monitor name**, set **Sort** to new and **Only posts newer than** to `2 days`, and schedule it daily. Each run delivers only posts no earlier run with that monitor name delivered, and costs nothing when there's nothing new. New comments on posts you already received are not fetched again.

#### Is it reliable?

Yes. A daily automated check runs the default input and alerts us when it returns nothing or a key field goes empty. When Reddit refuses a listing, a user's history or "load more comments", the run carries on with the [Arctic Shift](https://arctic-shift.photon-reddit.com) archive (rows marked `dataSource: "archive"`) instead of failing; when community search's JSON is refused, it reads Reddit's search page. A run that returns nothing fails with the reason and costs nothing; it never reports an empty success.

#### Can I scrape a user's posts and comments?

Yes: put usernames in **Usernames** (or `/user/name/` URLs in Start URLs). Posts and comments come live from Reddit with current scores, newest first (or top or hot with **Sort**); past Reddit's ~1,000 per list, or if Reddit refuses, the Arctic Shift archive continues (rows marked `"dataSource": "archive"`). **Max posts per URL or search** caps the posts and, separately, the comments. **User profiles** adds a profile row with karma, account age and trophies.

#### What happens if a run returns nothing?

The run fails with the reason in its status message (for example "this subreddit does not exist", or which search Reddit found nothing for) instead of finishing as an empty "success", and you pay nothing. When only some inputs give nothing, the run succeeds and its status names them. A monitoring run with nothing new, or a keyword filter that matched nothing today, is the exception: it succeeds with a clear message, also free.

#### Is it legal to scrape Reddit?

Reddit Scraper only collects data that Reddit shows publicly to anyone, without logging in. Scraping public data is generally lawful, but posts and comments contain personal data (usernames and what people wrote). If you store or process it, GDPR and similar laws may apply, and you're responsible for your use case and for respecting Reddit's terms. If you're unsure, ask a lawyer. Apify's blog has an overview: [Is web scraping legal?](https://blog.apify.com/is-web-scraping-legal/)

*Unofficial. Not affiliated with, endorsed by or sponsored by Reddit, Inc. Reddit is a trademark of Reddit, Inc.*

### Changelog

- **0.5.x (21 Nov 2026):** flairs match as typed (emoji ignored), only-new monitoring remembers comment-search hits, comment search by top within a time range, webhook messages for comment-only runs.
- **0.5.x (20 Nov 2026):** clearer form (sources first, section help, examples), `r/all` and `r/popular`, `v.redd.it` and `i.redd.it` links, a subreddit URL in Search in subreddit, duplicate inputs read once, `searchQuery` and `matchesQuery` on search results with a **Search results** view, status messages that name inputs with no results.
- **0.5 (19 Nov 2026):** Slack, Discord or JSON webhook alerts; users read live (profiles with karma, account age and trophies; posts and comments with current scores; archive past 1,000); community search; skip pinned and moderator posts; skip posts by chosen users; RAG Markdown and fine-tune output formats; posts-only searches return faster; more competitors' input names.
- **0.4 (18 Nov 2026):** Strict search (only results that really contain your keyword); min upvotes, min comments, post type and flair filters; date windows narrow Reddit's time range; inputs written for harshmaur, automation-lab, fatihtahta and clearpath Reddit scrapers run unchanged.
- **0.3 (18 Nov 2026):** about 3× faster on small runs; complete comment threads at every depth; comment search; 74 fields per post and 46 per comment; subreddit and author details; free placeholder rows; per-post comment completeness; optional AI labels, lead scores and thread summaries; safe resume after migration.
- **0.2 (17 Nov 2026):** date windows with relative dates, only-new monitoring, combine sorts past 1,000 posts, user profiles and archive fallback, keyword include and exclude filters.
- **0.1 (17 Nov 2026):** first release: subreddits, posts and search terms, with nested comments.

The full history is on the **Changelog** tab. Breaking changes to field names will never ship silently.

### Feedback and support

Open an issue on the **Issues** tab. Issues get an answer within a day, and useful requests get built into the Actor. If Reddit Scraper saved you time, a short review on the **Reviews** tab helps other people find it. We read every one, thank you!

***

Built by **Laptime**: every Actor timed, with dated benchmarks in its README.

# Changelog

This Actor's version history is a separate document: https://apify.com/laptime/reddit-scraper/changelog.md

# Actor input Schema

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

Full Reddit links (starting with https://), one per row. Subreddits: https://www.reddit.com/r/webscraping/, /new/ or /top/?t=week, /r/a+b/ for several (each gets its own Max posts), /r/popular/ for the Popular feed. Posts: /comments/abc123/..., https://redd.it/abc123, /s/ share links, galleries, comment links, v.redd.it and i.redd.it media links. Searches: /search/?q=apify. Users: /user/spez/. old., new. and m.reddit.com links work too. A sort or ?t= in the URL wins over Sort and Time range.

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

Optional. Keywords to search all of Reddit for, one per row: web scraping, "exact phrase", title:apify, author:spez, nike OR adidas, -word to exclude. Each term is its own search; Max posts per URL or search applies per term. Returns posts (turn on Search for comments for comments). Each result says in matchesQuery whether its text really contains the term. For monitoring use Sort = new with Only posts newer than, and put phrases in quotes: newest-first search is looser.

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

Optional. Reddit users: spez, u/spez or https://www.reddit.com/user/spez/. Each gets their posts and, with comments on, their comments, read live from Reddit (newest first; past Reddit's ~1,000 the archive continues). Max posts per URL or search applies per user. Turn on User profiles (Extra data) for a profile row with karma, account age and trophies.

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

Optional. Run every Search term inside one subreddit only: webscraping, r/webscraping or the subreddit's URL. Empty = search all of Reddit. Has no effect on Start URLs.

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

true (default) = Search terms return matching posts, with their comments per Max comments per post. false = posts are skipped; use with Search for comments to get only comments.

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

Search terms also return matching comments (dataType "comment", with postId and postTitle; depth and rootCommentId are null because the thread isn't loaded). Up to "Max posts per URL or search" comments per term. Sort: relevance, top or new (with a Time range, top becomes relevance: Reddit only ranks top comments of all time). Reddit ignores the time range for comment search, so it is applied by date here. Also inside one subreddit with "Search in subreddit".

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

true = Search terms also find subreddits (dataType "community": name, title, description, members, NSFW, type, language, created date, icon), best match first, up to Max communities per term. Each community row is charged as one post. Turn off Search for posts to get communities only.

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

How many communities each Search term returns when Search for communities is on. Empty = Max posts per URL or search.

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

Maximum posts from each Start URL and each Search term, not per run: 3 sources × 100 = up to 300 posts. A post URL always returns its one post. For a user URL it caps the user's posts and, separately, their comments. Reddit lists about 1,000 posts per sort; turn on Combine sorts to go further.

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

Maximum comments per post, in Comment order, counting nested replies (each reply is one comment). 0 = no comments. Leaving it empty uses the default of 10, not unlimited. There is no upper limit: use e.g. 5000 for a whole thread. Comments cost $0.49 per 1,000.

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

true = posts only, no comments, whatever Max comments per post says. The fastest and cheapest mode ($0.99 per 1,000 posts).

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

Hard cap on posts + comments for the whole run (default 1,000). The run stops as soon as it is reached, so it doubles as a budget cap: 1,000 items cost at most $0.99.

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

One of: relevance, hot, top, new, comments (= most comments), rising, controversial. Applies to Search terms. User pages use new, top or hot (else new). Subreddit URLs without a sort in the URL use hot, new, top, rising or controversial from here; with relevance or comments they use hot. Search has no rising or controversial (hot / top are used). Use new for monitoring: with Only posts newer than, the run stops at the first older post.

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

One of: all, hour, day, week, month, year. Reddit's own time filter, used by Sort = top or controversial and by searches; hot, new and rising ignore it. With All time and Only posts newer than set, the narrowest range that covers your window is used (e.g. 7 days = past week), so you get more posts inside it.

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

Skip posts created before this. A date (2026-11-01), a full ISO timestamp, or a relative time: 24 hours, 7 days, 2 weeks, 3 months, 1 year (short forms 24h, 7d; m = months). Relative times are counted from each run's start, so a schedule never needs editing. Skipped posts are not charged, and with Sort = new the run stops at the first older posts. Empty = no limit.

## `postDateTo` (type: `string`):

Skip posts created after this (same formats as Only posts newer than). Set both for a date window, e.g. 2026-10-01 to 2026-10-31. Empty = no limit.

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

Skip comments created before this (same formats as Only posts newer than). Skipped comments are not charged. Empty = no limit.

## `commentDateTo` (type: `string`):

Skip comments created after this (same formats as Only posts newer than). Empty = no limit.

## `includeKeywords` (type: `array`):

Keep only posts whose title or text contains at least one of these words or phrases (case-insensitive substring match, so "app" also matches "apple"). Applies to posts; the comments of a kept post are not filtered. Dropped posts are not charged. Empty = keep all.

## `excludeKeywords` (type: `array`):

Drop posts whose title or text contains any of these words or phrases (case-insensitive substring match), e.g. to filter out other meanings of your brand name. Dropped posts are not charged. Empty = drop nothing.

## `strictSearch` (type: `boolean`):

true = keep only search results whose title or text really contains your Search terms: every word (plurals and any case are fine), "quoted phrases" as written, -word absent, OR for alternatives. Reddit's own search also returns loosely related posts and comments; those are dropped and not charged. false (default) = keep what Reddit returns; the matchesQuery field still tells you which results match.

## `minUpVotes` (type: `integer`):

Keep only posts with at least this score (upvotes minus downvotes, the upVotes field). Lower-scored posts are skipped and not charged; their comments are not loaded. Empty or 0 = no minimum.

## `minComments` (type: `integer`):

Keep only posts that have at least this many comments on Reddit (the numberOfComments field), e.g. to find active discussions. Others are skipped and not charged. Empty or 0 = no minimum.

## `postTypes` (type: `array`):

Keep only these kinds of post (the mediaType field): text, image, gallery, video, link, poll. E.g. \["text"] for discussions only. Other posts are skipped and not charged. Empty = all kinds.

## `flairs` (type: `array`):

Keep only posts whose flair (the flair field) is one of these, ignoring case, emoji and punctuation: "Bot detection" matches "Bot detection 🤖". "\*" = any flair at all (drops posts without a flair). Others are skipped and not charged. Empty = all posts.

## `excludeModPosts` (type: `boolean`):

true = leave out pinned (stickied) posts, posts a moderator or admin marked as official, and AutoModerator's posts (rules, daily threads, announcements). They are skipped and not charged. false (default) = keep them.

## `excludeAuthors` (type: `array`):

Leave out posts by these accounts (ignoring case, "u/" optional), e.g. bots or your own brand account. Skipped and not charged; their comments under other posts are kept. Empty = keep all authors.

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

true (default) = keep posts marked NSFW (18+). false = skip them; skipped posts are not charged.

## `commentSort` (type: `string`):

One of: confidence (= Reddit's "Best"), top, new, controversial, old, qa. Decides which comments come first, and so which ones you get when Max comments per post cuts a thread short. Always sent to Reddit, so it wins over a subreddit's suggested order. Complete threads contain the same comments in any order.

## `maxCommentDepth` (type: `integer`):

Leave out replies nested deeper than this: 0 = top-level comments only, 1 = plus direct replies, and so on. Empty (default) = every depth, down to the deepest reply chain. A limit makes very big threads much faster. Not charged: left-out replies are never loaded.

## `onlyNew` (type: `boolean`):

true = skip posts that earlier runs with the same Monitor name already delivered, so scheduled runs return only new posts (comment-search hits and users' comments are remembered too). Skipped posts are not charged; a run with nothing new ends as Succeeded and costs nothing. The memory (the last 50,000 post IDs) is a key-value store named laptime-reddit-monitor-\<this Actor's ID> in your own Apify account. New comments on already-delivered posts are not fetched again.

## `monitorName` (type: `string`):

Name of the memory used by Only new posts. Use one name per monitoring task (e.g. my-brand, competitor-x); runs with the same name share one memory. Empty = one memory per saved task (or per set of inputs).

## `webhookUrl` (type: `string`):

Optional. When the run delivers rows, it POSTs a summary here: a Slack incoming-webhook or Discord webhook URL gets a message with the first 15 posts (title, link, subreddit, score; comments when the run has no posts) and a link to all rows; any other URL gets JSON (counts, dataset ID, first 50 posts or comments). Nothing is sent when nothing is new. Free.

## `combineSorts` (type: `boolean`):

Subreddit URLs only. true = read up to 13 lists (new, hot, rising, top and controversial over several time ranges) side by side and merge them without duplicates, to get past Reddit's ~1,000-post limit per list. You pay only for unique posts. Measured: 1,792 posts from r/lisp. It is not a full history: old low-score posts stay out of reach.

## `archiveFallback` (type: `boolean`):

true (default) = if Reddit refuses a subreddit, a search limited with Search in subreddit, a user's posts or comments, or the rest of a comment thread, fill up from the Arctic Shift archive instead of failing. Archive rows have dataSource "archive", and their scores are from when they were archived. Searches across all of Reddit have no archive fallback.

## `fillCommentsFromArchive` (type: `boolean`):

true = after loading a thread from Reddit, also add the comments the Arctic Shift archive has that Reddit no longer shows logged out (mostly removed or deleted since; about 1-5% of big threads). They keep their place in the tree and have dataSource "archive". Default false. (When Reddit refuses to load a thread's remaining comments, the archive fills in automatically while Archive fallback is on.)

## `includeSubredditDetails` (type: `boolean`):

true (default) = add the subreddit's members, weekly visitors and contributions, description, icon, banner and type to every post (the community\* fields). Not charged: one small request per distinct subreddit per run.

## `includeAuthorDetails` (type: `boolean`):

true = add each author's post karma, comment karma, account creation date and full-size avatar to posts and comments (authorPostKarma, authorCommentKarma, authorCreatedAt). One small request per distinct author, so runs with many authors take longer. Not charged. Default false.

## `includeUserProfiles` (type: `boolean`):

true = for each user in Usernames or a user URL, add one profile row first (dataType "user": post, comment and total karma, account age, verified, premium, moderator and employee flags, avatar, bio, trophies). Charged as one post. false (default) = only their posts and comments.

## `userProfilesOnly` (type: `boolean`):

true = only the profile row for each user, no posts or comments: a fast bulk lookup of karma and account age for a list of usernames. Charged as one post per profile.

## `userSection` (type: `string`):

What to read for each user: "overview" = their posts, and their comments too when Max comments per post is above 0; "submitted" = posts only; "comments" = comments only (up to Max posts per URL or search). A user URL ending in /submitted/ or /comments/ wins.

## `userComments` (type: `boolean`):

Hidden in the form (User content covers it); API only. For User content "overview": true = also return each user's own comments (up to Max posts per URL or search); false = posts only. Empty = only when Max comments per post is above 0 (the earlier behaviour). Comments under the user's posts still follow Max comments per post.

## `outputFormat` (type: `string`):

"standard" = one row per post and per comment. "rag-markdown" = one document per post (dataType "rag": markdown/pageContent with the post and its comments, chunkId, flat metadata). "jsonl-finetune" = one OpenAI chat example per post (messages: system, user = post, assistant = comments). Documents: the post price includes 10 comments; more are charged as comments. Export as JSONL.

## `aiAnalysis` (type: `boolean`):

true = every post and comment gets aiSentiment (positive, negative, neutral, mixed) with aiSentimentScore (-1 to 1), aiIntent (buying_intent, recommendation_request, question, complaint, praise, self_promotion, job_post, news, discussion), aiEmotion, aiLeadScore (0-100) with aiLeadReason, aiTopic, aiEntities, aiLanguage and aiSummary. One "ai-label" event per labelled row ($0.30 per 1,000).

## `aiScope` (type: `string`):

One of: all, posts, comments. "posts" labels only posts, the cheapest way to find leads; comments are still scraped.

## `aiContext` (type: `string`):

One or two sentences about your product, brand or competitors. The lead score and its reason are judged against this. Empty = general buying intent.

## `aiFlags` (type: `array`):

Ready-made questions answered for every labelled row, returned in aiLabels (e.g. aiLabels.wantsHelp = true). Each flag is one "ai-custom-label" event per row ($0.05 per 1,000). Turns on AI labels.

## `aiCustomLabels` (type: `object`):

Your own questions as {"name": "instruction"}, up to 10, returned in aiLabels.name. Start an instruction with "yes/no:" for a true/false answer; otherwise you get a short text answer (null for none). Same format as harshmaur's customLabels. Each label is one "ai-custom-label" event per row ($0.05 per 1,000). Turns on AI labels.

## `aiThreadSummary` (type: `boolean`):

For each post with at least 2 comments, reads the post and its top comments (up to 40) and adds aiThreadSummary (what people are saying), aiThreadSentiment, aiThreadTopMentions (products recommended or discussed most) and aiThreadAnswered (did the author get a useful answer) to the post row. Uses the comments you scrape (Max comments per post). One "ai-thread-summary" event per summarised thread ($3 per 1,000).

## `aiApiKey` (type: `string`):

Bring your own key and pay no AI fees: the AI events above are not charged and your provider bills you for tokens (about $0.05-0.10 per 1,000 rows). Detected by prefix: OpenRouter (sk-or-...), Anthropic (sk-ant-...), Google Gemini (AIza...), anything else is treated as OpenAI. Stored encrypted.

## `aiModel` (type: `string`):

Only with your own key: the model name at your provider. Defaults: meta/muse-ember (OpenRouter), gpt-4.1-nano (OpenAI), claude-haiku-5-5 (Anthropic), gemini-2.5-flash-lite (Gemini). Without your own key our tuned models are always used and this field is ignored.

## `aiBaseUrl` (type: `string`):

Optional base URL of any OpenAI-compatible chat completions API (Groq, Together, Azure, a self-hosted model). Use with your API key and Model. No AI fees are charged.

## `maxConcurrency` (type: `integer`):

Parallel sessions (1-50, default 10), each on its own residential IP. Higher is faster for big runs. It does not change the price.

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

Compatibility switch for integrations built for trudax/reddit-scraper-lite that always send Start URLs. true = skip Start URLs and run only the Search terms.

## `monitorStore` (type: `string`):

Internal: which Actor's only-new memory to use. Set by the Laptime Reddit family Actors; leave empty.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.reddit.com/r/webscraping/"
    }
  ],
  "searches": [
    "web scraping",
    "apify"
  ],
  "usernames": [
    "spez",
    "u/GallowBoob"
  ],
  "searchPosts": true,
  "searchComments": false,
  "searchCommunities": false,
  "maxPostCount": 10,
  "maxComments": 5,
  "skipComments": false,
  "maxItems": 1000,
  "sort": "relevance",
  "time": "all",
  "postDateLimit": "7 days",
  "strictSearch": false,
  "minUpVotes": 10,
  "minComments": 5,
  "flairs": [
    "Question",
    "Help"
  ],
  "excludeModPosts": false,
  "excludeAuthors": [
    "AutoModerator",
    "u/some_bot"
  ],
  "includeNSFW": true,
  "commentSort": "confidence",
  "onlyNew": false,
  "monitorName": "my-brand",
  "webhookUrl": "https://hooks.slack.com/services/T000/B000/XXXX",
  "combineSorts": false,
  "archiveFallback": true,
  "fillCommentsFromArchive": false,
  "includeSubredditDetails": true,
  "includeAuthorDetails": false,
  "includeUserProfiles": false,
  "userProfilesOnly": false,
  "userSection": "overview",
  "outputFormat": "standard",
  "aiAnalysis": false,
  "aiScope": "all",
  "aiContext": "We sell an affordable CRM with email marketing for small businesses. Competitors: HubSpot, Pipedrive, Zoho.",
  "aiCustomLabels": {
    "wants_software": "yes/no: the author is looking for a software product or an alternative to one; no for job ads, news and self-promotion",
    "service_wanted": "the service the author wants, in three words or fewer, or none"
  },
  "aiThreadSummary": false,
  "aiModel": "meta/muse-ember",
  "aiBaseUrl": "https://api.groq.com/openai/v1",
  "maxConcurrency": 10,
  "ignoreStartUrls": false
}
```

# Actor output Schema

## `results` (type: `string`):

Every post and comment row, in the order scraped.

## `posts` (type: `string`):

The Posts view: post columns (comment rows are in the same dataset; filter on dataType = "post").

## `comments` (type: `string`):

The Comments view: comment columns (filter on dataType = "comment").

## `searchResults` (type: `string`):

The Search results view: what your Search terms found, with searchQuery and matchesQuery (does the text really contain the term).

## `runStats` (type: `string`):

RUN_STATS: posts, comments, seconds, requests, errors and why the run stopped.

# 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/webscraping/"
        }
    ],
    "maxPostCount": 10,
    "maxComments": 5
};

// Run the Actor and wait for it to finish
const run = await client.actor("laptime/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 = {
    "startUrls": [{ "url": "https://www.reddit.com/r/webscraping/" }],
    "maxPostCount": 10,
    "maxComments": 5,
}

# Run the Actor and wait for it to finish
run = client.actor("laptime/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 '{
  "startUrls": [
    {
      "url": "https://www.reddit.com/r/webscraping/"
    }
  ],
  "maxPostCount": 10,
  "maxComments": 5
}' |
apify call laptime/reddit-scraper --silent --output-dataset

```

## MCP server setup

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