# Reddit Subreddit Search

Search posts within a single subreddit by query, sort, and timeframe.

|  |  |
| --- | --- |
| Tool id | `anyapi.reddit-subreddit-search` |
| Platform | [Reddit](https://www.orcarouter.ai/tools/reddit.md) |
| Capability | [Search posts](https://www.orcarouter.ai/tools/reddit/search-posts.md) |
| Price | $0.000418 per call |
| Health | OK |
| p50 latency | — |
| Success (7 days) | — |
| Runs (30 days) | 14 |
| Idempotent | no |
| Data class | scraped |

## Input

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `subreddit` | string | yes | Subreddit name without the r/ prefix (e.g. 'Fitness'). |
| `cursor` | string | no | Optional pagination token from a previous response. |
| `query` | string | no | Optional search query to match posts (e.g. 'push ups'). |
| `sort` | string | no | Optional sort order: relevance, hot, top, new, comments. |
| `timeframe` | string | no | Optional time filter: all, year, month, week, day, hour. |

## Call it

```bash
curl -sS https://api.orcarouter.ai/v1/tools/anyapi.reddit-subreddit-search/run \
  -H "Authorization: Bearer $ORCAROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":{"subreddit":"<subreddit>"}}'
```

```python
import os, requests

resp = requests.post(
    "https://api.orcarouter.ai/v1/tools/anyapi.reddit-subreddit-search/run",
    headers={"Authorization": f"Bearer {os.environ['ORCAROUTER_API_KEY']}"},
    json={"input":{"subreddit":"<subreddit>"}},
)
print(resp.json())
```

## Alternatives

| Tool | Source | Price | Health |
| --- | --- | --- | --- |
| [Reddit Search](https://www.orcarouter.ai/tools/reddit/search-posts/reddit-search.md) | — | $0.000418 per call | OK |
| [Search Reddit posts by keyword](https://www.orcarouter.ai/tools/reddit/search-posts/reddit-search-posts.md) | — | $0.002068 per credit | OK |
| [Search Reddit posts by keyword](https://www.orcarouter.ai/tools/reddit/search-posts/x-reddit-search-v1.md) | — | $0.016236 per call | OK |

## FAQ

### How much does Reddit Subreddit Search cost?

Reddit Subreddit Search costs $0.000418 per call: 1,000 calls cost $0.418.

### What does a $10 budget buy with Reddit Subreddit Search?

About 23923 calls at $0.000418 per call.

### What inputs does Reddit Subreddit Search need?

Required inputs: subreddit.

### How do I call Reddit Subreddit Search?

Send POST /v1/tools/{id}/run with your OrcaRouter API key and a JSON body {"input": {…}}, where {id} is the tool id POST /v1/tools/discover returns for it.

---

Markdown version of https://www.orcarouter.ai/tools/reddit/search-posts/reddit-subreddit-search
