# Reddit Search Scraper (`automly/reddit-search-scraper`) Actor

Search Reddit by keyword and export matching posts and comments with scores, authors, dates and subreddits. Filter by subreddit, sort, time range and date.

- **URL**: https://apify.com/automly/reddit-search-scraper.md
- **Developed by:** [Automly](https://apify.com/automly) (community)
- **Categories:** Social media, Lead generation
- **Features:** Limited permissions
- **Stats:** 13 total users, 10 monthly users, 94.5% 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

## Reddit Search Scraper

### What is Reddit Search Scraper?

**Reddit Search Scraper** searches Reddit by keyword and exports the **matching posts and comments** with title, text, author, score, comment count, date, subreddit and links. Enter a keyword, click **Start**, and download the results as Excel, CSV or JSON.

- 🔎 **Posts and comments:** search posts, comments, or both in one run
- 🎯 **Precise:** sort, time filter, date range, one or many subreddits, Reddit's own search syntax
- 📈 **Built for monitoring:** schedule it with "newest first" and a date to catch new mentions
- 🔓 **No login:** no Reddit account, cookies or API key needed

### What can Reddit Search Scraper do?

- Search all of Reddit, or inside one or many subreddits
- Sort by **most relevant, newest, top, hot or most comments**
- Keep only results from the past hour, day, week, month or year, or between two dates
- Run many queries in one run; a result two queries find is returned once
- Use Reddit's search syntax: `"exact phrase"`, `OR`, `-exclude`, `title:`, `author:`, `subreddit:`, `self:yes`
- Download to Excel, CSV, JSON, HTML or XML, or send the data to Google Sheets, Make, Zapier and more

### What data can you extract from Reddit search?

| | | |
|---|---|---|
| 📰 Post title and text | 💬 Comment text | 👤 Author and author ID |
| ⬆️ Score and upvote ratio | 💭 Comment count | 📅 Created and edited dates |
| 🏠 Subreddit and its subscribers | 🏷️ Flair | 🔗 Post and comment links |
| 🖼️ Image, video and gallery links | 🔞 NSFW and spoiler flags | 🧾 For comments: post title, score, author, link |

### How to search Reddit

1. Click **Try for free**.
2. Type a keyword into **Search query**.
3. Choose **Content type** (posts, comments or both), the **Sort order** and **Max results**.
4. Click **Start** and download your data from the **Output** tab.

### ⬇️ Input

| Setting | What it does |
|---|---|
| Search query | The keywords, with Reddit's search syntax |
| More search queries | More searches in the same run, one per line |
| Max results | The most results per query (default 100; 0 = all Reddit returns, about 300 per search) |
| Content type | Posts (default), comments, or both |
| Sort order | Most relevant (default), newest, top, hot or most comments |
| Time filter | Past hour, day, week, month or year |
| Posted after / Posted before | Keep only results between these dates (UTC) |
| Subreddit / More subreddits | Search inside these subreddits instead of all of Reddit |
| Include NSFW results | Keep results marked 18+ (on by default) |

```json
{
    "query": "best CRM for startups",
    "contentType": "both",
    "sort": "new",
    "maxResults": 200,
    "subreddits": ["startups", "SaaS"],
    "postedAfter": "2026-10-01"
}
```

### ⬆️ Output

Each row has `_type` (`post` or `comment`) and `searchQuery`, the query that found it.

```json
{
    "_type": "post",
    "id": "t3_1ujti48",
    "title": "What's a good CRM tool for a bootstrapped startup",
    "author": "fahimmd",
    "subreddit": "CRM",
    "subredditSubscribers": 61128,
    "score": 12,
    "upvoteRatio": 1,
    "commentCount": 43,
    "createdAt": "2026-06-30T16:09:57.222000+0000",
    "threadUrl": "https://www.reddit.com/r/CRM/comments/1ujti48/whats_a_good_crm_tool_for_a_bootstrapped_startup/",
    "url": "https://www.reddit.com/r/CRM/comments/1ujti48/whats_a_good_crm_tool_for_a_bootstrapped_startup/",
    "body": "Hey guys, I'm looking for a CRM tool to generate leads. So far i've used Clay, apollo, zoom, etc. ...",
    "domain": "self.CRM",
    "flair": null,
    "isNsfw": false,
    "searchQuery": "best CRM for startups"
}
```

Comment rows add the comment text, `parentId`, the author's karma and the post's title, link, score and comment count.

### How can I use Reddit search data?

- **Brand and competitor monitoring:** catch every new mention of your product or a rival
- **Lead generation:** find people asking for a tool like yours
- **Market research:** see which problems and products people discuss most
- **Content ideas:** find the questions your audience asks again and again
- **AI and LLM data:** collect real discussions on a topic

### Use it from your own code

Run it through the [Apify API](https://docs.apify.com/api/v2) or the Python and JavaScript clients, schedule it, or connect it to Make, Zapier, n8n or Google Sheets. AI agents can call it through the Apify MCP server.

### Scrape more Reddit data

| Actor | What it does |
|---|---|
| [Reddit Post Comments Scraper](https://apify.com/automly/reddit-post-comments-scraper) | Every comment and reply of the posts you choose |
| [Reddit Scraper](https://apify.com/automly/reddit-ultimate-scraper) | Subreddits, users, posts and search in one actor |

### ❓FAQ

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

Reddit stops a search at about 300 results, whatever the sort. For more, split the search: several subreddits (each is its own search), several sort orders or time ranges, or more specific queries.

#### How do I monitor new mentions?

Schedule the actor with **Sort order** set to Newest and **Posted after** set to the date of your last run (or a **Time filter** that matches the schedule, such as Past day for a daily run). A result can appear in two runs; remove repeats by `id`.

#### Does a search inside a subreddit that does not exist fail?

No. It is reported as not found in the run's log and summary; the other searches still return their results and the run finishes successfully.

#### Do I need a Reddit account?

No. The actor reads public Reddit data only. Private communities cannot be searched.

#### Is it legal to scrape Reddit?

This actor collects public data only. Personal data is protected by laws such as the GDPR; scrape it only with a legitimate reason, and check Reddit's terms and your local rules. If unsure, ask a lawyer.

# Actor input Schema

## `query` (type: `string`):

Keywords to search for, e.g. best CRM for startups. Reddit's search syntax works: "exact phrase", OR, -exclude, title:word, author:name, subreddit:name, self:yes. Up to 700 characters.

## `queries` (type: `array`):

More searches in the same run, one per line, e.g. "web scraping" python. Each gets its own Max results. A result two queries find is returned once, under the first.

## `maxResults` (type: `integer`):

The most results per query, e.g. 100. With content type Both, posts and comments each get this many. Set 0 for all Reddit returns (about 300 per search; each subreddit is its own search).

## `contentType` (type: `string`):

Search posts, comments, or both.

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

Most relevant, newest first, top-voted, hot or most-commented.

## `timeFilter` (type: `string`):

Only results from the past hour, day, week, month or year. Leave empty for any time.

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

Keep only results created on or after this date (UTC), e.g. 2026-10-01. With Newest first, the search stops at the first older result. Results outside the dates are not charged.

## `postedBefore` (type: `string`):

Keep only results created before this date (UTC), e.g. 2026-11-01.

## `subreddit` (type: `string`):

Search inside one subreddit, e.g. python, r/python or https://www.reddit.com/r/python/. Leave empty to search all of Reddit.

## `subreddits` (type: `array`):

Search inside several subreddits, one per line, e.g. startups. Each is searched on its own and shares the query's Max results.

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

Keep results marked 18+ (NSFW).

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

Proxy servers used to reach Reddit. The default works for most runs.

## Actor input object example

```json
{
  "query": "best CRM for startups",
  "maxResults": 100,
  "contentType": "posts",
  "sort": "relevance",
  "timeFilter": "",
  "includeNsfw": true,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

Matching posts.

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

Matching comments.

# 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 = {
    "query": "best CRM for startups",
    "maxResults": 100,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("automly/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 = {
    "query": "best CRM for startups",
    "maxResults": 100,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("automly/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 '{
  "query": "best CRM for startups",
  "maxResults": 100,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call automly/reddit-search-scraper --silent --output-dataset

```

## MCP server setup

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