How to page a Douyin user's homepage videos
Fetch a Douyin user's homepage video pages with sort and cursor controls for a review table
On this page
You have one Douyin creator's sec_user_id and need the first three pages of that creator's homepage videos for a content-theme review. The deliverable is a table with one row per video and columns for desc, city, rate, music.title, video.duration and a relevance note you add
The table feeds a decision about which content themes to prioritize in a competitor brief. The values below are a design, not a result
The task and the review table
Start with the first page at max_cursor 0, then page until has_more is false or you have three pages. The review table is the working file: one row per video, with the six columns below. Values here are placeholders showing the shape
| desc | city | rate | music.title | video.duration | Relevance note |
|---|---|---|---|---|---|
| (example caption) | (city code) | (integer) | (track title) | (integer) | (theme and priority) |
The desc column is where you read the video caption for a theme. city, rate, music.title and video.duration fill from the same item. The relevance note is yours: mark the theme and whether it belongs in the competitor brief
Input and paging controls
tikhub.douyin.app.v3.fetch_user_post_videos is a POST tool called through POST /v1/runs with toolId tikhub.douyin.app.v3.fetch_user_post_videos. Its query object requires query.sec_user_id. The optional query fields include query.channel with default normal, query.count with default 20, query.max_cursor with default 0 and query.sort_type with default 0. Get the sec_user_id from the Douyin user URL or an existing sec_user_id record
Example input: set query.sec_user_id to the creator you are reviewing
Limit for the paging step: max_cursor and has_more control the loop, and count defaults to 20 per page. Send max_cursor 0 on the first call, then send the data.max_cursor value from the prior page. Stop when data.has_more is false or after three pages
If you need a single page rather than a paged set, the companion guide at https://purrkey.app/blog/list-douyin-user-posts covers that
Reading the output for a decision
The output is the supplier's raw JSON with no fixed schema. Read field names from the first page before you map columns. The field names used here were observed on the single run reported below
At the top level of data, has_more and max_cursor drive paging. aweme_list holds the video items. Inside each item, desc, city, rate, music.title and video.duration fill the review table. Check status_code and status_msg before you treat a page as usable
The decision rule is simple: a page with has_more false ends the loop. If has_more is not false and max_cursor is present, send that max_cursor on the next request. An empty aweme_list is a successful result and is still charged as one call. The relevance note is the column that turns the fetched rows into a theme priority list for the brief
What one real call returned
A call was run on 2026-11-13. Input sent: {"query": {"sec_user_id": "MS4wLjABAAAA8U_l6rBzmy7bcy6xOJel4v0RzoR_wfAubGPeJimN__4", "channel": "normal", "count": 10, "max_cursor": 0, "sort_type": 0}}. Billing status was SETTLED, charged 0.001 USD against a ceiling of 0.001 USD. Top-level keys in data were uid, extra, log_pb, sec_uid, version, has_more, aweme_list, max_cursor, min_cursor, status_msg, post_serial, status_code, request_item_cursor, replace_series_cover. data.aweme_list was an array with 10 items. data.has_more was 1. data.max_cursor was 1794471001000. data.min_cursor was 1794497884000. data.status_code was 0. data.status_msg was an empty string. data.uid was "104255897823". data.sec_uid was the same string sent in the input. data.version was "normal". data.post_serial was 2. data.request_item_cursor was 0. data.replace_series_cover was 1
The agent prompt
Set up https://purrkey.app/SKILL.md, then use Purrkey to fetch three pages of homepage videos for the Douyin creator with sec_user_id MS4wLjABAAAA8U_l6rBzmy7bcy6xOJel4v0RzoR_wfAubGPeJimN__4. Check the current inputs and price of tikhub.douyin.app.v3.fetch_user_post_videos before running anything. Call the tool with query.sec_user_id set to the value above, query.channel "normal", query.count 20, query.max_cursor 0 and query.sort_type 0. Read field names from the first page. Use data.has_more and data.max_cursor from each page to request the next page. Stop when data.has_more is false or after three pages. Return a table with columns desc, city, rate, music.title, video.duration and an empty relevance note column. Do not invent rows.Estimated tool cost
Prices from the Purrkey catalog, read November 13, 2026. The tool is listed at $0.001 per call, a fixed per-call price; the rule text says "Fixed per-call price; successful empty results are charged." Where a catalog entry uses the max_call unit, that unit means "Maximum per call. Successful runs settle at the actual AnyAPI charge." This entry does not use that unit, and the totals below are ceilings, not settled charges
| Step | Formula | Unit price | Planned quantity | Total |
|---|---|---|---|---|
| First page only | calls x per-call price | $0.001 per call | 1 | $0.001 |
| Three pages with cursor | calls x per-call price | $0.001 per call | 3 | $0.003 |
| Three-page plan | $0.003 |
The three-page scenario uses three calls at $0.001 per call, so its ceiling is $0.003. Model fees for the agent are not counted
Next action
Run the first page with the Example sec_user_id, then page until data.has_more is false or you have three pages. Open the tool page to start: https://purrkey.app/tools/douyin?q=fetch_user_post_videos
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 page a Douyin user's homepage videos?
Call the tool with query.sec_user_id, query.count 20 and query.max_cursor 0, then use data.has_more and data.max_cursor from each page to request the next page. Stop when data.has_more is false or after three pages.
What input does tikhub.douyin.app.v3.fetch_user_post_videos take?
query.sec_user_id is required. query.channel, query.count, query.max_cursor and query.sort_type are optional, with defaults normal, 20, 0 and 0.
Which output fields drive paging?
data.has_more and data.max_cursor drive paging for the next request. data.aweme_list holds the video items that fill the review table.
How much does it cost to fetch three pages?
At $0.001 per call for 3 calls, the ceiling is $0.003. Successful empty results are charged.
What does query.count default to?
query.count defaults to 20 per page. The first request uses query.max_cursor 0.
What if data.status_code is not 0?
Check data.status_code and data.status_msg before you treat a page as usable. Both fields are in the output for that check.
Does the tool return a fixed schema?
No. The output is the supplier's raw JSON with no fixed schema, so read field names from the first page.
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.