# Reddit Search V1 — Posts, Subreddits & Users (3 endpoints) (`red_crawler/reddit-search`) Actor

Search Reddit for posts, subreddits, or users with filters for sort, time, and subreddit scope. No Reddit account or OAuth required.

- **URL**: https://apify.com/red\_crawler/reddit-search.md
- **Developed by:** [Red Crawler](https://apify.com/red_crawler) (community)
- **Categories:** Lead generation, SEO tools, Social media
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

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

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

## Reddit Search — Posts, Subreddits & Users

Search Reddit and get back fully-structured results. Three result types — posts, subreddits, or users — with sort, time-window, and subreddit-scope filters. **No Reddit account, OAuth, or proxy required.**

Pick what you want to find, type your query, hit Start.

---

### What you can fetch

This actor mirrors Reddit's native search across three result types. Choose the type, type your query, optionally narrow with filters.

#### 1. Posts

Reddit posts matching the query. Supports sort, time window, and subreddit scope.

**Inputs:**
- **Query** — full-text search string. Reddit's search syntax is supported:
  - `wordpress` — basic keyword
  - `"exact phrase"` — exact match
  - `wordpress -plugin` — exclude a term
  - `flair:"Help needed"` — restrict by flair
  - `author:username` — by author
  - `selftext:typescript` — match in post body
- **Restrict to subreddit** *(optional)* — subreddit name without the `r/` prefix. Scopes the search to one community.
- **Sort** — `relevance` (default), `hot`, `top`, `new`, `comments` (most-discussed).
- **Time filter** *(optional)* — `hour` / `day` / `week` / `month` / `year` / `all`. Leave as `—` to use Reddit's default window.
- **Limit** — 1 to 250 (default 25).

**Returns per post:** Reddit ID, fullname, title, body / selftext, author, subreddit, score, ups / downs / upvote ratio, comment count, crosspost count, created + edited timestamps, permalink, external URL, domain, post-type flags (`is_self`, `is_video`, `over_18`, `spoiler`, `locked`, `stickied`, `pinned`, `archived`), distinguished status, removal category, link & author flair, thumbnail, media (images / video / gallery), awards.

**Use it when:** brand monitoring (mentions of your product), trend discovery (`top` over `week` / `month`), competitor research, content discovery for a niche.

#### 2. Subreddits

Subreddit communities matching the query.

**Inputs:**
- **Query** — search string (subreddit names + descriptions).
- **Limit** — 1 to 250.

**Returns per subreddit:** ID, fullname, display name (raw + prefixed), title, subscriber count, active user count, public + full description, created timestamp, language, type (public / private / restricted), NSFW flag, URL, header / icon / banner images, primary + key colors, submit text, allowed submission types (videos / images / polls / galleries).

**Use it when:** discovering communities for a topic before you post, building niche directories, finding the right place to advertise.

**Note:** Sort, time filter, and subreddit scope are ignored for this type — Reddit returns subreddit results in its own default order.

#### 3. Users

Reddit user accounts matching the query.

**Inputs:**
- **Query** — search string (matched against usernames + profiles).
- **Restrict to subreddit** *(optional)* — only return users active in that subreddit.
- **Limit** — 1 to 250.

**Returns per user:** ID, name, total karma split into post / comment / award / awardee karma, account creation timestamp, employee / mod / Reddit-Gold / verified / verified-email flags, profile icon, snoovatar image, mini subreddit info, accept-followers flag.

**Use it when:** finding influencers in a niche, brand accounts, lead generation, mapping who's active in a community.

**Note:** Sort and time filter are ignored for this type.

---

### How to run

1. **Pick the search type** — Posts, Subreddits, or Users.
2. **Enter your query.**
3. **Optionally narrow** with subreddit scope (Posts / Users), sort + time (Posts only), or limit.
4. **Click Start.**

---

### Output

Results are pushed to the actor's default dataset, **one record per result**. View as a table or download as JSON / CSV / Excel / XML.

Every record is tagged with a `result_kind` field (`post`, `subreddit`, or `user`) so you can tell them apart at a glance and route them downstream. The most useful columns are placed first (id, title / name, score / subscribers / karma, created date, etc.) so the dataset Table view is readable without scrolling.

---

### Common edge cases

- **Safe Search is always ON.** NSFW results are filtered out at the source — there is no toggle. If you need NSFW search results, use **Reddit Search V2** which has a `safe_search` toggle.
- **Hard cap of ~250 results.** Reddit's search index returns at most ~250 unique items per query, regardless of how high you set `limit`.
- **One run = one search.** For multiple queries, kick off separate runs (or use the Apify scheduler / API).
- **Private subreddits / quarantined content** — not searchable from anonymous calls.
- **Empty results** — return zero records. The actor reports an empty result rather than failing.
- **Sort + time filter on non-Post types** — silently ignored. Reddit ranks subreddit / user results in its own order.

---

### Why this actor is fast

- **Speed — 1–3 seconds per call, end-to-end.** Pure HTTP to Reddit's API. No browser to boot, no Playwright / Selenium / Puppeteer overhead. Competing browser-based scrapers typically take 15–60 seconds per call.
- **Reliability — zero browser flakiness.** No headless-Chromium crashes. No JS-render timeouts. No captcha pages. No surprise mid-run failures from a browser quirk.
- **Footprint — under 100 MB RAM per run.** Most browser-based scrapers need 1–4 GB. We're a thin async dispatcher — Reddit auth, proxy rotation, retry, and GraphQL handling all happen off-actor on our backend.

---

### Pricing

Pay-per-result. You're only charged for records actually pushed to the dataset — failed runs, validation errors, and empty results cost nothing. See the actor's pricing tab for the current per-result rate.

---

### Need a different shape of data?

- **Reddit Search V2** — adds comment / media / topic search, NSFW toggle, comment search (`triangular_triangle/reddit-search-v2`).
- **Reddit Scraper V2** — 15 single & bulk reads for posts, comments, profiles, communities (`triangular_triangle/reddit-scrape-v2`).
- **Reddit Scraper** — pull a subreddit's feed, a post's comments, or a single post / comment by URL (`triangular_triangle/reddit-content-fetcher`).
- **Reddit Bulk Scrape** — paste up to 1500 IDs / names / URLs in a single run (`triangular_triangle/reddit-bulk-scrape`).
- **Reddit Users** / **Reddit Users V2** — single-user lookups with profile + trophies + posts + comments (`triangular_triangle/reddit-users`, `triangular_triangle/reddit-users-v2`).
- **Reddit Subreddits** — about / rules / sidebar / popular-feed / autocomplete (`triangular_triangle/reddit-subreddits`).
- **Reddit Posts** — front-page feed, crosspost duplicates, pinned posts (`triangular_triangle/reddit-posts`).
- **Reddit Wiki, Emojis & Widgets** — wiki pages, custom emojis, sidebar widgets (`triangular_triangle/reddit-wiki-emojis-widgets`).

# Actor input Schema

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

What kind of result to return.
## `search_query` (type: `string`):

What to search for.
## `search_subreddit` (type: `string`):

Subreddit name without r/ prefix. Used only when search type is 'posts' or 'users'. Ignored for 'subreddits'.
## `search_sort` (type: `string`):

Sort order — IGNORED unless search type = posts.
## `search_time_filter` (type: `string`):

Time window — IGNORED unless search type = posts. Leave as '—' to skip.
## `search_limit` (type: `integer`):

Max results to return (1–250).

## Actor input object example

```json
{
  "search_type": "posts",
  "search_query": "wordpress",
  "search_sort": "relevance",
  "search_time_filter": "",
  "search_limit": 25
}
````

# 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 = {
    "search_type": "posts",
    "search_query": "wordpress"
};

// Run the Actor and wait for it to finish
const run = await client.actor("red_crawler/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 = {
    "search_type": "posts",
    "search_query": "wordpress",
}

# Run the Actor and wait for it to finish
run = client.actor("red_crawler/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 '{
  "search_type": "posts",
  "search_query": "wordpress"
}' |
apify call red_crawler/reddit-search --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=red_crawler/reddit-search",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Reddit Search V1 — Posts, Subreddits & Users (3 endpoints)",
        "description": "Search Reddit for posts, subreddits, or users with filters for sort, time, and subreddit scope. No Reddit account or OAuth required.",
        "version": "0.7",
        "x-build-id": "8wS53YW4fgfyFzf6K"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/red_crawler~reddit-search/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-red_crawler-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/red_crawler~reddit-search/runs": {
            "post": {
                "operationId": "runs-sync-red_crawler-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/red_crawler~reddit-search/run-sync": {
            "post": {
                "operationId": "run-sync-red_crawler-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": [
                    "search_type",
                    "search_query"
                ],
                "properties": {
                    "search_type": {
                        "title": "Search type",
                        "enum": [
                            "posts",
                            "subreddits",
                            "users"
                        ],
                        "type": "string",
                        "description": "What kind of result to return.",
                        "default": "posts"
                    },
                    "search_query": {
                        "title": "Search query",
                        "type": "string",
                        "description": "What to search for."
                    },
                    "search_subreddit": {
                        "title": "Restrict to subreddit (optional)",
                        "pattern": "^[A-Za-z0-9_]{1,50}$",
                        "type": "string",
                        "description": "Subreddit name without r/ prefix. Used only when search type is 'posts' or 'users'. Ignored for 'subreddits'."
                    },
                    "search_sort": {
                        "title": "Sort (only for type = posts)",
                        "enum": [
                            "relevance",
                            "hot",
                            "top",
                            "new",
                            "comments"
                        ],
                        "type": "string",
                        "description": "Sort order — IGNORED unless search type = posts.",
                        "default": "relevance"
                    },
                    "search_time_filter": {
                        "title": "Time filter (only for type = posts)",
                        "enum": [
                            "",
                            "hour",
                            "day",
                            "week",
                            "month",
                            "year",
                            "all"
                        ],
                        "type": "string",
                        "description": "Time window — IGNORED unless search type = posts. Leave as '—' to skip.",
                        "default": ""
                    },
                    "search_limit": {
                        "title": "Limit",
                        "minimum": 1,
                        "maximum": 250,
                        "type": "integer",
                        "description": "Max results to return (1–250).",
                        "default": 25
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
