# What is ttwid on Douyin? (2026)

As of 2026, ttwid is a cookie on Douyin's web pages. We found no public explanation from Douyin; the open-source f2 project calls it a value requests must carry and manages it with msToken. With a data API you do not fetch or keep it: you give a link or a keyword, and a video's details are $0.0020. DataXAPI reads Douyin with 36 endpoints, from $0.0020 a call; a failed call is not charged.

Updated 2026-11-04

## Why you run into it

You see it in the Cookie header of a Douyin request, or in the settings of a tool you run yourself. DouyinLiveRecorder's Douyin requests carry one, and f2 reads it from an answer's cookies and tells you to update its setting when the check does not pass. It usually comes up with `msToken` and `a_bogus`, which are separate things. How it is obtained is not something we cover.

## If you would rather not deal with it

Send your key and the parameters the endpoint lists: `url` for `douyin.videos.get` at $0.0020, `url` for `douyin.videos.comments.list` at $0.0020 a page, `query` for `douyin.videos.search` at $0.0200 a page. No cookie of yours. 500 videos read by link come to $1, and a failed call is not charged.

## Endpoints

- [Douyin video detail](https://dataxapi.com/apis/douyin/videos/get/) ($0.0020 / a call): Get one Douyin video or image post by ID or link: caption, author, engagement counts, time posted.
- [Douyin video comments](https://dataxapi.com/apis/douyin/videos/comments/list/) ($0.0020 / a call): Get a page of comments on a Douyin video: text, commenter, likes, reply count, time posted.
- [Douyin video search](https://dataxapi.com/apis/douyin/videos/search/) ($0.0200 / a call): Search Douyin videos by terms, a page at a time, sorted by relevance, newest or most liked and filtered by time posted: caption, author with follower count, engagement counts.

## How-to guides

- [How to export Douyin video comments in bulk](https://dataxapi.com/guides/douyin-video-comments/)

## Sources

What this page says of other services is from their own pages and documents, read on 2026-11-04. Prices and features change: check the source before you decide.

- [f2 (open-source project): Douyin utilities](https://github.com/Johnserf-Seed/f2/blob/main/f2/apps/douyin/utils.py)
- [DouyinLiveRecorder: its request headers](https://github.com/ihmily/DouyinLiveRecorder/blob/main/src/spider.py)

## More about Douyin

- [Douyin API](https://dataxapi.com/apis/douyin/)
- [How do I export Douyin data?](https://dataxapi.com/answers/export-douyin-data/)
- [What is sec_uid on Douyin, and how is it different from uid and the Douyin ID?](https://dataxapi.com/answers/douyin-sec-uid/)
- [What are aweme_id and modal_id on Douyin, and what is a v.douyin.com link?](https://dataxapi.com/answers/douyin-aweme-id-modal-id/)
- [Is the Douyin search index a number of searches?](https://dataxapi.com/answers/douyin-search-index-vs-search-count/)
- [What is the Douyin keyword index (Ocean Engine)?](https://dataxapi.com/answers/what-is-douyin-keyword-index-ocean-engine/)
- [What is Douyin Xingtu?](https://dataxapi.com/answers/what-is-douyin-xingtu/)
- [Can Douyin's open platform read other people's videos and comments? (2026)](https://dataxapi.com/answers/douyin-open-platform-api/)
- [How do I check a keyword's heat on Douyin and Xiaohongshu before advertising? (2026)](https://dataxapi.com/answers/douyin-xiaohongshu-keyword-heat/)
- [How do I export all of a Douyin creator's video data? (2026)](https://dataxapi.com/answers/export-douyin-creator-videos/)
- [How do I export Douyin comments in bulk to find what users want? (2026)](https://dataxapi.com/answers/export-douyin-comments-user-needs/)
- [How do I find Douyin videos that took off from small accounts, and can I pull them in bulk? (2026)](https://dataxapi.com/answers/douyin-low-fan-viral-videos/)
- [What are a_bogus and X-Bogus on Douyin? (2026)](https://dataxapi.com/answers/douyin-a-bogus-x-bogus/)
- [What is msToken on Douyin? (2026)](https://dataxapi.com/answers/douyin-mstoken/)
- [Which Douyin API should I use for search, accounts and comments? (2026)](https://dataxapi.com/answers/which-douyin-api-to-use/)
- [How do I pull Douyin's hot-topic data by program? (2026)](https://dataxapi.com/answers/douyin-hot-topics-by-program/)
- [How do I use AI to audit and review an account? (2026)](https://dataxapi.com/answers/ai-account-audit-and-review/)
- [How do I filter Xingtu creators in bulk and see their rates? (2026)](https://dataxapi.com/answers/douyin-xingtu-creators-bulk-filter/)
- [What are verifyFp and s_v_web_id on Douyin? (2026)](https://dataxapi.com/answers/douyin-verifyfp-s-v-web-id/)
- [How do I convert a Douyin sec_uid to a uid, and back? (2026)](https://dataxapi.com/answers/douyin-sec-uid-to-uid/)
- [How to get Douyin keyword trends in bulk](https://dataxapi.com/guides/douyin-keyword-trends/)
- [How to look up a Douyin creator's Xingtu rate card](https://dataxapi.com/guides/douyin-xingtu-creator-rates/)

---

Catalog revision bf04cdef3b75e745. [HTML version](https://dataxapi.com/answers/douyin-ttwid/)
