Social media5 min readBy Purrkey teamUpdated

How to list a Reddit user's comments by username

Pull recent comments from three Reddit usernames and turn them into a review table with parent post titles, subreddits and scores

On this page

You have three Reddit usernames and a ceiling of 60 comments across them, and you need a shortlist of threads to join or quote. anyapi.reddit.user_comments returns one page of a user's comments per call, newest first by default, with the parent post title and subreddit attached to each item

The deliverable is a review table: one row per comment, with the thread it belongs to, its score and a note on whether to follow up. No run has been executed for this guide, so the rows below show the shape of the table, not findings

The worksheet and the example usernames

Example usernames, invented for this article: example_redditor_one, example_redditor_two and example_redditor_three. Swap them for real accounts before running anything, because a username that does not exist still returns a billed answer rather than a rejected request

idauthorcreatedUtcsubredditpostTitlebodyPreviewscorefollowUpNote
(comment id)example_redditor_one1762900000(subreddit name)(thread title)(up to roughly 300 characters)0join, quote or skip

Values here are placeholders showing the shape. The followUpNote column is yours to fill, or you can let the agent draft a one-line reason. Group rows by subreddit to see where a person spends time, and sort by score to put the most upvoted comments first

What the tool takes

username is required and comes from the Reddit profile URL without the u/ prefix

sort is optional and accepts new, top, hot or controversial, defaulting to new. limit is optional, from 1 to 100, default 25. cursor is optional and takes the nextCursor value from a previous response; omit it on the first page

Page size is the input limit to plan around. Some sources honor limit and others return their whole page of about 25 comments, and the contract says a page is never trimmed after the call. Ask for 25 and pass nextCursor back as cursor to continue exactly where the response ended. The contract lists these properties; the prompt below has the agent check the current input schema before running, so a field added later does not derail the job

Reading the output fields

found is the first check. When it is true, data.comments holds the page and data.nextCursor holds the cursor for the following page, or null when there are no more pages. When it is false, reason says not_found, and the contract calls that a successful call, not an error, with costUsd showing what it actually cost

Each comment item carries id, author, createdUtc, postId, postTitle, subreddit, score and bodyPreview. createdUtc is a UTC epoch timestamp in seconds, so multiply by 1000 for a JS Date. score is net upvotes minus downvotes at fetch time. subreddit is empty when the comment sits on a post hosted on a user's own profile (r/u_name), which has no subreddit

bodyPreview is where the tool's other limit bites. Depending on the source it is the full comment body in Markdown or a plain-text preview truncated to roughly 300 characters, cut mid-word, and it is empty on the occasional comment where the upstream returns no text. The endpoint carries no per-comment permalink either; for full comment bodies and comment URLs on a given post, the contract points to reddit.post_comments with the row's postId

For the same username's posts rather than comments, the companion guide at https://purrkey.app/blog/list-user-posts-by-username covers that direction

The agent prompt

Agent prompt
Set up https://purrkey.app/SKILL.md, then use Purrkey to list comments for
three Reddit usernames so I can review up to 60 comments in total. Check the
current inputs and price of anyapi.reddit.user_comments before running
anything. Call it once per username with sort new and limit 25. If a response
returns a nextCursor and that username still has fewer than 60 comments
collected, pass the cursor back as cursor for one more page. Stop when
nextCursor is null or the cap is reached. Return a table with id, author,
createdUtc, subreddit, postTitle, bodyPreview, score and followUpNote, with a
one-line reason to join, quote or skip in the last column. Do not post or
reply to anything.

example_redditor_one
example_redditor_two
example_redditor_three

Replace the example usernames with your own. Keep the first run to one username so you can see how many comments a page actually holds before you commit to three

Estimated tool cost

One price covers the job: anyapi.reddit.user_comments, called through POST /v1/runs with toolId anyapi.reddit.user_comments, unit max_call, up to $0.0012 per call, price revision anyapi-catalog-2026-11-05, read through the Purrkey catalog on November 13, 2026. The catalog defines max_call as "Maximum per call. Successful runs settle at the actual AnyAPI charge", so the totals below are ceilings

StepFormulaUnit pricePlanned quantityTotal
First page, one usernamecalls x max price$0.0012 per call1$0.0012
Three usernames, first page plus one follow-up page eachcalls x max price$0.0012 per call6$0.0072

The six-call plan is the one that matches the 60-comment ceiling: two pages per username at about 25 comments a page would pass 60 rows, so the prompt stops each username once the cap is reached. Model fees for the agent are not counted

Check the tool page before the first run

Open https://purrkey.app/tools/reddit?q=user_comments to confirm the current price and input schema, then paste the prompt with your own three usernames

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 a Reddit user's comments by username?

Call anyapi.reddit.user_comments with the username field, without the u/ prefix. The default sort is new, and each response returns data.comments plus a nextCursor you pass back as cursor for the next page.

What inputs does anyapi.reddit.user_comments take?

username is required. sort, limit and cursor are optional, with sort defaulting to new and cursor taken from a previous response's nextCursor.

Does the endpoint return a permalink for each comment?

No. The contract says there is no per-comment permalink from this endpoint. reddit.post_comments returns full comment bodies and comment URLs for a given post.

Why is the comment text cut off?

bodyPreview may be the full comment body in Markdown or a plain-text preview truncated to roughly 300 characters, cut mid-word, depending on the source.

How many comments come back in one call?

limit runs from 1 to 100 and defaults to 25, but some sources return their whole page of about 25 comments and the page is never trimmed after the call.

How much does it cost to review three Reddit usernames?

The three-username plan with one follow-up page each is six calls at up to $0.0012 per call, at most $0.0072. A single first page is one call, at most $0.0012.

What does found false mean?

It means the source states the user does not exist, or returned nothing for it, with reason set to not_found. The contract calls it a successful call, not an error, and costUsd shows what it actually cost.

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