How to list a Douyin account's public posts
Pull a public Douyin account's posts with engagement counts, captions and pagination
On this page
You have a Douyin creator's secUserId and need the latest 20 public posts from that account before a partnership review, sorted with the newest first. One call to anyapi.douyin.user_posts returns a page of normalized posts with caption, canonical URL and engagement counts
The worksheet below is the deliverable: one row per post carrying createdUtc, caption, url, likes, comments, shares, saves and views. Those rows feed a go/no-go decision on the creator and show which posts you should open by hand. No run has been executed for this guide, so the table is a design, not a result
Example input and worksheet design
secUserId is required. The value below is invented for this article. Replace it with the sec_user_id of the account you are reviewing
Example input:
| Field | Value |
|---|---|
secUserId | MS4wLjABAAAAPurrkeyDemoDouyinUserSecId123456789 |
limit | 20 |
sort | newest |
The agent fills a table with these columns. Values here are placeholders showing the shape
| createdUtc | caption | url | likes | comments | shares | saves | views |
|---|---|---|---|---|---|---|---|
| (epoch s) | (caption) | (post URL) | 0 | 0 | 0 | 0 | 0 |
Twenty rows is enough to rank a creator's recent output and pick the handful of posts worth a manual read
Step 1: request the first page
Agents call it through POST /v1/runs with toolId anyapi.douyin.user_posts. Send secUserId with limit set to 20 and sort set to newest, and leave cursor out so you get the first page. sort also accepts most-popular if the review needs the strongest posts rather than the latest ones
The contract recommends values up to 20 for the requested page size, which is the limit that sits next to this step. It does not describe behaviour above that number, so plan the review around 20 posts per page and use pagination for more
Step 2: read the fields that drive the decision
The output carries found and data. found is true when posts were found. When it is false, reason is present and equals not_found, and the contract says a found: false answer is a successful call, not an error. data is null when none were found
Inside data, posts is populated whenever the provider has data for the entity. Each post has a required id, and createdUtc is a UTC epoch timestamp in seconds, so multiply by 1000 for a JS Date in milliseconds. views is described as the play count, while likes, comments, shares and saves are integer counts. caption and url give you the text and the canonical post link for the row
Post objects also carry durationMs, width, height, image and region, plus authorNickname, authorUniqueId, authorUserId, authorSecUserId, authorVerified and authorImage. Those author fields confirm you pulled the account you meant to review
Sort the 20 rows by views and by likes to fill the decision column. Posts that sit far below the rest of the page are the ones to open manually before the partnership call
Step 3: paginate when one page is not enough
nextCursor is the opaque cursor for the next page, or null when this lane has no more. hasMore says whether another page is available. Send the previous response's nextCursor back as cursor and repeat until hasMore is false or nextCursor is null. A raw integer cursor is still accepted if you already store one
The agent prompt
Set up https://purrkey.app/SKILL.md, then use Purrkey to list public posts
from a Douyin account. Check the current inputs and price of
anyapi.douyin.user_posts before running anything. Call it with the
secUserId below, limit 20 and sort newest, and no cursor on the first
call. If a second or third page is needed, pass the previous response's
data.nextCursor back as cursor and stop when data.hasMore is false or
nextCursor is null. Return a table with createdUtc, caption, url, likes,
comments, shares, saves and views, one row per post. Report found, hasMore
and nextCursor above the table, and do not invent rows when found is
false.
secUserId: MS4wLjABAAAAPurrkeyDemoDouyinUserSecId123456789Replace the example secUserId with the account you are reviewing
Estimated tool cost
Prices come from the Purrkey catalog, read on November 12, 2026. The tool's unit is max_call, which the catalog defines as "Maximum per call. Successful runs settle at the actual AnyAPI charge". The totals below are ceilings, not settled charges
| Step | Formula | Unit price | Planned quantity | Total |
|---|---|---|---|---|
| First page | calls x max price | $0.0012 per call | 1 | $0.0012 |
| Three pages | calls x max price | $0.0012 per call | 3 | $0.0036 |
Model fees for the agent are not counted. A found: false answer is still a call and settles at whatever AnyAPI actually charged
Next action
Open the tool page at Douyin user posts and run the first page against your creator's secUserId. If the review spans platforms, the companion guide on researching TikTok creators covers a similar pull
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 Douyin.FAQ
How do I list a Douyin account's public posts?
Call the Douyin user posts tool with the account's secUserId, a limit of 20 and sort set to newest. The response returns a page of posts with caption, canonical URL and engagement counts.
What inputs does the Douyin user posts tool take?
secUserId is required. limit is optional with a default of 20, sort is optional with newest as the default and most-popular as the other value, and cursor is optional and comes from the previous response's nextCursor.
How do I get the next page of Douyin posts?
Pass the previous response's data.nextCursor back as cursor. Stop when data.hasMore is false or nextCursor is null.
What does found false mean for a Douyin user posts call?
It means no posts were found. reason is then present and equals the not found value, and the contract treats that answer as a successful call rather than an error.
What fields come back for each Douyin post?
Each post has id, createdUtc, caption, url, likes, comments, shares, saves and views, plus media and author fields such as durationMs, width, height, region and authorNickname.
What does createdUtc contain?
createdUtc is a UTC epoch timestamp in seconds. Multiply it by 1000 for a JS Date in milliseconds.
How much does it cost to list 20 Douyin posts?
One page is at most $0.0012 at the listed max call price. A three-page pull is three calls, at most $0.0036.
Next step
Try this with Douyin
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.