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

From $0.49/1K comments, $0.99/1K posts, no start fee. Strict match drops off-topic results, free. No login or API key. Inputs: search terms, a subreddit, sort, time range, date windows, min upvotes, must/must-not words, only-new, AI labels. Posts, comments and communities.

- **URL**: https://apify.com/laptime/reddit-search-scraper.md
- **Developed by:** [Laptime](https://apify.com/laptime) (community)
- **Categories:** Social media, Lead generation, Agents
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

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

### What is Reddit Search Scraper?

**Reddit Search Scraper** searches Reddit by keyword and exports the matching posts, their comments, or matching comments on their own: title, text, score, subreddit, author, date, link and 70+ more fields. Search all of Reddit or inside one subreddit, sort by relevance, new, top or most comments, and narrow by date. No Reddit API key, login or cookies.

[![How to use Reddit Search Scraper without coding: 1. Try for free 2. Type a search term + Start 3. Matching posts with their comments 4. Export to Excel](https://raw.githubusercontent.com/laptimehq/laptime-assets/main/howto/reddit-search-scraper-steps.jpg?v=20261122)](https://raw.githubusercontent.com/laptimehq/laptime-assets/main/howto/reddit-search-scraper-steps.jpg?v=20261122)

- 🔍 **Market and product research:** every discussion of a product, a competitor or a problem, with the comments where the real opinions are.
- 🎯 **Lead generation:** "looking for", "recommend" and "alternative to" posts from the last few days, optionally scored by AI.
- 📅 **Exact date windows:** "newer than 7 days" or "2026-10-01 to 2026-10-31", counted from each run, so a saved search never needs editing.
- 🔔 **Saved searches that only return what's new:** turn on **Only new posts** and a scheduled search skips what it already delivered.

> ✅ **Verified working on 22 Nov 2026:** the prefilled search (`"web scraping"`, Strict search on, 10 posts with up to 5 comments each) ran on Apify three times in a row and returned 10 matching posts and 45 to 50 comments every time, in 7 to 15 s.
>
> 💰 **$0.99 per 1,000 posts and $0.49 per 1,000 comments**, no start fee. 1,000 posts cost $0.99, less than automation-lab ($1.15), fatihtahta ($1.49), harshmaur ($2.02), apify ($4.00) or trudax ($4.04) at Free-plan list prices on 17 Nov 2026.
>
> ⚡ **Same engine as [Reddit Scraper](https://apify.com/laptime/reddit-scraper)**, the fastest Reddit scraper in our head-to-head tests (17 Nov 2026).
>
> 🎯 **Only results that really mention your keyword:** Strict search is on by default here. Reddit's own search, sorted by newest, often returns posts that don't: in our test on 18 Nov 2026, 8 to 9 of 20 results for "HubSpot alternative" mentioned HubSpot in Reddit's results and in two other scrapers'. With Strict search, 20 of 20 did. Dropped results are never charged.
>
> 🎯 **Only the posts you want:** min upvotes, min comments, post type (text, image, gallery, video, link, poll) and flair filters. Filtered posts are never charged, and the feed is read further so you still get your Max posts.
>
> 🏘️ **Find communities too:** **Search for communities** returns the subreddits that match your keyword, with members, weekly visitors, description and created date. **Skip pinned and moderator posts** keeps AutoModerator threads out of your results.
>
> 🔁 **Paste your old input as it is:** inputs written for trudax, harshmaur, automation-lab, fatihtahta or clearpath Reddit scrapers run unchanged, with the meaning they had there. Change only the Actor ID.

### How to use Reddit Search Scraper

1. [Create a free Apify account](https://console.apify.com/sign-up). No credit card needed.
2. Open Reddit Search Scraper and type your keywords into **Search terms** (one is prefilled). Each term is a separate search; tick **Search for comments** to get matching comments too.
3. Optional: a subreddit in **Search in subreddit**, a **Sort**, and a date window.
4. Click **Start**. Most runs finish in seconds.
5. Download the results as JSON, CSV, Excel or HTML, or fetch them with the API.

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

```json
{
  "searches": ["\"web scraping\""],
  "maxPostCount": 10,
  "maxComments": 5
}
```

Reddit's search operators work: `"exact phrase"` (quotes keep the words together, as in the prefill), `title:apify`, `author:spez`, `nike OR adidas`, `-word`. Without a Max comments per post (API default 0), a search returns posts only, the cheapest search; set a number to get the top of each discussion.

### Copy-paste inputs

#### New posts about a topic, last 7 days

```json
{
  "searches": ["\"best CRM\"", "CRM recommendation"],
  "sort": "new",
  "postDateLimit": "7 days",
  "excludeKeywords": ["[hiring]"],
  "maxPostCount": 100,
  "maxComments": 10
}
```

With sort **new** and a date window, the run stops at the first older posts, so it stays fast and cheap.

#### Search inside one subreddit, posts and comments

```json
{
  "searches": ["proxy", "captcha"],
  "searchCommunityName": "webscraping",
  "searchComments": true,
  "sort": "top",
  "time": "year",
  "maxPostCount": 50
}
```

Returns the top matching posts of the year and, separately, the matching comments (with `postId` and `postTitle`).

#### Search with AI lead scores

```json
{
  "searches": ["alternative to Mailchimp", "Mailchimp alternative"],
  "sort": "new",
  "postDateLimit": "14 days",
  "maxPostCount": 50,
  "aiAnalysis": true,
  "aiScope": "posts",
  "aiContext": "We sell an email marketing tool for small online shops. Competitors: Mailchimp, Klaviyo."
}
```

Every post gets `aiLeadScore` (0-100) with a one-line reason, `aiIntent` and `aiSentiment`. Open the **AI labels** view and sort by score.

#### 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. 50 communities cost about $0.05.

### How much does Reddit Search Scraper cost?

Pay per event. Proxies and Apify platform usage are included.

| Event | Price on the Free plan |
|---|---|
| Post delivered (`post`) | **$0.99 per 1,000** |
| Comment delivered (`comment`) | **$0.49 per 1,000** |
| AI labels per row, optional (`ai-label`) | $0.30 per 1,000 |
| AI flag or custom question per row, optional (`ai-custom-label`) | $0.05 per 1,000 per question |
| AI thread summary, optional (`ai-thread-summary`) | $3 per 1,000 |
| Run start | **free** |

| You want | Cost |
|---|---|
| 1,000 posts, no comments | $0.99 |
| 100 posts with 20 comments each | $1.08 |
| 100 posts with AI lead scores | $0.13 |

Never charged: run starts, posts outside your date window or dropped by your keyword or NSFW filters, posts an earlier monitoring run already delivered, placeholder rows, and runs that return nothing. **Max items in total** and Apify's **Maximum cost per run** cap every run's bill.

**Works on the Apify free plan:** the $5 of monthly platform credit covers about 5,100 posts with this Actor, no card needed.

### AI enrichment (optional, off by default)

Turn on **AI labels** and every result gets sentiment, intent (buying intent, recommendation request, question, complaint, praise and more), a 0-100 lead score judged against **What you sell or track**, topic, brands named and language. Add ready-made yes/no flags (wantsHelp, willingToPay, isSwitching…) or up to 10 questions of your own, and **Thread summaries** for "what are people saying" per post. Bot, moderator and deleted rows are skipped and never charged. With your own OpenRouter, OpenAI, Anthropic or Gemini key, no AI events are charged at all.

### Output

![Reddit Search Scraper output: table of Reddit search results with post title, subreddit, upvotes, comment count and date](https://raw.githubusercontent.com/laptimehq/laptime-assets/main/howto/reddit-search-scraper-output.jpg?v=20261122)

A post row from a "web scraping" search on 19 Nov 2026 (a few of its fields):

```json
{
  "dataType": "post",
  "id": "t3_1xooynr",
  "title": "Data Extraction/Web Scraping",
  "parsedCommunityName": "webdesign",
  "username": "andreas8455",
  "upVotes": 1,
  "numberOfComments": 14,
  "flair": null,
  "mediaType": "text",
  "createdAt": "2026-11-05T17:39:31.170Z",
  "url": "https://www.reddit.com/r/webdesign/comments/1xooynr/data_extractionweb_scraping/",
  "communitySubscribers": 91941,
  "commentsScraped": 5,
  "dataSource": "reddit"
}
```

Each post and each comment is one row (`dataType` is `post` or `comment`), with the same **74 post fields and 46 comment fields** as Reddit Scraper: `title`, `body`, `upVotes`, `upVoteRatio`, `numberOfComments`, `communityName`, `username`, `flair`, `createdAt`, `url`, images, videos, polls, community stats, and the comment tree fields. The Output tab opens on the **Search results** view (which term found each row, `searchQuery`, and whether its text really contains it, `matchesQuery`, next to title, text, subreddit, score and date), with **Posts**, **Overview**, **Comments**, **AI labels**, **Engagement and community** and **Media** next to it. Every field is documented in the [Reddit Scraper output section](https://apify.com/laptime/reddit-scraper#output).

### Integrations and API

Save a search as a task, schedule it, and send the results to Google Sheets, Slack, n8n, Make, Zapier or a webhook ([recipes](https://apify.com/laptime/reddit-scraper#send-reddit-data-to-slack-google-sheets-n8n-make-or-zapier)).

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_API_TOKEN>")
run = client.actor("laptime/reddit-search-scraper").call(run_input={
    "searches": ["web scraping"],
    "sort": "new",
    "postDateLimit": "7 days",
    "maxPostCount": 50,
})
for post in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(post["upVotes"], post["communityName"], post["title"])
```

AI agents: add `https://mcp.apify.com?tools=laptime/reddit-search-scraper` as a remote MCP server in Claude, ChatGPT, Cursor or any MCP client.

### Related Actors

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

- [Reddit Scraper](https://apify.com/laptime/reddit-scraper): posts and full comment threads from subreddits, URLs, search and users, from $0.49/1K.
- [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 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 Search Scraper reads the public search pages a logged-out visitor sees, so it keeps working after Reddit closed anonymous `.json` pages and stopped giving out new API access in 2026.

#### How many results can one search return?

Up to **Max results per search term** for each term (100 by default). Reddit lists about 1,000 results per search and sort; for more, split a broad term into narrower ones or add date windows.

#### How is Reddit Search Scraper different from Reddit Scraper?

It's the same engine with a form set up for one job: search comes first and comments are off by default. Every Reddit Scraper input field is also accepted here through the API or the JSON tab, with the same output and the same prices.

#### Is it reliable?

Yes. Reddit Search Scraper runs the same engine as [Reddit Scraper](https://apify.com/laptime/reddit-scraper). 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 or "load more comments", the run carries on with the Arctic Shift archive (rows marked `dataSource: "archive"`) instead of failing. A run that returns nothing fails with the reason and costs nothing; it never reports an empty success.

#### Is it legal to scrape Reddit?

Reddit Search Scraper only collects data Reddit shows publicly without logging in. Posts and comments contain personal data (usernames and what people wrote), so GDPR and similar laws may apply to how you store and use it. You're responsible for your use case; ask a lawyer if you're unsure.

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

### Feedback and support

Open an issue on the **Issues** tab: issues are answered within a day.

If Reddit Search 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-search-scraper/changelog.md

# Actor input Schema

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

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, up to Max results per search term. Returns posts; tick Search for comments for matching comments too. Every row says which term found it (searchQuery) and whether it really contains it (matchesQuery).

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

Optional. Search inside one subreddit only: webscraping, r/webscraping or the subreddit's link. Empty = all of Reddit.

## `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`):

true = Search terms also return matching comments (dataType "comment", with postId and postTitle of their thread), up to Max results per search term. Sort: relevance, top or new. Reddit ignores the time range for comment search, so it is applied by date here. Works inside one subreddit too.

## `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.

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

Maximum results for each Search term, not per run: posts, and separately comments when Search for comments is on. 3 terms × 100 = up to 300 posts. Default 100.

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

Comments to add under each post found, counting nested replies. Default 0 = posts only (the cheapest search). Try 20 for the top of each discussion, or 5000 for whole threads. $0.49 per 1,000 comments.

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

How many subreddits each Search term returns when Search for communities is on. Empty = Max results per search term.

## `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 (default), hot, top, new, comments (= most comments). Time range sets how far back Reddit searches. For monitoring use new with Only posts newer than: the run stops at the first older post. For a date window in the past, use relevance or top: newest-first search only reaches the latest few hundred posts.

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

Reddit's time filter for searches: all (default), hour, day, week, month or year. 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.

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

true (default here) = keep only 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 = keep everything Reddit returns.

## `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.

## `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.

## `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.

## `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.

## `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.

## `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.

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

Optional: Reddit search links, one per row (https://www.reddit.com/search/?q=apify\&sort=new, or https://www.reddit.com/r/name/search/?q=...\&restrict_sr=1). Subreddit, post and user links work too. They run alongside Search terms; the sort and time in a link win.

## `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.

## Actor input object example

```json
{
  "searches": [
    "web scraping",
    "apify"
  ],
  "searchPosts": true,
  "searchComments": false,
  "searchCommunities": false,
  "maxPostCount": 10,
  "maxComments": 5,
  "maxItems": 1000,
  "sort": "relevance",
  "time": "all",
  "postDateLimit": "7 days",
  "strictSearch": true,
  "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",
  "includeSubredditDetails": true,
  "includeAuthorDetails": false,
  "archiveFallback": true,
  "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 = {
    "searches": [
        "\"web scraping\""
    ],
    "maxPostCount": 10,
    "maxComments": 5
};

// Run the Actor and wait for it to finish
const run = await client.actor("laptime/reddit-search-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 = {
    "searches": ["\"web scraping\""],
    "maxPostCount": 10,
    "maxComments": 5,
}

# Run the Actor and wait for it to finish
run = client.actor("laptime/reddit-search-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 '{
  "searches": [
    "\\"web scraping\\""
  ],
  "maxPostCount": 10,
  "maxComments": 5
}' |
apify call laptime/reddit-search-scraper --silent --output-dataset

```

## MCP server setup

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