# 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, 2 monthly users, 91.2% 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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use 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`):

Configure the proxy settings for this Actor run. You can use Apify Proxy or your own custom proxies.

## `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"
    ],
    "apifyProxyCountry": "US"
  },
  "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("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).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": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=maged120/reddit-search",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Reddit Search — Find Posts Across All Subreddits",
        "description": "Scrape Reddit search results for any query. Get posts, scores, subreddits, authors, and timestamps without logging in. Supports all Reddit search filters.",
        "version": "0.0",
        "x-build-id": "sQiEXwXy0GB3iQHq7"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/maged120~reddit-search/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-maged120-reddit-search",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/maged120~reddit-search/runs": {
            "post": {
                "operationId": "runs-sync-maged120-reddit-search",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/maged120~reddit-search/run-sync": {
            "post": {
                "operationId": "run-sync-maged120-reddit-search",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "proxy_configuration"
                ],
                "properties": {
                    "query": {
                        "title": "Query",
                        "type": "string",
                        "description": "Search query to use (e.g., 'frontend').",
                        "default": "Apify"
                    },
                    "type": {
                        "title": "Search Type",
                        "enum": [
                            "subreddit",
                            "user",
                            "general"
                        ],
                        "type": "string",
                        "description": "Type of search to perform (subreddit, user, or general).",
                        "default": "general"
                    },
                    "restrict_sr": {
                        "title": "Restrict",
                        "enum": [
                            "on",
                            "auto",
                            "off"
                        ],
                        "type": "string",
                        "description": "",
                        "default": "on"
                    },
                    "include_over_18": {
                        "title": "Include Over 18",
                        "enum": [
                            "on",
                            "off"
                        ],
                        "type": "string",
                        "description": "",
                        "default": "off"
                    },
                    "result_type": {
                        "title": "Result Type",
                        "enum": [
                            "link",
                            "posts",
                            "comments",
                            "media"
                        ],
                        "type": "string",
                        "description": "result type",
                        "default": "link"
                    },
                    "time": {
                        "title": "Time",
                        "enum": [
                            "all",
                            "year",
                            "month",
                            "week",
                            "day",
                            "hour"
                        ],
                        "type": "string",
                        "description": "Time to search (e.g., 'year', 'month', 'week', 'day', or 'hour'). Only required if type is 'subreddit' or 'user'.",
                        "default": "all"
                    },
                    "sort": {
                        "title": "Sort",
                        "enum": [
                            "relevance",
                            "hot",
                            "top",
                            "new",
                            "comments"
                        ],
                        "type": "string",
                        "description": "Time to search (e.g., 'year', 'month', 'week', 'day', or 'hour'). Only required if type is 'subreddit' or 'user'.",
                        "default": "relevance"
                    },
                    "subreddit_or_username": {
                        "title": "Subreddit or Username",
                        "type": "string",
                        "description": "Subreddit or username to search (e.g., 'apify'). Only required if type is 'subreddit' or 'user'."
                    },
                    "proxy_configuration": {
                        "title": "Proxy configuration",
                        "type": "object",
                        "description": "Configure the proxy settings for this Actor run. You can use Apify Proxy or your own custom proxies.",
                        "default": {
                            "useApifyProxy": true,
                            "apifyProxyGroups": [
                                "RESIDENTIAL"
                            ],
                            "apifyProxyCountry": "US"
                        }
                    },
                    "limit": {
                        "title": "Post Limit",
                        "minimum": 1,
                        "maximum": 10000,
                        "type": "integer",
                        "description": "Maximum number of posts to retrieve (default: 25).",
                        "default": 10
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
