# glim.sh Reddit Live Data

> glim.sh Reddit Live Data is a paid API for AI agents from surf.cascade.fyi, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-15).

Fetches live Reddit posts, comments, subreddit listings, and user activity without requiring a Reddit API key

## Facts

- Endpoint: POST https://surf.cascade.fyi/api/v1/reddit/get
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/glim-sh-reddit-data-api-e8fc8a1b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_zluk43v2X4xKl9dGTYqib

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-api-e8fc8a1b -d '<json body>'
```

Example prompt: Pull the top 25 hot posts from r/MachineLearning right now and fetch the top-confidence comments up to 3 levels deep for the most upvoted one.

## When to prefer this

Choose this endpoint when you need live, real-time Reddit data — posts, comments, subreddit feeds, or user activity — without setting up a Reddit API key or managing OAuth tokens. It is ideal for agents that need to read Reddit content on demand, per call, with pay-per-use pricing rather than maintaining a scraping infrastructure.

## Known failure modes

- Invalid or non-existent Reddit post URL returns an error
- Private or banned subreddit returns access denied
- Reddit rate limiting or downtime causes upstream failure
- Malformed ref parameter (not a valid Reddit URL, post ID, r/, or u/ reference) causes a parsing error
- comment_depth or comment_limit out of range returns validation error

## How this service works

One remote endpoint gives your agent live data from Twitter, Reddit, the open web, GitHub and more. No API keys, no scraping stack - just connect the URL and go.

## Output

A JSON object containing the post kind (post, listing, or user), post metadata (id, title, etc.), an array of comments with nested replies up to the requested depth, and the 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-api-e8fc8a1b/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)
