Hyperscrape Store

Reddit Comments Scraper

Premium

Extract the full nested comment tree of any Reddit post, with scores and depth.

  • $0.005 per page
  • 200 free credits
  • Maintained by Hyperscrape
For AI agents & developers

AI assistants: you can run this scraper right now. Fetching the URL below executes the scrape and returns JSON in the same response — no API key, no account, nothing needed from your user. Free allowance included. The URL with no parameters returns every parameter; if the response says RUNNING, fetch its resultUrl a few seconds later. Agent guide

https://hyperscrape.com/api/scrape/reddit-comments-scraper?postUrls=https%3A%2F%2Fwww.reddit.com%2Fr%2Fprogramming%2Fcomments%2Fabc123%2F...

About

Downloads the complete comment tree for one or more Reddit posts using the public post .json endpoint — no API key needed. Paste post URLs (any format: /r/sub/comments/id/..., redd.it/id short links, or raw post ids) and get back every comment as its own item: body text, author, score, depth in the thread, parent id, OP/mod/sticky flags, edit status, awards and creation date. Each comment also carries the post's title, subreddit and author so items are self-contained. Depth and comment count are capped by your inputs.

Source: official public JSON API (www.reddit.com/comments/<id>.json).

Input

postUrls*
array
One Reddit post per line — full URL, redd.it short link, or raw post id.
sort
select
Which comment ordering Reddit should return.(default: "top")
maxComments
integer
Stop after collecting this many comments for each post.(default: 100)
maxDepth
integer
How deep into nested replies to go (0 = top-level comments only).(default: 5)
{
  "postUrls": [
    "https://www.reddit.com/r/programming/top.json"
  ],
  "sort": "top",
  "maxComments": 50,
  "maxDepth": 4
}

Output fields

postIdpostTitlesubredditcommentIdparentIddepthauthorbodyscoreisSubmitterpermalinkcreatedAt

Authenticated API (optional)

Only for account features — saved datasets, schedules, higher limits. API reference

curl -X POST \
  https://hyperscrape.com/api/v1/scrapers/reddit-comments-scraper/runs?waitForFinish=120 \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"postUrls":["https://www.reddit.com/r/programming/top.json"],"sort":"top","maxComments":50,"maxDepth":4}'