YepAPI
POST/v1/reddit/post-comments

Reddit Comments API

Get the full comment tree of any Reddit post with nested replies. A Reddit comment scraper at $0.01 per call.

Pull the comments on any Reddit post as a nested tree. Each comment includes author, body, score, depth, parent id, permalink, timestamp, attached media, and its replies. Sort by top, new, controversial, old, or Q&A, and page with a cursor.

Try it live

Fill in the fields and hit Run to see a real response.

POST/v1/reddit/post-comments

A full reddit.com post URL.

Pass the cursor from the previous response to get the next page.

Response
Example response — hit "Send Request" to see a live result
{
  "ok": true,
  "data": {
    "comments": [
      {
        "author": "Traditional_Yogurt",
        "body": "Over the last four months, the Finance Toolkit has gained portfolio optimization, ETF analysis, yield curve models and a full econometrics module. I've shared this project before, 3 years ago by now: …",
        "created_at": "2026-10-29T15:12:24.136000+0000",
        "depth": 0,
        "id": "t1_19ru410esvg9s",
        "media": [
          {
            "type": "image",
            "url": "https://preview.redd.it/ry41q3q3afyh1.jpg?vthumb=1&s=31f3fcdfd88b4d5167113dcfe67357dbbf11480a"
          }
        ],
        "parent_id": null,
        "permalink": "https://www.reddit.com/r/Python/comments/1xennpj/comment/19ru410esvg9s/",
        "replies": [],
        "score": 1
      }
    ],
    "cursor": null
  }
}

Features

✓
Nested comment tree

Comments come back with their replies array and depth, so you can rebuild the thread exactly as it appears on Reddit.

✓
Five sort orders

top (default), new, controversial, old, or qa, the same options Reddit offers on a post.

✓
Media in comments

Images and GIFs attached to comments are returned in a media array.

✓
Paste the post URL

Use the same reddit.com post URL you would open in a browser.

✓
Cursor pagination

Large threads are paged with a cursor so you can load the whole discussion.

Use cases

Comment Analysis

Run sentiment or topic analysis over every reply to a post.

Voice of Customer

Collect real feedback from product and review threads.

Thread Summaries

Feed a full discussion to an AI model to summarize it.

Quick start

Copy this snippet and start making calls.

const res = await fetch('https://api.yepapi.com/v1/reddit/post-comments', {
  method: 'POST',
  headers: {
    'x-api-key': 'YOUR_API_KEY',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "url": "https://www.reddit.com/r/Python/comments/1xennpj/sunday_daily_thread_whats_everyone_working_on/",
    "sort": "top"
  }),
});
const data = await res.json();
console.log(data);

The Reddit Comments API: a Reddit comment scraper with nested replies

The YepAPI Reddit Comments API returns the full comment tree of any Reddit post. Send a post URL to /v1/reddit/post-comments and get back comments with author, body, score, depth, parent id, permalink, media, and nested replies, at $0.01 per call.

It does the job of a Reddit comment scraper without the scraping: no HTML parsing, no "load more comments" clicking, and no Reddit app credentials.

What is a Reddit comment scraper?

A Reddit comment scraper collects every comment under a post so you can analyze it. The Reddit Comments API gives you the same data as JSON. Each comment has id, author, body, score, depth, parent_id, permalink, created_at, media, and a replies array containing its child comments in the same shape, so the whole conversation arrives as a tree.

Build thread analysis and summaries

Call /v1/reddit/post-comments with sort=top to get the most useful replies first, flatten the tree, and send it to an AI model on the same YepAPI key for a summary, sentiment score, or list of feature requests. Product teams use exactly this to mine review and recommendation threads.

Reddit Comments API pricing: $0.01 per call

Every call costs a flat $0.01 and failed calls are free. There is no monthly minimum, no seat fee, and no Reddit app to register: you only need a YepAPI key. Each page of comments is one call. Comment threads are cached for 15 minutes.

Sort orders and pagination

sort accepts top (default), new, controversial, old, and qa. Large threads return a cursor; pass it back to load the next batch, and stop when it is null.

Try the Reddit Comments API free

Sign up and get $5 in free credit with no card required. That is 500 calls at $0.01 each to test the Reddit Comments API against live Reddit data before you spend anything. Combine it with the Reddit Post API and Reddit Search API on the same key.

Start making API calls in 30 seconds

$5 free credit on signup. No credit card required. Pay per call.

What developers say

“Switched from SerpAPI and cut our SERP costs by 80%. Same data quality, way simpler billing.”

Marcus T.

SEO Platform Founder

“One API key for AI models, SERP data, and web scraping. Saved us from managing 4 separate providers.”

Priya S.

Full-Stack Developer

“The $5 free credit let us prototype our entire rank tracking feature before committing. No other API does that.”

Jake R.

Indie Hacker

Frequently asked questions

Pull the comments on any Reddit post as a nested tree. Each comment includes author, body, score, depth, parent id, permalink, timestamp, attached media, and its replies. Sort by top, new, controversial, old, or Q&A, and page with a cursor.

Each API call costs $0.01. No monthly minimums or subscriptions — you only pay for what you use.

Sign up for a free API key, then send a POST request to /v1/reddit/post-comments. Check the code example above for a ready-to-use snippet in JavaScript, cURL, or Python.

YepAPI bundles SEO, AI, and web scraping APIs under one key with no monthly minimums. You get lower per-call pricing, a unified dashboard, and one billing account instead of managing multiple providers.

Ready to integrate?

Get your API key and start making calls in 30 seconds. $5 free credit on signup — no credit card required.

More Reddit API endpoints