What is sec_uid on Douyin, and how is it different from uid and the Douyin ID?

sec_uid is the long ID starting with MS4wLjABAAAA in a Douyin profile link, which OneFeedAPI's account endpoints take. uid is the account's numeric ID, which the trend-index (巨量算数) endpoints take. The Douyin ID (抖音号) is the handle the user picks and can change. 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.

Open in ChatGPTOpen in Claude

Three IDs of one account

A profile's web link is https://www.douyin.com/user/<sec_uid>. As public open-source tools describe it, sec_uid is the stable key of an author, and the Douyin ID, the field unique_id, is never used as a key because users can change it.

IDLooks like (made up)In OneFeedAPI
sec_uidMS4wLjABAAAAexampleexampleexampleid of douyin.users.get and douyin.users.videos.list; returned as the account's id
uidA string of digitsid of douyin.index.creators.metrics and douyin.users.history; ext.uid of a Xingtu creator
Douyin ID (抖音号)Letters and digits the user picksReturned as username; not taken as an input

How to go from one to another

With a profile link, give it to douyin.users.get as url: the answer's id is the sec_uid, and username is the Douyin ID. Where the user has picked none, username is the number Douyin assigned.

For a creator on Xingtu, douyin.xingtu.creators.get with one Xingtu creator ID returns all three: account_id is the sec_uid, username the Douyin ID, and ext.uid the numeric ID, in the full view. The Xingtu creator ID itself is a fourth number, not the Douyin account's.

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.

Sources

What this page says of other services is from their own pages and documents, read on 2026-10-29.

  • MediaCrawler (open-source project): reading a Douyin profile link
  • Douyin_TikTok_Download_API (open-source project): FAQ and glossary

Start with one key.

253 endpoints on 21 platforms, from $0.0003 a call. Errors and timeouts are not charged.

Start free