# Reddit Search — Find Posts Across All Subreddits (`maged120/reddit-search`) Actor

Scrape Reddit search results for any query. Get posts, scores, subreddits, authors, and timestamps without logging in. Supports all Reddit search filters.

- **URL**: https://apify.com/maged120/reddit-search.md
- **Developed by:** [Maged](https://apify.com/maged120) (community)
- **Categories:** Automation, Social media
- **Stats:** 16 total users, 0 monthly users, 79.3% runs succeeded, 1 bookmarks
- **User rating**: 2.00 out of 5 stars

## Pricing

from $9.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

### What does Reddit Search Scraper do?

**Reddit Search Scraper** extracts posts from Reddit's search results for any keyword or phrase. Search across all of Reddit or within a specific subreddit and get back post titles, scores, comment counts, authors, timestamps, and URLs — all without a Reddit API key.

This Actor runs on the [Apify platform](https://apify.com), making it easy to monitor brand mentions, track trending topics, or build research datasets on autopilot.

### Why use Reddit Search Scraper?

- **No Reddit API key required** — bypass OAuth and rate limits
- **Search all of Reddit or a specific subreddit** — flexible scope
- **Sort options** — relevance, new, hot, top, comments
- **Batch queries** — run multiple searches in one Actor run
- **Brand monitoring** — track mentions of your product, competitor, or topic

### How to use Reddit Search Scraper

1. Open the Actor and click **Try for free**
2. Enter one or more search queries in the `queries` field
3. Optionally filter by subreddit and sort order
4. Click **Start** — results appear in the Output tab
5. Download as JSON, CSV, or Excel

### Input

```json
{
  "queries": ["python async tutorial", "best SaaS tools 2024"],
  "subreddit": "",
  "sort": "relevance",
  "maxResults": 50
}
```

| Field | Type | Description | Default |
|---|---|---|---|
| `queries` | array | Search terms or phrases | required |
| `subreddit` | string | Limit to a specific subreddit (optional) | `""` (all) |
| `sort` | string | `relevance`, `new`, `hot`, `top`, `comments` | `relevance` |
| `maxResults` | integer | Max results per query | `50` |

### Output

Results are stored in the Apify dataset. Download in JSON, CSV, HTML, or Excel.

```json
{
  "query": "python async tutorial",
  "title": "A comprehensive guide to Python async/await",
  "url": "https://www.reddit.com/r/Python/comments/example/",
  "subreddit": "Python",
  "author": "u/asyncmaster",
  "score": 892,
  "numComments": 64,
  "created": "2024-02-20T09:15:00Z",
  "flair": "Tutorial",
  "thumbnail": "https://.../"
}
```

### Output fields

| Field | Type | Description |
|---|---|---|
| `query` | string | The search keyword |
| `title` | string | Post title |
| `url` | string | Full Reddit post URL |
| `subreddit` | string | Subreddit name |
| `author` | string | Post author username |
| `score` | number | Net upvote score |
| `numComments` | number | Comment count |
| `created` | string | Post creation timestamp |
| `flair` | string | Post flair label |

### Cost

Pay-per-result pricing:

| Volume | Estimated cost |
|---|---|
| 500 results | ~$0.05–$0.25 |
| 5,000 results | ~$0.50–$2.50 |
| 50,000 results | ~$5–$25 |

### Tips

- Use `sort: "new"` for near-real-time monitoring of fresh mentions
- Combine with **Reddit Posts & Comments Scraper** to pull full threads for the most relevant results
- Schedule runs daily or hourly via the Apify scheduler for continuous brand monitoring
- Filter results in the dataset by `score` to surface only high-quality posts

### FAQ

**Does this require a Reddit account?**
No — the Actor uses Reddit's public search interface.

**Can I search within a specific subreddit?**
Yes — set the `subreddit` field to any subreddit name (without `r/`).

**How current are the results?**
Results reflect Reddit's search index, which is typically updated within minutes of a post being created.

**Is this Actor maintained?**
Yes. Report bugs or feature requests in the Issues tab.

**Need help or have questions?**
Open an issue in the Issues tab or reach out on Discord: **maged03211**

# Actor input Schema

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

Search query to use (e.g., 'frontend').

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

Type of search to perform (subreddit, user, or general).

## `restrict_sr` (type: `string`):

No description

## `include_over_18` (type: `string`):

No description

## `result_type` (type: `string`):

result type

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

Time to search (e.g., 'year', 'month', 'week', 'day', or 'hour'). Only required if type is 'subreddit' or 'user'.

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

Time to search (e.g., 'year', 'month', 'week', 'day', or 'hour'). Only required if type is 'subreddit' or 'user'.

## `subreddit_or_username` (type: `string`):

Subreddit or username to search (e.g., 'apify'). Only required if type is 'subreddit' or 'user'.

## `proxy_configuration` (type: `object`):

Leave the default Apify Residential proxy and do not select a specific country (leave it on automatic) for best results and to avoid rate limiting.

## `limit` (type: `integer`):

Maximum number of posts to retrieve (default: 25).

## Actor input object example

```json
{
  "query": "Apify",
  "type": "general",
  "restrict_sr": "on",
  "include_over_18": "off",
  "result_type": "link",
  "time": "all",
  "sort": "relevance",
  "proxy_configuration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  },
  "limit": 10
}
```

# 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 = {
    "limit": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("maged120/reddit-search").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 = { "limit": 10 }

# Run the Actor and wait for it to finish
run = client.actor("maged120/reddit-search").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 '{
  "limit": 10
}' |
apify call maged120/reddit-search --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,maged120/reddit-search"
        }
    }
}

```

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/TL0RCJCboD5cGG75v/builds/vdMt2u7uzHWSGhVqQ/openapi.json
