Social media6 min readBy Purrkey teamUpdated

How to list a Reddit user's recent posts by username

List a Reddit user's posts by username with sort and cursor paging, then turn the rows into a topic-tagged table for a pitch or panel decision

On this page

You have one public Reddit account to review and need its 30 most recent posts, because a decision on whether to pitch a guest post or invite the account to a research panel depends on which topics it keeps returning to

No run has been executed for this guide. The tables below are a design, and the values in them are placeholders showing the shape

Example input and the review table

The example account is quiet_marble, an invented username. Swap in the real one and strip the u/ prefix before sending it

FieldExample value
usernamequiet_marble
sortnew
cursorleft empty for the first page

The deliverable is one row per post, with a topic column you fill yourself

titlesubredditcreatedUtcscorenumCommentspermalinktopic tag
(title)(name or empty)(epoch seconds)(integer)(integer)/r/...(your tag)

The topic tag is not a field the tool returns. You write it after reading titles and selftext bodies, which is why the table is worth building rather than skimming. Thirty rows is often three pages of ten, so plan a cursor walk instead of a single call

Posts that the account publishes on its own profile, r/u_name, appear in the feed with an empty subreddit. A blank cell in that column is expected and does not mean the row is damaged

What the tool takes

anyapi.reddit.user_posts is described in the catalog as listing a user's posts sorted by new, top, hot or controversial, with cursor pagination. The request Agents call it through POST /v1/runs with toolId anyapi.reddit.user_posts

username is required and is the Reddit username without the u/ prefix

sort is optional and defaults to new, which is the order you want when the question is what the account has been posting lately. The other three values reorder the same feed rather than widening it

cursor is optional. Leave it out for page one and pass back the nextCursor value from the response to continue

requireFields is optional and takes an array naming isArchived or isLocked. It is the one input that can change what you pay: when the cheapest source cannot return a named field, a dearer source serves the request and you are quoted and charged its price. Naming a combination that no single source returns together is refused as invalid input, with no charge. On a paginated walk it applies to the first page only, and later pages stay with the source that page chose at the price it was quoted

Treat the contract as the current description of the request rather than a closed list of what the service accepts. The companion guide on fetching a Reddit user's public profile covers the account-level read that sits before this step

Reading the output fields that drive the decision

Start with found. When it is true, data.posts holds the page and data.nextCursor holds the cursor for the next one, or null when the feed is exhausted

Each post carries id, title, author, permalink and createdUtc as required fields. For the topic decision, createdUtc is a UTC epoch timestamp in seconds, so multiply by 1000 for a JavaScript date. score is the net score at fetch time and numComments is the comment count on the thread. A second run later can show different numbers for both

permalink is the reddit.com thread path, and it differs from url, which is the destination link for a link post or the thread URL for a self post. selftext is the body as Markdown and is empty on a link post, which is where the topic tag often has to come from the title alone

subreddit is the community name without the r/ prefix, and it is empty on own-profile posts. isArchived and isLocked are absent when the serving source does not report them, which the contract defines as unknown rather than false

One billing limit belongs at this step. A username that does not exist returns found as false with reason set to not_found and data as null. The contract calls that a successful call, not an error, and it is billed

The agent prompt

Agent prompt
Set up https://purrkey.app/SKILL.md, then use Purrkey to list posts for
the public Reddit account quiet_marble, sorted by new. Check the current
inputs and price of anyapi.reddit.user_posts before running anything.
Call it once, read data.nextCursor, and pass it back as cursor until you
have 30 posts or nextCursor is null. Return a table with title,
subreddit, createdUtc, score, numComments, permalink and an empty topic
tag column for me to fill in. If the user is not found, report found and
reason instead of retrying. Do not post, comment or vote.

Replace the example username with your own. If you also want to know whether threads still accept comments, add requireFields with isLocked and expect a possible price change

Estimated tool cost

Prices come from the Purrkey catalog, read on November 13, 2026. The unit is max_call, which the catalog defines as "Maximum per call. Successful runs settle at the actual AnyAPI charge". Totals below are ceilings, not settled charges

StepFormulaUnit pricePlanned quantityTotal
First pagecalls x max price$0.0012 per call1$0.0012
Three-page cursor walkcalls x max price$0.0012 per call3$0.0036

The 30-post plan assumes three pages. A walk that runs to six pages reaches at most $0.0072. A not-found username bills one call at the same ceiling. Agent model fees are not counted here

Where to start

Take the 30-post plan as written, run the first page, and confirm the account is the one you meant before paying for the rest. The tool page is at Reddit user posts

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 recent posts by username?

Call anyapi.reddit.user_posts with the username, without the leading u/ prefix, and sort set to new to get the most recent posts first. Read data.nextCursor from the response and pass it back as cursor to fetch the following page.

What inputs does anyapi.reddit.user_posts take?

It takes the required username, an optional sort of new, top, hot or controversial, an optional cursor from a previous response's nextCursor, and an optional requireFields array naming isArchived or isLocked.

How do I get the next page of a user's posts?

Take data.nextCursor from the response and send it back as the cursor input. A null nextCursor means there are no more pages.

What does found false mean on a Reddit user posts call?

It means the user's post feed was not returned, with reason set to not_found and data set to null. The contract treats that answer as a successful call, not an error, and it is billed.

How much does it cost to list 30 Reddit posts?

The listing is up to $0.0012 per call, so a single page is at most $0.0012 and a three-page cursor walk is at most $0.0036. Agent model fees are not counted.

Why is the subreddit empty on some posts?

Posts hosted on the user's own profile, r/u_name, are included in the feed and carry an empty subreddit. A blank cell there is expected.

Does requireFields raise the price of a Reddit user posts call?

It can. When the cheapest source cannot return a named field, a dearer source serves the request and you are quoted and charged its price.

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