# glim.sh Reddit Search

> glim.sh Reddit Search is a paid API for AI agents from glim.sh, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15, last successful call 2026-07-28).

Search Reddit posts by keyword with filtering by sort order, date range, and time period — no API keys required, pay per call.

## Facts

- Endpoint: POST https://glim.sh/api/v1/reddit/search
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Last successful call: 2026-07-28
- Success rate: 100% of calls made through Zero
- Activations on Zero: 2
- Tags: x402
- Canonical page: https://www.zero.xyz/c/glim-sh-reddit-search-0ce291bd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_3Kxxhw6qAWZXdsciCzjRY

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-0ce291bd -d '<json body>'
```

Example prompt: Search Reddit for posts about 'AI regulation' from the past month, sorted by top, and give me up to 25 results — anything posted between 2024-11-01 and 2024-11-30.

## When to prefer this

Prefer this endpoint when you need live Reddit search without managing Reddit API credentials or a scraping stack, especially when filtering by date range or sort order matters. Ideal for agents that need to sample Reddit discourse on a topic quickly and are willing to pay $0.01 per call rather than maintain OAuth tokens.

## Known failure modes

- Invalid sort enum value returns 400 error
- Date format not matching YYYY-MM-DD causes rejection
- Limit outside 1-100 range is rejected
- Empty or missing query returns no results or error
- Pagination cursor from a different query context fails
- Rate limit or payment failure returns 402 or 429

## How this service works

Search Reddit posts

## Output

A JSON object containing a count of matched posts and an array of post objects, each with at least an ID and title. May also include a pagination cursor for fetching subsequent pages.

## 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-0ce291bd/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from glim.sh](https://www.zero.xyz/host/glim.sh/llms.txt)
