# Reddit Post Comments Fetcher

> Reddit Post Comments Fetcher is a paid API for AI agents from x402.apidirect.io, paid per call via x402, $0.004/call, status unknown (last checked 2026-10-30).

Fetches all comments (with nested replies) for a Reddit post by URL or post ID, with optional sentiment analysis.

## Facts

- Endpoint: GET https://x402.apidirect.io/v1/reddit/post/comments?utm_source=zero.xyz
- Price: $0.004/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/reddit-post-comments-fetcher-c97fc4a1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_r_g2SArN5XPrx6GiKBO4s

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-comments-fetcher-c97fc4a1
```

Example prompt: Fetch the top 100 comments (2 pages) from this Reddit post — https://www.reddit.com/r/Python/comments/1wwv97o/my_python_magic_is_gone/ — sorted by top, and include sentiment analysis for each comment.

## When to prefer this

Choose this endpoint when you need to retrieve the full comment tree of a specific Reddit post — including nested replies — by either URL or post ID. It is ideal when you already know the exact post you want to analyze and need structured comment data, optionally enriched with per-comment emotion/sentiment scores. Prefer this over a Reddit search endpoint when you have a direct post reference rather than a keyword query.

## Known failure modes

- Invalid or non-existent Reddit post URL/ID returns a 404 or empty result
- Providing both url and post_id simultaneously may cause a validation error
- Deleted or private subreddit posts may return no comments or an access error
- Exceeding the 500-character URL limit causes a validation error
- Rate limiting or payment failure (402) if USDC balance is insufficient
- Very large threads with many pages may have slower response times

## How this service works

Get the comments on a Reddit post, replies included, by URL or post ID.

## Output

Returns an array of comment objects for the specified Reddit post, each containing the comment text, author, score, timestamp, and nested reply threads. When sentiment analysis is enabled, each comment also includes a sentiment object with eight emotion scores (joy, trust, fear, surprise, sadness, disgust, anger, anticipation each 0-100), a dominant_emotion field, an emotional_intensity score (0-10), and a polarity indicator. Supports pagination up to 80 pages of 50 comments each.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {
      "url": {
       "type": "string",
       "maxLength": 500,
       "description": "Reddit post URL, e.g. https://www.reddit.com/r/Python/comments/1wwv97o/my_python_magic_is_gone/ or https://redd.it/1wwv97o (max 500 characters). Provide exactly one of url or post_id."
      },
      "pages": {
       "type": "integer",
       "default": 1,
       "maximum": 80,
       "minimum": 1,
       "description": "Number of pages to fetch, 1-80 (default: 1). Each page returns up to 50 comments."
      },
      "post_id": {
       "type": "string",
       "description": "Reddit post ID, e.g. 1wwv97o (a t3_ prefix is accepted). Provide exactly one of url or post_id."
      },
      "sort_by": {
       "enum": [
        "top",
        "best",
        "most_recent",
        "controversial",
        "oldest",
        "qa"
       ],
       "type": "string",
       "default": "top",
       "description": "Sort order: top, best (Reddit's default order), most_recent, controversial, oldest, or qa (Q&A) (default: top)"
      },
      "get_sentiment": {
       "type": "boolean",
       "default": false,
       "description": "Set to true to add AI emotion analysis to each comment (returned in the `comments` array). Adds a `sentiment` object containing `emotions` (joy, trust, fear, surprise, sadness, disgust, anger and anticipation, each scored 0-100), `dominant_emotion`, `emotional_intensity` (0-10), and `polarity` (posi"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/reddit-post-comments-fetcher-c97fc4a1/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.apidirect.io](https://www.zero.xyz/host/x402.apidirect.io/llms.txt)
