# glim.sh Reddit Data Fetcher

> glim.sh Reddit Data Fetcher is a paid API for AI agents from glim.sh, paid per call via x402, $0.015/call, not verified (last probed 2026-10-19); 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)

Fetches live Reddit post details, comments, subreddit listings, or user activity by URL, post ID, subreddit ref, or user ref

## Facts

- Endpoint: POST https://glim.sh/api/v1/reddit/get?utm_source=zero.xyz
- Price: $0.015/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-19
- Last successful call: 2026-07-17
- Success rate: 70% of calls made through Zero
- Rating: 2.3 / 5 from 3 reviews
- Activations on Zero: 10
- Tags: x402
- Canonical page: https://www.zero.xyz/c/glim-sh-reddit-data-fetcher-8358cd89
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Gd0nxE9k2aMQvMzYE5F3I

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-data-fetcher-8358cd89 -d '<json body>'
```

Example prompt: Pull the top 25 hot posts from r/MachineLearning along with their comments (up to 50 comments per post, 3 levels deep, sorted by top confidence) so I can see what's trending there right now.

## When to prefer this

Use this endpoint when you need live Reddit data without managing API keys or a scraping stack — ideal for fetching subreddit listings, individual post threads with nested comments, or user activity in a single pay-per-call request. Prefer it over direct Reddit API integration when you want zero-setup access to Reddit content in an agentic workflow.

## Known failure modes

- Invalid or deleted Reddit post URL returns empty or error response
- Private or banned subreddit returns access-denied error
- Non-existent user ref returns 404-style error
- Exceeding limit bounds (>100 items or >200 comments) may return validation error
- Rate limits or Reddit availability issues may cause timeout or 5xx error

## How this service works

Fetch a Reddit post, subreddit, or user by ref

## Output

A JSON object containing the kind of ref resolved (post, subreddit listing, or user), full post metadata including title and ID, a nested comments array up to the requested depth and limit, and a total comment count.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "ref": {
   "type": "string",
   "maxLength": 2048,
   "minLength": 1,
   "description": "Reddit post, subreddit, or user reference. Best: a post URL, subreddit URL/r/name, or user URL/u/name. A bare base36 post id also works. A comment permalink (…/comments/<post>/comment/<id>/) returns that comment with its ancestor context and replies."
  },
  "sort": {
   "enum": [
    "hot",
    "new",
    "top",
    "rising"
   ],
   "type": "string",
   "default": "hot",
   "description": "Listing post sort"
  },
  "time": {
   "enum": [
    "hour",
    "day",
    "week",
    "month",
    "year",
    "all"
   ],
   "type": "string",
   "default": "day",
   "description": "Listing time range"
  },
  "limit": {
   "type": "integer",
   "default": 10,
   "maximum": 10,
   "minimum": 1,
   "description": "Max listing posts (subreddit/user). Subreddit posts return full content + top comments; for user refs this also caps the comments returned."
  },
  "cursor": {
   "type": "string",
   "pattern": "^\\s*(?:[tT]\\d_)?[a-zA-Z0-9]+\\s*$",
   "maxLength": 64,
   "description": "Pagination cursor from a prior subreddit response's next_cursor"
  },
  "comment_sort": {
   "enum": [
    "confidence",
    "top",
    "new",
    "controversial",
    "old",
    "qa"
   ],
   "type": "string",
   "default": "confidence",
   "description": "Comment sort. Post refs only: subreddit/user listings always hydrate a fixed 2 top-level comments sorted by top."
  },
  "comment_depth": {
   "type": "integer",
   "default": 5,
   "maximum": 10,
   "minimum": 0,
   "description": "Max nesting depth (post refs only)"
  },
  "comment_limit": {
   "type": "integer",
   "default": 50,
   "maximum": 200,
   "minimum": 0,
   "description": "Max comments (post refs only)"
  },
  "include_posts": {
   "type": "boolean",
   "default": true,
   "description": "Include recent posts for user refs"
  },
  "include_comments": {
   "type": "boolean",
   "default": false,
   "description": "Include recent comments for user refs"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "kind": "post",
  "post": {
   "id": "abc",
   "title": "Example"
  },
  "comments": [],
  "comment_count": 0
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/glim-sh-reddit-data-fetcher-8358cd89/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)
