# Reddit Comments Scraper (x402)

> Reddit Comments Scraper (x402) is a paid API for AI agents from x402.186-241-26-229.sslip.io, paid per call via x402, $0.03/call, status unknown (last checked 2026-10-02).

Fetches structured comment trees and post metadata from public Reddit URLs, billed per successful call via x402 micropayments.

## Facts

- Endpoint: POST https://x402.186-241-26-229.sslip.io/v1/reddit-comments?utm_source=zero.xyz
- Price: $0.03/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/reddit-comments-scraper-x402-a85bbfb5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_xRupb6cjdO0tGIK352CGF

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-comments-scraper-x402-a85bbfb5 -d '<json body>'
```

Example prompt: Scrape the comments from this Reddit thread — https://www.reddit.com/r/MachineLearning/comments/xyz123/ — and give me up to 500 comments per post, skipping any NSFW content.

## When to prefer this

Choose this endpoint when you need structured, machine-readable Reddit comment data without building your own scraper or managing Reddit API credentials. It is especially useful for bulk comment extraction across multiple posts, sentiment analysis pipelines, or research tasks requiring archived comment trees. Pay only for successful, non-empty runs makes it cost-efficient for exploratory scraping.

## Known failure modes

- Unsupported URL format (e.g. Reddit /s/ share links) returns empty or error
- Private or deleted posts return no items and are not charged
- Rate limits or Reddit access restrictions may cause empty results
- Invalid URL format causes request rejection
- Posts with zero public comments return only the post item

## How this service works

Pay-per-call structured web data. Failed or empty runs are not charged.

## Output

A JSON object containing a count of returned items and an array of items, each representing either a post or a comment with fields for id, url, postId, postUrl, dataType, parsedId, postTitle, and parsedPostId. The product field confirms the endpoint used.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "maxItems": {
   "type": "integer",
   "default": 0,
   "minimum": 0,
   "description": "Hard cap across posts and comments. Zero means no overall cap."
  },
  "postUrls": {
   "type": "array",
   "default": [],
   "description": "Public Reddit post URLs, comment permalinks, or redd.it short post URLs. Each URL collects its parent post and archived comment tree. Share links using /s/ are not supported."
  },
  "includeNSFW": {
   "type": "boolean",
   "default": false,
   "description": "Include archived posts flagged as 18+ and their comments."
  },
  "maxCommentsPerPost": {
   "type": "integer",
   "default": 1000,
   "maximum": 10000,
   "minimum": 1,
   "description": "Maximum archived comments to collect for each post, including replies. The post item is additional."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 1,
  "items": [
   {
    "id": null,
    "url": null,
    "postId": null,
    "postUrl": null,
    "dataType": null,
    "parsedId": null,
    "postTitle": null,
    "parsedPostId": null
   }
  ],
  "product": "reddit-comments"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/reddit-comments-scraper-x402-a85bbfb5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.186-241-26-229.sslip.io](https://www.zero.xyz/host/x402.186-241-26-229.sslip.io/llms.txt)
