# 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.

## 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.

| ID | Looks like (made up) | In OneFeedAPI |
| --- | --- | --- |
| `sec_uid` | `MS4wLjABAAAAexampleexampleexample` | `id` of `douyin.users.get` and `douyin.users.videos.list`; returned as the account's `id` |
| `uid` | A string of digits | `id` of `douyin.index.creators.metrics` and `douyin.users.history`; `ext.uid` of a Xingtu creator |
| Douyin ID (抖音号) | Letters and digits the user picks | Returned 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

- [Douyin user profile](https://onefeedapi.com/apis/douyin/users/get/) ($0.0020 / a call): Get a Douyin user's profile by account ID or profile link: name, handle, bio, follower, following and post counts, total likes, verification; in the full view also what the badge says, whether it is an organisation's or shop's (blue V), whether the profile has a product showcase, whether the account may sell live, and whether it is live now, with the room's ID.
- [Douyin user videos](https://onefeedapi.com/apis/douyin/users/videos/list/) ($0.0020 / a call): Get a page of the videos a Douyin account has posted, newest first: caption, engagement counts, time posted.
- [Douyin trend-index creator core metrics](https://onefeedapi.com/apis/douyin/index/creators/metrics/) ($0.0020 / a call): Get a Douyin creator's core figures from the platform's own index tool, by the account's numeric ID: new likes, shares and comments a day and the tool's own count of follows a day, on average over the last week and the last month, each as a ratio against the period before. The follows are not the net gain in followers, and come out larger. An account the tool has nothing on (every figure 0) is answered as not found.
- [Douyin Xingtu creator profile](https://onefeedapi.com/apis/douyin/xingtu/creators/get/) ($0.0040 / a call): Get a Douyin creator's profile on Xingtu by Xingtu creator ID: name, location, content categories, followers, gender; one ID also gives the Douyin account ID, handle, agency and content labels, several IDs (up to 50) give what an integrated and a custom video cost, their expected CPMs (in yuan) and the views expected of a video instead.

## 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

## More about Douyin

- [Douyin API](https://onefeedapi.com/apis/douyin/)
- [Douyin trend-index API](https://onefeedapi.com/apis/douyin/index/)
- [Douyin Xingtu API](https://onefeedapi.com/apis/douyin/xingtu/)
- [How do I export Douyin data?](https://onefeedapi.com/answers/export-douyin-data/)
- [What are aweme_id and modal_id on Douyin, and what is a v.douyin.com link?](https://onefeedapi.com/answers/douyin-aweme-id-modal-id/)
- [Is the Douyin search index a number of searches?](https://onefeedapi.com/answers/douyin-search-index-vs-search-count/)
- [What is the Douyin keyword index (Ocean Engine)?](https://onefeedapi.com/answers/what-is-douyin-keyword-index-ocean-engine/)
- [What is Douyin Xingtu?](https://onefeedapi.com/answers/what-is-douyin-xingtu/)
- [Douyin API for developers: third-party Douyin data APIs and what they return (2026)](https://onefeedapi.com/answers/douyin-third-party-data-apis/)
- [Douyin video download URL: getting a video's play address by API (2026)](https://onefeedapi.com/answers/douyin-video-play-url-api/)
- [Which social media data API is best for AI agents? Count the tokens a response takes (2026)](https://onefeedapi.com/answers/social-media-api-for-ai-agents/)
- [How to get Douyin keyword trends in bulk](https://onefeedapi.com/guides/douyin-keyword-trends/)
- [How to export Douyin video comments in bulk](https://onefeedapi.com/guides/douyin-video-comments/)
- [How to look up a Douyin creator's Xingtu rate card](https://onefeedapi.com/guides/douyin-xingtu-creator-rates/)
- [Does Douyin have an API? Get videos and comments with Python (2026)](https://onefeedapi.com/guides/douyin-api-python/)
- [SocialCrawl alternative for Douyin, Xiaohongshu and WeChat data](https://onefeedapi.com/compare/socialcrawl-alternative/)
- [How to choose a social media data API: failed-call charges, MCP and Chinese platforms](https://onefeedapi.com/compare/social-media-data-apis/)

---

Catalog revision dc959672dd18e2d0. [HTML version](https://onefeedapi.com/answers/douyin-sec-uid/)
