How to list a Douyin hashtag's videos by hashtag ID
Fetch the first page of a Douyin hashtag's video list by hashtag ID and record status fields before outlining returned themes
On this page
You have five Douyin hashtag IDs and need the first page of videos for each one. The job is to call tikhub.douyin.app.v3.fetch_hashtag_video_list once per ID with the default count, then fill a table that tells you which hashtag deserves deeper research. The table below is the deliverable design; values are placeholders showing the shape
Example input and deliverable table
Example hashtag ID: 1588437536045069 (#在抖音记录美好生活). Replace it with the IDs from your own list
The tool takes a query object. query.ch_id is required and should be the Douyin hashtag ID as text. query.count, query.cursor and query.sort_type are optional and default to 10, 0 and 0. Agents call it through POST /v1/runs with toolId tikhub.douyin.app.v3.fetch_hashtag_video_list
| Hashtag ID | Label | status_code | status_msg | impr_id | theme |
|---|---|---|---|---|---|
| 1588437536045069 (Example) | #在抖音记录美好生活 | (integer) | (supplier message) | (log id) | (one-line outline or none) |
One row per hashtag ID
Fetch the first page for each hashtag ID
Call the tool once per ID. Use the default count of 10 for the first page, cursor 0 and sort_type 0. Keep the ch_id as a string; do not turn it into a number. The call is the same for each row, so the five-ID job is five calls. For a keyword-based path, the companion article is search Douyin videos by keyword
Successful empty results are charged. That limit sits on this fetch step: a response with no usable video page still settles as a paid call under the price rule. The rule text says "Fixed per-call price; successful empty results are charged." The one real call described below settled at $0.001 with status_msg 参数不合法
Read the output fields that drive the decision
The output is the supplier's raw JSON with no fixed schema. The contract observed these keys on one run: data.log_pb.impr_id, data.status_msg and data.status_code
Check status_code first, then read status_msg for the supplier message. Keep impr_id next to the row as the log identifier. Field names for video items are not fixed in the contract, so the first page is where the agent learns them
For the row decision, keep the status fields even when the response is an error. A row with an error status is a row that needs a corrected ch_id or a retry, not a row with invented themes. The single run below shows why this matters
What one real call returned
Run date: 2026-11-13. Input sent: {"query": {"ch_id": "1588437536045069", "count": 10, "cursor": 0, "sort_type": 0}}. Billing: status SETTLED, charged 0.001 USD against a ceiling of 0.001 USD. Top-level keys of data: log_pb, status_msg, status_code. data.status_msg was "参数不合法". data.status_code was 5. No item count was recorded in the run facts. The recorded keys do not include video item fields
The agent prompt
Set up https://purrkey.app/SKILL.md, then use Purrkey to fetch the first page of a Douyin hashtag video list for each of five hashtag IDs. Check the current inputs and price of tikhub.douyin.app.v3.fetch_hashtag_video_list before running anything. Call the tool once per ID with query.ch_id set to the hashtag ID as text, count 10, cursor 0 and sort_type 0. Read the field names from the first page before filling theme. Return a table with hashtag ID, status_code, status_msg, impr_id and theme. Mark theme as none when the response has no usable video page. Do not infer themes from an error message. Example ID to replace: 1588437536045069 (#在抖音记录美好生活). Add the other four IDs from your list.The prompt keeps the table shape and the error handling in one place. Swap the example ID for your five IDs before the run
Estimated tool cost
The catalog price is $0.001 per call. The max_call unit means "Maximum per call. Successful runs settle at the actual AnyAPI charge." The totals below are ceilings, not settled charges. Model fees for the agent are not counted
| Step | Formula | Unit price | Planned quantity | Total |
|---|---|---|---|---|
| Single hashtag first page | calls x max price | $0.001 per call | 1 | $0.001 |
| Five hashtag IDs | calls x max price | $0.001 per call | 5 | $0.005 |
The five-ID plan is at most $0.005. The single-ID check is at most $0.001. If you stop after the first error row, you still pay for the call that produced it
Fetch the first hashtag page
Start with one ID, then run the other four from the Douyin hashtag video list tool page
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 hashtag's videos by hashtag ID?
Call tikhub.douyin.app.v3.fetch_hashtag_video_list once per ID with query.ch_id set to the hashtag ID as text. The optional count, cursor and sort_type fields default to 10, 0 and 0.
What inputs does tikhub.douyin.app.v3.fetch_hashtag_video_list take?
It takes a query object. query.ch_id is required; query.count, query.cursor and query.sort_type are optional and default to 10, 0 and 0.
What output fields should I check?
Check data.status_code first, then data.status_msg for the supplier message. Keep data.log_pb.impr_id as the log identifier and fill theme from the returned video fields.
What did the one real call return?
The call sent ch_id 1588437536045069 with count 10, cursor 0 and sort_type 0. It settled at 0.001 USD against a ceiling of 0.001 USD and returned top-level data keys log_pb, status_msg and status_code, with status_msg 参数不合法 and status_code 5.
How much does it cost to check five hashtag IDs?
Five calls at $0.001 per call are at most $0.005. A single hashtag first page is at most $0.001, and agent model fees are not counted.
Are empty results charged?
Yes. Successful empty results are charged under the fixed per-call price rule.
Can I get video themes from an error response?
No. The one real call returned status_code 5 and status_msg 参数不合法, and the recorded keys do not include video item fields, so theme should be marked none rather than inferred.
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.