# AnyAPI Reddit Search

> AnyAPI Reddit Search is a paid API for AI agents from api.getanyapi.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-14).

Searches Reddit posts by query with sorting and time-filtering, returning ranked post metadata including score, author, subreddit, and comment count.

## Facts

- Endpoint: POST https://api.getanyapi.com/v1/run/reddit.search
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/anyapi-reddit-search-5e7a7c08
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_iZv6KLwlcKFxDrM1XBPkn

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability anyapi-reddit-search-5e7a7c08 -d '<json body>'
```

Example prompt: Search Reddit for the top posts about 'electric vehicle charging infrastructure' from the past month, sorted by top, and show me the titles, scores, and subreddits.

## When to prefer this

Use this endpoint when you need to search Reddit specifically for posts matching a keyword or topic, with control over sort order (e.g. top, new, relevance) and timeframe. Prefer this over generic web scraping when you want structured Reddit metadata (scores, subreddits, comment counts) without parsing HTML. Best for sentiment gathering, trend discovery, and community opinion research on Reddit.

## Known failure modes

- Empty results if the query matches no posts within the selected timeframe
- Pagination token mismatch if 'after' token is stale or invalid
- Rate limiting or quota errors if the underlying Reddit API is throttled
- Invalid sort or timeframe enum values returning an error response
- Query too broad returning generic or irrelevant posts

## How this service works

1,200+ scraping and data APIs behind one key. Pay per request in real dollars. No subscriptions, nothing monthly, nothing to cancel.

## Output

Returns an array of Reddit posts, each containing post ID, title, author username, subreddit name, upvote score, number of comments, direct URL to the post, and UTC creation timestamp. Also includes the number of results returned and the USD cost of the call.

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/anyapi-reddit-search-5e7a7c08/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.getanyapi.com](https://www.zero.xyz/host/api.getanyapi.com/llms.txt)
