Social media5 min readBy Purrkey teamUpdated

How to audit a Xiaohongshu user's note cadence by user ID

Get a paginated list of a Xiaohongshu user's notes with timestamps and engagement counts to audit posting cadence from one Purrkey call

On this page

You need the 40 most recent notes from one Xiaohongshu account, with timestamps and engagement counts, before you commit to a three-week content calendar. anyapi.rednote.user_notes returns those notes as normalized records with pagination, and each page you pull adds rows to the same worksheet

The deliverable is a table with one row per note, sorted by createdUtc, plus a computed column for the days since the prior note. This guide sets out the input, the output fields that drive the format and weekday decision, the paging step and the cost. No run has been executed for it, so the table below is a design, not a result

Example input and the worksheet design

Example input, invented for this guide. Replace it with the ID of the account you are auditing

FieldValue
userId5f8a1c2d3e4b5a6c7d8e9f01

The catalog describes the tool as: "List notes posted by a RedNote (Xiaohongshu) user and return normalized note records with pagination."

Values here are placeholders showing the shape

noteIdtitletypecreatedUtclikeCountcommentCountcollectCountshareCountauthorNicknamedays since prior note
(id)(or empty)normal or videoepoch seconds0000(name)0

Sort the rows oldest to newest on createdUtc and the gap column fills itself. A gap of 1 means back-to-back days, and a large gap marks the break you are looking for when you pick posting days to repeat

What the tool takes

userId is required and the contract describes it as the RedNote (Xiaohongshu) user ID. cursor is optional and takes a pagination cursor from the previous response. The catalog card shows the tool with its per-call price; the tool is called through POST /v1/runs with toolId anyapi.rednote.user_notes.

There is no name or handle input in the contract, so start from the numeric ID

Reading the output fields that drive the calendar

The response carries found, data and, when nothing comes back, reason. found is true when the user's notes were found. When found is false, reason holds not_found, which the contract defines as the source stating the target does not exist or returning nothing for it

Inside data sits the notes array plus the pagination fields. Each note record can carry noteId, title, type, createdUtc, updatedUtc, likeCount, commentCount, collectCount, shareCount, description, image, authorNickname, authorUserId and authorImage; only noteId is required

Three fields carry the decision. createdUtc is a UTC epoch timestamp in seconds, so multiply by 1000 for a JS Date before you compute gaps. type is the note type, for example "normal" or "video", which is what you group by when you compare engagement across formats. The counters likeCount, commentCount, collectCount and shareCount come back as integers. title and authorNickname are there so the finished table is readable in a review

Paging to 40 notes

Limit at this step: paging depends on two fields. Each response carries data.nextCursor and data.hasMore. Pass nextCursor back as cursor to continue, and read hasMore to see whether another page is available. nextCursor is null when that lane has no more pages, and data itself is null when nothing was found

Make the first call with userId on its own, look at how many notes came back and whether hasMore is true, then decide how many further calls the 40-note target needs. The cost section below uses a one-page and a four-page scenario

The agent prompt

Agent prompt
Set up https://purrkey.app/SKILL.md, then use Purrkey to list the 40 most
recent notes for one Xiaohongshu user. Check the current inputs and price
of anyapi.rednote.user_notes before running anything. Call it once with
the userId, then pass data.nextCursor back as cursor while data.hasMore
is true, stopping at 40 notes. Return a table with noteId, title, type,
createdUtc, likeCount, commentCount, collectCount, shareCount,
authorNickname and days since prior note, sorted oldest to newest so the
gap column computes. Report found and reason when nothing comes back.
Do not invent notes or counts.

userId: 5f8a1c2d3e4b5a6c7d8e9f01

Swap in your own user ID before the run

Estimated tool cost

The unit is max_call, defined in the catalog as "Maximum per call. Successful runs settle at the actual AnyAPI charge." Prices were read through the Purrkey catalog on November 13, 2026, price revision anyapi-catalog-2026-11-05, and the totals below are ceilings. Model fees for the agent are not counted

StepFormulaUnit pricePlanned quantityTotal
One user, first pagecalls x max price$0.012 per call1$0.012
One user, four pagescalls x max price$0.012 per call4$0.048

Both rows cover the same user. A lookup that comes back with found set to false is a successful call rather than an error, so it still bills, and the contract says costUsd is what it actually cost

Start with the first page

Run one call with your own user ID, check the page size and the hasMore flag, then decide whether four pages is the right ceiling for the calendar work. The tool page is anyapi.rednote.user_notes

For the field-by-field walkthrough of the notes output, see notes posted by a Xiaohongshu account

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 Xiaohongshu.
Explore Xiaohongshu tools and pricing

FAQ

How do I audit a Xiaohongshu user's note cadence by user ID?

Call anyapi.rednote.user_notes with the user's userId, pass nextCursor back as cursor to collect 40 notes, then sort the rows by createdUtc and compute the gap in days between consecutive notes.

What inputs does anyapi.rednote.user_notes take?

The contract documents userId as required, described as the RedNote (Xiaohongshu) user ID, and cursor as optional, taken from the previous response.

How do I get more than one page of notes?

Pass data.nextCursor back as cursor to continue. data.hasMore tells you whether another page is available, and nextCursor is null when that lane has no more pages.

What happens when the user has no notes or does not exist?

The response comes back with found set to false and reason set to not_found. The contract calls that a successful call, not an error, and costUsd is what it actually cost.

Which output fields drive a posting cadence decision?

createdUtc gives the posting time as a UTC epoch timestamp in seconds, type separates normal notes from video notes, and likeCount, commentCount, collectCount and shareCount are the engagement counters.

How much does it cost to audit 40 notes from one user?

At most $0.012 per call. One page is 1 call, at most $0.012, and the four-page scenario is 4 calls, at most $0.048. Those figures are ceilings, since successful runs settle at the actual AnyAPI charge.

Next step

Try this with Xiaohongshu

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 Xiaohongshu tools

Share this article