Social media5 min readBy Purrkey teamUpdated

How to fetch Douyin account fan trends by sec_uid

Fetch an account's trend points and average for new likes, works, comments, or shares to compare account activity

On this page

You have three Douyin creators to compare and one sec_uid for each, and you need their new-like trend to decide who to approach first. One call per creator returns dated points plus an average, so three calls turn into a ranked shortlist

The deliverable table design

The worksheet is one row per trend point, with the account it belongs to and its average repeated beside it. Start from three example inputs, invented and labelled, with placeholder ids standing in for the real ones:

Creatorsec_uid (Example)optiondate_window
Creator AEXAMPLE_SEC_UID_A224
Creator BEXAMPLE_SEC_UID_B224
Creator CEXAMPLE_SEC_UID_C224

Replace the placeholders before running. The filled table has these columns, with values here as placeholders showing the shape

sec_uiddatetimevalueavgPriority
EXAMPLE_SEC_UID_A(integer)(integer)(number)high, medium or low
EXAMPLE_SEC_UID_B(integer)(integer)(number)high, medium or low

Inputs the tool takes and how to read the output

The request body wraps a query object, and query.sec_uid is required: the account's sec_id. Two optional fields change the series. query.option defaults to 2, described in the contract as 2 new likes, 3 new works, 4 new comments and 5 new shares. query.date_window defaults to 24 and takes 1 or 24, described as one point per hour or one point per day. The call goes to POST /v1/runs with toolId tikhub.douyin.billboard.fetch_hot_account_trends_list

Keep option at 2 and date_window at 24 on each of the three calls, so the creators are measured against the same metric and the same grain

The output is the supplier's raw JSON with no fixed schema, so read the field names from the first response instead of assuming them. On the single run recorded below, data held an avg number and a trends array whose objects carried value and datetime. The contract types both item fields as integers. avg is what you rank on. trends is what tells you whether that average hides a spike near the start of the window or a collapse toward the end, and that shape is worth a line in your notes before you contact anyone

Comparing three creators, and the charge on empty results

Run the three calls, then sort by avg. A creator whose average clears the other two by a wide margin is the one to approach first. Two averages close together mean the trend shape decides, so read the points before you pick

The limit lands at this step: successful empty results are charged at $0.001 per call. A sec_uid that resolves to no trend points still costs a call, so a wrong id is paid for. Check the string against the profile you pulled it from, and run the creator you care about most first

What one real call returned

One call was made for this article on 2026-11-13. Input sent: {"query": {"date_window": 24, "option": 2, "sec_uid": "MS4wLjABAAAA8U_l6rBzmy7bcy6xOJel4v0RzoR_wfAubGPeJimN__4"}}. Billing settled at 0.001 USD against a ceiling of 0.001 USD

data had two top-level keys, avg and trends. data.avg was 7193553.539325843. data.trends was an array with 89 items, and its first item had the keys value and datetime

The agent prompt

Agent prompt
Set up https://purrkey.app/SKILL.md, then use Purrkey to fetch fan trends
for three Douyin creators. Check the current inputs and price of
tikhub.douyin.billboard.fetch_hot_account_trends_list before running
anything. Send one call per creator with query.option 2 and
query.date_window 24, using the sec_uid values below. Read the field
names from the first response. Return a table with sec_uid, datetime,
value and avg, one row per trend point, and leave the rows empty for a
creator whose response has no trend points. Do not invent values.

Creator A: EXAMPLE_SEC_UID_A
Creator B: EXAMPLE_SEC_UID_B
Creator C: EXAMPLE_SEC_UID_C

Swap the three placeholder ids for real sec_uids. Run one creator first, confirm the field names match the columns your table expects, then send the other two

Estimated tool cost

The catalog lists $0.001 per call as a max_call ceiling: "Maximum per call. Successful runs settle at the actual AnyAPI charge". The totals below are ceilings, not settled charges

StepFormulaUnit pricePlanned quantityTotal
Single creator trend checkcalls x price$0.001 per call1$0.001
Compare three creatorscalls x price$0.001 per call3$0.003

The rule text says the price is fixed per call and that successful empty results are charged, so the charge does not move with the number of points. Agent model fees are not counted here

Next action

Open https://purrkey.app/tools/douyin?q=fetch_hot_account_trends_list and run the creator you care about most, then set the other two against it. If a spike sends you looking for the posts behind it, the companion guide sits at https://purrkey.app/blog/list-douyin-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 Douyin.
Explore Douyin tools and pricing

FAQ

How do I fetch Douyin account fan trends by sec_uid?

Send one call per account with query.sec_uid set to the account's sec_id, plus the optional query.option and query.date_window. The response carries dated trend points and an average for the chosen metric.

What does the option field change?

The contract describes query.option as 2 new likes, 3 new works, 4 new comments and 5 new shares, with a default of 2.

What does date_window 24 mean?

query.date_window takes 1 or 24 and defaults to 24. The contract describes these as one point per hour or one point per day.

What fields come back in the response?

The output is the supplier's raw JSON with no fixed schema. On the one recorded run, data held an avg number and a trends array, and the first item carried value and datetime.

How much does it cost to compare three Douyin creators?

The catalog lists $0.001 per call, so three calls are $0.003 at most. Agent model fees are not counted.

Am I charged when an account returns no trend points?

Yes. Successful empty results are charged at $0.001 per call, so check the sec_uid string before the run.

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.

See Douyin tools

Share this article