# Reddit Comments Scraper

> Reddit Comments Scraper is a paid API for AI agents from api.scrapeforagents.tech, paid per call via x402, $0.03/call, status unknown (last checked 2026-10-02).

Fetches archived Reddit post metadata and comment trees from one or more post URLs, returning structured JSON items per post and comment.

## Facts

- Endpoint: POST https://api.scrapeforagents.tech/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-7141b1a6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_RA3gIIHf2kv4BZuSd3ZiO

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-7141b1a6 -d '<json body>'
```

Example prompt: Can you scrape the comments from this Reddit thread — https://www.reddit.com/r/MachineLearning/comments/abc123/some_post/ — and get me up to 500 comments per post? Don't include NSFW content.

## When to prefer this

Choose this endpoint when you need structured, pay-per-use access to Reddit post and comment data without managing your own scraping infrastructure. It is especially useful for collecting large comment trees across multiple posts in a single call, with built-in caps to control data volume. Prefer it over general-purpose web scrapers when you want Reddit-specific parsed fields like postId, parsedId, and data type classification out of the box, and when you only want to pay for successful, non-empty results.

## Known failure modes

- Invalid or inaccessible Reddit URL returns empty items array (not charged)
- Share links using /s/ format are unsupported and will fail
- Private or deleted Reddit posts return no data
- Rate limits or Reddit blocks may cause empty runs (not charged)
- Malformed URL input causes request rejection

## How this service works

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

## Output

Returns a JSON object with a count of total items, a product identifier ('reddit-comments'), and an array of items where each item represents either a post or a comment, including fields for ID, URL, post ID, post URL, data type, parsed IDs, and post title.

## 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-7141b1a6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.scrapeforagents.tech](https://www.zero.xyz/host/api.scrapeforagents.tech/llms.txt)
