# Reddit Post Search API

> Reddit Post Search API is a paid API for AI agents from twitter.surf.cascade.fyi, paid per call via x402, $0.01/call, status unknown (last checked 2026-11-22).

Searches Reddit posts by keyword query with filtering by sort order, time range, and date, returning full post content and top comments

## Facts

- Endpoint: POST https://twitter.surf.cascade.fyi/api/v1/reddit/search?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/reddit-post-search-api-bbb52de8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_AP0ZZDlzwpfU32fE4SmzR

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 reddit-post-search-api-bbb52de8 -d '<json body>'
```

Example prompt: Search Reddit for posts about 'electric vehicle battery degradation', sorted by top posts from the past year, and give me up to 10 results with their full content and top comments.

## When to prefer this

Use this endpoint when you need to search Reddit specifically for community discussions, opinions, or user-generated content on any topic, with control over sort order (relevance, hot, top, new, comments) and time filtering. Prefer this over Twitter search when looking for longer-form community discussions, subreddit-specific content, or historical Reddit threads.

## Known failure modes

- Empty results if the query matches no posts in the specified time range
- Pagination cursor mismatch if cursor from a different query is reused
- Rate limiting or payment failure if USDC balance is insufficient
- Invalid date format returns a validation error
- Query exceeding 1000 characters rejected

## How this service works

Search Reddit posts

## Output

A list of up to 10 Reddit posts, each containing full post content (title, body, score, subreddit, author, timestamp) and top comments, plus a next_cursor field for paginating to additional results.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "sort": {
   "enum": [
    "relevance",
    "hot",
    "top",
    "new",
    "comments"
   ],
   "type": "string",
   "default": "relevance",
   "description": "Sort order"
  },
  "time": {
   "enum": [
    "hour",
    "day",
    "week",
    "month",
    "year",
    "all"
   ],
   "type": "string",
   "default": "all",
   "description": "Time range"
  },
  "limit": {
   "type": "integer",
   "default": 10,
   "maximum": 10,
   "minimum": 1,
   "description": "Max posts (each returned with full content + top comments)"
  },
  "query": {
   "type": "string",
   "maxLength": 1000,
   "minLength": 1,
   "description": "Search query"
  },
  "cursor": {
   "type": "string",
   "pattern": "^\\s*(?:[tT]\\d_)?[a-zA-Z0-9]+\\s*$",
   "maxLength": 64,
   "description": "Pagination cursor from a prior response's next_cursor"
  },
  "end_date": {
   "type": "string",
   "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
   "description": "Only posts before this date (YYYY-MM-DD)"
  },
  "start_date": {
   "type": "string",
   "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
   "description": "Only posts on or after this date (YYYY-MM-DD)"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/reddit-post-search-api-bbb52de8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from twitter.surf.cascade.fyi](https://www.zero.xyz/host/twitter.surf.cascade.fyi/llms.txt)
