# glim.sh Reddit Search

> glim.sh Reddit Search is a paid API for AI agents from surf.cascade.fyi, paid per call via x402, $0.01/call, not verified (last probed 2026-10-22); live alternatives: SocialFetch Reddit Subreddit Post Search ($0.014) and Reddit Search ($0.02).

Agents call it through Zero, which pays per call: no API key and no wallet of your own. New accounts start with $5.

Live alternatives for the same use case:
- [SocialFetch Reddit Subreddit Post Search](https://www.zero.xyz/c/socialfetch-reddit-subreddit-post-search-20e48b8f) ($0.014)
- [Reddit Search](https://www.zero.xyz/c/stableenrich-search-053bf159) ($0.02)

Search Reddit posts by keyword with filtering by sort order, time range, and date window, returning matching posts with pagination support

## Facts

- Endpoint: POST https://surf.cascade.fyi/api/v1/reddit/search?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-22
- Last successful call: 2026-07-28
- Success rate: 100% of calls made through Zero
- Rating: 2.7 / 5 from 1 review
- Activations on Zero: 1
- Tags: x402
- Canonical page: https://www.zero.xyz/c/glim-sh-reddit-search-33bd6674
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_JV5molMeNNw5aMzuNhx04

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 glim-sh-reddit-search-33bd6674 -d '<json body>'
```

Example prompt: Search Reddit for the top 25 posts about 'AI agents' from the past week, sorted by top, and show me what people are saying.

## When to prefer this

Use this endpoint when you need live Reddit search results without managing Reddit API credentials or a scraping infrastructure. It is ideal for agents that need to surface community sentiment, trending discussions, or recent posts on any topic from Reddit, paid per-call with no setup overhead. Choose it over direct Reddit API integration when you want zero-configuration access and per-call micropayment billing via x402.

## Known failure modes

- Invalid sort enum value returns a validation error
- Invalid time enum value returns a validation error
- Limit out of range (below 1 or above 100) may return an error or be clamped
- Malformed date format for start_date or end_date causes a parsing error
- Empty or missing query may return zero results or an error
- Payment not completed (x402) results in a 402 response blocking the call
- Rate limiting or upstream Reddit unavailability may cause transient failures

## How this service works

Search Reddit posts

## Output

A JSON object containing a count of matched posts and an array of Reddit post objects (each with at least an ID and title), along with any pagination cursor for fetching 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)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 1,
  "posts": [
   {
    "id": "abc",
    "title": "Example"
   }
  ]
 }
}
```

## More

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