# Reddit Comment Thread Scraper

> Reddit Comment Thread Scraper is a paid API for AI agents from reddit.apitoll.cloud, paid per call via x402, $0.03/call, status unknown (last checked 2026-09-15).

Fetches the full nested comment tree of any Reddit post, including post metadata and per-comment details like author, body, score, and depth.

## Facts

- Endpoint: GET https://reddit.apitoll.cloud/v1/reddit/comments
- Price: $0.03/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/reddit-comment-thread-scraper-a762913b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_5JzoqApKC5nBcnNTUdoQz

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-comment-thread-scraper-a762913b
```

Example prompt: Pull the comment thread from this Reddit post for me — https://www.reddit.com/r/technology/comments/abc123/some_post/ — grab up to 50 comments with a nesting depth of 5 so I can see what the community is saying.

## When to prefer this

Use this endpoint when you need to read, analyze, or summarize the discussion in a specific Reddit thread without a Reddit API key or login. Ideal for sentiment analysis, community reaction research, or extracting opinions from a known post URL. Prefer this over the subreddit feed scraper (which lists posts) or the search scraper (which finds posts by keyword) when you already have the post URL and want its comments.

## Known failure modes

- Invalid or malformed Reddit post URL returns an error
- Post is deleted or removed — returns empty comments or error
- Reddit rate-limiting or blocking the scraper may cause failures
- Thread with 0 comments returns post metadata but empty comments array
- Depth or limit parameters out of range rejected by schema validation

## How this service works

Reddit comment-thread scraper — the comment tree of any Reddit post for AI agents. Pass a post URL and get the post plus its nested comments (depth- and limit-controlled): for each comment the author, body, score, nesting depth, parent id, permalink, OP flag, and timestamp; a truncated flag plus totalComments show when a thread has more than returned. No login, no Reddit API key. Analyze discussion, sentiment, and community reaction on any thread.

## Output

Returns the Reddit post's metadata (title, author, score, subreddit, selfText) plus an array of comments each containing author, body, score, depth, parent ID, permalink, isSubmitter flag, and timestamp; also includes a truncated flag and totalComments count so you know if there are more comments than returned.

## 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "url"
     ],
     "properties": {
      "url": {
       "type": "string",
       "description": "Full Reddit post URL or permalink. Defaults to a demo post if omitted."
      },
      "depth": {
       "type": "integer",
       "maximum": 50,
       "minimum": 0,
       "description": "How deep to follow nested comment chains (0 = post only)."
      },
      "limit": {
       "type": "integer",
       "maximum": 100,
       "minimum": 1,
       "description": "Max comments to return (1-100)."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "asOf": {
       "type": "string"
      },
      "post": {
       "type": "object",
       "properties": {
        "id": {
         "type": "string"
        },
        "url": {
         "type": "string"
        },
        "score": {
         "type": "number"
        },
        "title": {
         "type": "string"
        },
        "author": {
         "type": "string"
        },
        "fullId": {
         "type": "string"
        },
        "isSelf": {
         "type": "boolean"
        },
        "selfText": {
         "type": "string"
        },
        "scrapedAt": {
         "type": "string"
        },
        "subreddit": {
         "type": "string"
        },
        "recordType": {
         "type": "string"
        },
        "numComments": {
         "type": "number"
        }
       }
      },
      "count": {
       "type": "number"
      },
      "depth": {
       "type": "number"
      },
      "source": {
       "type": "object",
       "properties": {
        "via": {
         "type": "string"
        },
        "name": {
         "type": "string"
        }
       }
      },
      "postUrl": {
       "type": "string"
      },
      "comments": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "id": {
      
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "asOf": "2026-07-15T12:00:00Z",
  "post": {
   "id": "abc123",
   "url": "https://www.reddit.com/r/programming/comments/abc123/show_hn/",
   "score": 1842,
   "title": "Show HN: I built a type-safe API framework",
   "author": "some_dev",
   "fullId": "t3_abc123",
   "isSelf": true,
   "selfText": "After a month of nights and weekends…",
   "scrapedAt": "2026-07-15T12:00:00Z",
   "subreddit": "programming",
   "recordType": "post",
   "numComments": 231
  },
  "count": 50,
  "depth": 10,
  "source": {
   "via": "Apify",
   "name": "Reddit"
  },
  "postUrl": "https://www.reddit.com/r/programming/comments/abc123/show_hn/",
  "comments": [
   {
    "id": "c1a2b3",
    "url": "https://www.reddit.com/r/programming/comments/abc123/show_hn/c1a2b3/",
    "body": "This is exactly what I needed — how does it handle streaming?",
    "depth": 1,
    "score": 214,
    "author": "commenter1",
    "fullId": "t1_c1a2b3",
    "postId": "t3_abc123",
    "parentId": "t3_abc123",
    "scrapedAt": "2026-07-15T12:00:00Z",
    "subreddit": "programming",
    "recordType": "comment",
    "isSubmitter": false
   }
  ],
  "truncated": true,
  "totalComments": 231
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/reddit-comment-thread-scraper-a762913b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from reddit.apitoll.cloud](https://www.zero.xyz/host/reddit.apitoll.cloud/llms.txt)
