# 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:** 18 total users, 1 monthly users, 100.0% 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?

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 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** — no app registration or OAuth setup
- **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 |

### How many results will I get?

You're charged per result, so the cost follows the number of rows below. Your plan's rates are on the **Pricing** tab.

| Input | Results |
|---|---|
| Max results = 500 | Up to 500 rows |
| Max results = 5,000 | Up to 5,000 rows |

Each post is one row.

### 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**

***

⭐ **Found this Actor useful?** A quick review on the Store helps other users find it and keeps it maintained.

# 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/avv1ACn34kGAfjlXx/openapi.json
