Social media6 min readBy Purrkey teamUpdated

How to list comments on a Reddit post

List a Reddit post's comments with author, body, score, timestamp, parent reply, and cursor paging

On this page

You have five Reddit posts to review and need the first page of comments from each one, with author, body, score, timestamp and parent reply. The work is a table you can sort by post, then by parentId, so a reply sits under the top-level comment it answers

The table below is the deliverable design: one row per comment, with a post label you add so five threads stay separate. No run has been executed for this guide. Values here are placeholders showing the shape, not findings from a live thread

Example input and table design

Example input: a real Reddit post URL you can open, supplied as the url field

The contract lists url as required. It accepts a full Reddit post URL on reddit.com; a gallery link is read as the post it belongs to, and a relative permalink is read as the same path on reddit.com. Use the URL of a post you can open

For five posts, keep a short label beside each URL, such as habit thread or launch thread. That label is not a field in the contract; it is a reader-added column that lets you group rows after the calls return

Post labelComment idAuthorBodyScorecreatedUtcparentIdComment url
habit thread(id)(author)(body)(score)(epoch seconds)(parent id or empty)(permalink)

The agent fills the same columns from data.comments. The body can contain Markdown, so keep it as text and do not paste it into a renderer until you need it. The comment URL is the permalink to that comment on reddit.com

Fetch the first page

Call anyapi.reddit.post_comments once per post. Agents call it through POST /v1/runs with toolId anyapi.reddit.post_comments; the catalog price is up to $0.0012 per call, with the unit max_call. Use one call for one post's first page, and five calls for five posts' first pages

The response has found and data. When data is present, read data.comments and data.nextCursor. When found is false, reason is not_found; the contract describes a found: false answer as a successful call, not an error. Mark that post as no result and move to the next URL

The first call returns a page of comments, not the whole thread. That is the point of the cursor field: you decide whether a second page is worth another call

Read the fields that drive the decision

The decision is which threads need a follow-up response. Start with parentId. It holds the ID of the comment this one replies to, without the t1_ prefix, and it is empty for a top-level comment that replies to the post itself. A non-empty parentId that matches another row's id means that row is a reply in that thread

Then read score, the net score (upvotes minus downvotes) on the comment at fetch time. Compare scores inside one thread after you group by parentId. A low score on a reply and a high score on its parent is a pattern to review by hand. The score is a snapshot, not a live count

createdUtc is a UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds. Use it to order comments inside a thread and to see whether a reply came late in the conversation

author is the commenter username without the u/ prefix. body is the comment text as Markdown. id is the Reddit comment ID in base-36, without the t1_ prefix. url is the permalink to the comment on reddit.com

A practical worksheet adds one reader column for manual notes. Fill it by hand after you group by parentId and read the body. The tool returns the comment data; it cannot decide which threads need a reply

Handle paging at the first-page step

Pagination uses an opaque nextCursor. The contract says data.nextCursor is the cursor for the next page of comments, or null when this lane has no more. To continue, pass it back as cursor in the next call

For the five-post review, the first page from each post is the planned scope. If a nextCursor is present and you need more comments, that is a second call for that post, billed at the same per-call price. If nextCursor is null, this lane has no more comments and you stop

The agent prompt

Agent prompt
Set up https://purrkey.app/SKILL.md, then use Purrkey to list the first page of comments for five Reddit posts. Check the current inputs and price of anyapi.reddit.post_comments before running anything. Call the tool once per post URL. Return a table with post label, comment id, author, body, score, createdUtc, parentId and comment url. Keep the post label as a reader-added column. If a response has found false, mark that post as not_found and continue. Do not request another page unless I ask.

Example URLs, invented; replace them with real Reddit post URLs:
POST_URL_1
POST_URL_2
POST_URL_3
POST_URL_4
POST_URL_5

The prompt asks for the table as the return value. The contract lists cursor as optional, so leave it out on a first-page run. If you later want another page, pass the previous nextCursor as cursor

Estimated tool cost

Prices are from the Purrkey catalog, read through the catalog on November 12, 2026. The unit is max_call: the catalog says "Maximum per call. Successful runs settle at the actual AnyAPI charge." The totals below are ceilings, not settled charges

StepFormulaUnit pricePlanned quantityTotal
First page for one post1 call x max price$0.0012 per call1$0.0012
First page for five posts5 calls x max price$0.0012 per call5$0.006
Five-post scope$0.006

The planned scope is five posts with one first-page call each. If you request a second page for a post, add one more call at up to $0.0012. Agent model fees are not counted in this table

Next action

Open the Reddit comments tool page at https://purrkey.app/tools/reddit?q=post_comments and run the five URLs with the prompt above

Get started by giving this to your agent

  • Claude Code
  • Codex
  • Gemini CLI
  • Cursor
  • GitHub Copilot
Set up https://purrkey.app/SKILL.md, then use Purrkey to show me what I can do with Reddit.
Explore Reddit tools and pricing

FAQ

How do I list the comments on a Reddit post?

Call the Reddit post comments tool with the full Reddit post url. The response returns data.comments with id, author, body, score, createdUtc, parentId and url, plus data.nextCursor for another page.

What input does the Reddit post comments tool take?

The contract lists url as required and cursor as optional. url is a full Reddit post URL; a gallery link is read as the post it belongs to, and a relative permalink is read as the same path on Reddit.

What does nextCursor mean in the response?

data.nextCursor is an opaque cursor for the next page of comments, or null when this lane has no more. Pass it back as cursor to continue.

What does an empty parentId mean?

parentId is the ID of the comment this one replies to, without the t1 prefix. It is empty for a top-level comment that replies to the post itself.

How much does it cost to list comments from five Reddit posts?

At the catalog price of up to $0.0012 per call, five first-page calls are at most $0.006. One first-page call is at most $0.0012.

What happens when the Reddit post is not found?

The response has found and data. When found is false, reason is the not-found value, and the contract describes a found: false answer as a successful call, not an error.

Can the tool return more than the first page of comments?

Yes. The response includes data.nextCursor; pass it back as cursor to request the next page. nextCursor is null when this lane has no more comments.

Next step

Try this with Reddit

The tool directory lists every endpoint with its current price. Inspect the inputs there, then let your agent run a small batch before scaling up.

See Reddit tools

Share this article