How do I convert a Douyin sec_uid to a uid, and back? (2026)
1 call does it: give douyin.users.get the sec_uid as id and add view=full, and ext.uid in the answer is the numeric uid, at $0.0020. A profile link works as url too. Going back from a uid takes 2 calls, and works where douyin.users.history has data for that account. OneFeedAPI reads Douyin with 41 endpoints, from $0.0020 a call; a failed call is not charged, and the free trial covers up to 333 calls.
Call https://onefeedapi.com/v1/douyin/users/get with id set to the sec_uid and view=full. The uid is at data.item.ext.uid, which needs view=full: without it there is no ext. Do not take username for it: that is the Douyin handle (抖音号), and it is often digits too.
From a uid back to a sec_uid
douyin.users.history with id set to the uid answers with url, the account's profile link. Pass that link to douyin.users.get as url, and data.item.id is the sec_uid. That is $0.0020 and $0.0020, $0.004 in all. When tried, accounts over thirty thousand followers worked.
Which endpoint wants which
They are two IDs of one account, and an endpoint refuses the other kind.
ID
Looks like
Taken by
sec_uid
A long string starting with MS4w
douyin.users.get and douyin.users.videos.list, as id. douyin.users.search gives it from a name
uid
A string of digits
douyin.users.history and douyin.index.creators.metrics, as id
What a batch comes to
The uid for 200 accounts is 200 calls at $0.0020, $0.40. Their 7-day history adds 200 at $0.0020, $0.40, so $0.80. A failed call is not charged.
Why OneFeedAPI
Steady: endpoints were available 99.9% of the last 30 days, on a public status page you can check.
Fast: a paid call took 2.2 seconds at the median over the last 7 days (counted 2026-11-06).
Fewer tokens: across 36 endpoints on Douyin, one recorded real response each, the platform's own JSON comes to 2.4M tokens and what an AI reads through OneFeedAPI's MCP server to 72k, 97% fewer; the JSON of a direct API call is 96% fewer too (counted 2026-11-06). Every platform answers in one shape: the author in author, counts in metrics, the next page in page.next_cursor, so another platform needs no new parser.
See before you pay: every endpoint's page shows a recorded real response, field by field.
Spending you control: a failed call is not charged; each key can have a limit, X-Max-Price caps one call, and the same Idempotency-Key within 24 hours is never charged twice.
Ready for AI: a remote MCP server listed in the official MCP registry as com.onefeedapi/mcp, usable from Claude, Cursor and ChatGPT.
Free trial of up to 333 calls, no card.
Endpoints
Each with its price; every page has the parameters, the fields and a recorded response.