Introducing the Instagram APIRead more →

Reddit Comments API. Post comments and replies, page by page.

Post comments and replies, in thread order. We handle the proxies, blocks and platform changes.

Reddit Comments API at a glance

Returns the comments on a public Reddit post with their replies, in thread order and a page at a time, from the post's link or ID. Each has its text, author, posting and edit time, score (upvotes), depth and parent, awards, and whether it is by the post's author, pinned, a moderator's, collapsed or deleted. Sort by Reddit's own order, New, Old, Top, Controversial or Q&A. A comment's permalink returns that comment and its replies.

GET /v1/reddit/comments

Read the API reference
  • 1 credit per page, $0.75–$1.97 per 1,000 pages
  • 16 typed fields null when unknown
  • 200 post comments and replies per page, Reddit's own order for the post (Best, or the order its moderators suggest), each comment followed by the replies Reddit shows
  • url is all it needs, e.g. https://www.reddit.com/r/IAmA/comments/z1c9z/i_am_barack_obama_president_of_the_united_states/

Send one request. Get up to 200 post comments and replies back.

Copy the request in your language, or hand it to your agent. Sign up for an API key and your first 100 credits are free.

$ npm install socialtap
url = https://www.reddit.com/r/IAmA/comments/z1c9z/i_am_barack_obama_president_of_the_united_states/
GET /v1/reddit/commentsTry in
const params = new URLSearchParams({
  sort: "relevance",
  url: "https://www.reddit.com/r/IAmA/comments/z1c9z/i_am_barack_obama_president_of_the_united_states/",
});
const res = await fetch(`https://socialtap.dev/v1/reddit/comments?${params}`, {
  headers: { "x-api-key": process.env.SOCIALTAP_API_KEY ?? "" },
});
const body = await res.json();
if (!res.ok) throw new Error(`${body.error.code}: ${body.error.message}`);
const { data, page, meta } = body;
console.log(data, meta.credits_charged);
200 OK · GET https://socialtap.dev/v1/reddit/commentsLong arrays and strings are shortened here. Real responses are complete.Docs

One schema on 9 platforms.

The response reference lists every field, its type and when it is null. See the full schema.

  • Null means unknown

    A field Reddit doesn't show is null, never zero or an empty string, so a real zero always means zero.

  • What it accepts

    Reddit post URL: a post's page on any reddit.com host (www, old, new, np, m, sh), with or without its subreddit or slug, a /gallery/ link, a redd.it short link, an app share link (/r/<subreddit>/s/<code>), a v.redd.it video link, or the post's ID (t3_ prefix optional).

  • Write one parser

    Reddit, TikTok, Instagram and 6 more platforms answer in these fields, so the code that reads one reads them all.

platformstring
Platform ID (tiktok, youtube, …).
idstring
Platform-native comment ID (string; Reddit with its t1_ prefix).
post_idstring
ID of the post commented on (equals post.id).
parent_idstring
ID of the comment this replies to; null for top-level comments.
urlstring
Permalink, when the platform has one.
textstring
Comment body as plain text.
authorobject
The commenting account. An account the platform no longer names (a deleted account) has a null id and username and the platform's label as display_name (Reddit: [deleted]).
published_atstring
When the comment was posted, RFC 3339 UTC. Where the platform shows only a relative time ("3 weeks ago"), the latest time that label allows (the fetch time minus the stated amount), listed in approximate_fields.

What teams build with the Reddit Comments API.

  • Analyze the discussion under a post

  • Collect the answers in an AMA

  • Follow the replies to one comment

  • Summarize a thread with AI

Good to know before you build.

  • Comments come in thread order: each one is followed by the replies Reddit shows under it, and parent_id and platform_specific.reddit.depth place it in the thread.
  • Where Reddit shows a "more replies" link, platform_specific.reddit.more_replies_count says how many replies it holds back. The next pages bring them before the post's next top-level comment, so a walk to the end returns the whole tree.
  • Walking the whole tree takes several times the requests of replies=shown, because Reddit sends held-back replies a few at a time. replies=shown skips them.
  • On a thread with hundreds of top-level comments, a walk can leave the most deeply nested held-back replies out once its cursor is full. That page carries an items_omitted warning, more_replies_count still counts them, and that comment's url pages through them.
  • metrics.like_count is the comment's score (upvotes minus downvotes) when it isn't negative, and platform_specific.reddit.score has it either way. metrics.reply_count is the comment's direct replies when the page shows all of them. It is null when Reddit holds some back behind a "more replies" link, whose count includes their own replies.
  • Each page continues where the last one ended, so on a busy thread a comment posted during your walk can appear on a later page out of order, never twice.
  • A deleted account is author {display_name: "[deleted]"} with every other author field null. A deleted or removed comment that has replies stays in the thread with empty text and platform_specific.reddit.is_deleted true.
  • Posts that don't exist and posts of banned subreddits return not_found. Posts of private or quarantined subreddits return private_or_unavailable. A permalink to a comment that isn't in the post returns not_found.

1 credit per page. Failed requests are free.

Buy credits once and spend them on any endpoint, on any platform.

SourcePrice per successful pagePer 1,000 pages
Public page page1 credit$0.75–$1.97
  • Cache hits are free.
  • Credits from packs and top-ups never expire.
  • A monthly plan's credits are spent first, and what is left of them ends at each renewal.
  • Prices exclude tax: sales tax is added at checkout where it applies.
  • Outside the US, plans and packs are sold to businesses: checkout asks for your VAT, GST or other business tax ID.

Questions about the Reddit Comments API.

More in the API reference.

Does it return nested replies?
Yes. With replies=all, the default, a walk to the last page returns the whole tree, including the replies Reddit hides behind "more replies" links.
How much does the Reddit Comments API cost?
A page of up to 200 post comments and replies costs 1 credit. Every successful page is charged, empty pages included. SocialTap credits cost $0.75–$1.97 per 1,000, depending on the plan or pack.
How do I get the next page?
Repeat the same request with cursor set to page.next_cursor from the previous response, keeping the other parameters. When page.has_more is false there are no more pages. Cursors expire after 24 hours.

Try it on a link you already have.

Paste it in the playground, or copy the request into your code.

100free credits
  • No credit card
  • Failed requests are free
  • Works on all 218 endpoints
Start for free Read the docs