Platforms/Reddit/Post comments

Reddit Comments API

GET ยท 1 credit

Send a post's id or link, and get its comments in thread order, each with its depth; with a comment's id, that comment's thread.

GET /v1/reddit/posts/comments

What people use it for

  • Sentiment analysis: read every comment on posts about your product and score them.
  • Customer research: find the problems and wishes people describe in their own words.
  • Discussion datasets: save whole threads with their structure for analysis.

How it works with other endpoints

Post ids come from Search, Subreddit posts or Post. Each comment's id with more_replies goes back to this endpoint as comment_id.

Limits

  • Long threads hide replies behind "more replies": fetch them with comment_id.
  • A deleted post answers 404 NOT_FOUND.

Example request

const url = `${process.env.API_URL}/v1/reddit/posts/comments?post_id=1wkziub`;

const response = await fetch(url, {
  headers: { "x-api-key": process.env.API_KEY },
});

const { data } = await response.json();
console.log(data);

Parameters

ParameterRequiredDescription
post_idNoA post's id: the part after /comments/ in its link, with or without t3_. Give post_id or url.
urlNoA post's link: reddit.com/r/<name>/comments/<id>/, with anything after it, or redd.it/<id>. Give post_id or url.
sortNoThe order: best, top, new, controversial, old, or qa (Reddit's Q&A order).
comment_idNoA comment's id, with or without t1_: that comment's thread instead of the post's top comments. Use it to get the replies a comment's more_replies counts: page.next_cursor pages through them.
cursorNoFor the next page: page.next_cursor from the page before. Send the other parameters again with it.

Example response

{
  "data": [
    {
      "id": "t1_lq8x2ab",
      "url": "https://www.reddit.com/r/Python/comments/1wkziub/comment/lq8x2ab/",
      "post_id": "t3_1wkziub",
      "parent_id": null,
      "depth": 0,
      "text": "f-strings. I still remember the day I stopped using .format().",
      "author": "pep8_or_bust",
      "score": 960,
      "created_at": "2026-11-27T14:20:00Z",
      "more_replies": 0
    },
    {
      "id": "t1_lq8y4cd",
      "url": "https://www.reddit.com/r/Python/comments/1wkziub/comment/lq8y4cd/",
      "post_id": "t3_1wkziub",
      "parent_id": "t1_lq8x2ab",
      "depth": 1,
      "text": "And the = specifier for debugging: f\"{value=}\".",
      "author": "debug_duck",
      "score": 410,
      "created_at": "2026-11-27T14:41:00Z",
      "more_replies": 12
    }
  ],
  "page": {
    "next_cursor": "eyJ0b2tlbiI6IkVnWlEifQ",
    "has_more": true
  },
  "meta": {
    "platform": "reddit",
    "endpoint": "post_comments",
    "params": {
      "post_id": "1wkziub",
      "sort": "best"
    },
    "request_id": "sp_req_1f8c2d3e4a5b6c7d",
    "api_version": "v1",
    "fetched_at": "2026-11-30T09:30:00Z",
    "cached": false
  }
}

An illustrative answer: live answers have the same shape, with the page's current data.

Every field, with its type, is in the API reference, and every error code in Errors.

Price

Each call costs 1 credit, a not-found answer too. Cached answers and other errors cost nothing, and credits never expire. New accounts start with 100 free credits. See pricing for the packs.

FAQ

How do I rebuild the thread?

Comments come in thread order. depth is 0 for a top-level comment and 1 for a reply to one; parent_id is the comment each reply answers.

How do I get the hidden replies?

more_replies counts the replies a "more replies" link hides. Send that comment's id as comment_id to get its thread, and page through it with page.next_cursor.

Which orders can I pick?

best (the default), top, new, controversial, old, or qa for Reddit's Q&A order.

Works with

On other platforms

Use cases

Reddit guides

Start free

Your first 100 credits are on us

Sign up, create a key and make your first call in a few minutes.

No credit card required