34 Douyin endpoints · MCP
Douyin MCP server
Brand teams, MCN agencies and sellers use Douyin data to see what is trending, read what buyers say in comments and size up creators. With the MCP server your AI does this from a plain question: it reads hot lists, videos, comments and accounts, and it can also read Ocean Engine Index (Juliang Suanshu) keyword trends and audiences.
Get an API key97.5% fewer tokens
Across 19 recorded live Douyin responses (2026-11-18), raw platform JSON is ~1.44M tokens vs ~169k via REST (88.3% fewer) and ~36k through this MCP server (97.5% fewer).
What to ask about Douyin
“Here is a Douyin share link: summarise the top comments and what people complain about.”
Uses douyin.videos.id_from_url → douyin.comments.list, about $0.004 for one call of each
“Which videos from small accounts went viral this week in the beauty niche?”
Uses douyin.videos.low_fan_viral, $0.002 a call
“How has search interest in "air fryer" moved over the last 30 days, and who searches for it?”
Uses douyin.index_keywords.history → douyin.index_keywords.audience, about $0.008 for one call of each
“From this creator’s profile link, list their 10 latest videos with likes and comments.”
Uses douyin.accounts.id_from_url → douyin.videos.list, about $0.004 for one call of each
“What is on the Douyin hot search list right now?”
Uses douyin.trends.hot, $0.002 a call
Good to know about Douyin
- Douyin works by IDs: a video has an aweme_id and an account a sec_uid. Paste share links as they are; the AI turns them into IDs first with the two "from URL" endpoints.
- Comments come in two levels. The comment list returns top-level comments; replies under one comment are a separate call.
- The Juliang Suanshu endpoints (index_*) give trends and audiences for keywords, brands and creators; they are the ones to use for market research rather than single videos.
Connect
Add this server address in your AI client: https://xtikapi.com/v1/mcp. In ChatGPT, Claude, Claude Code, Codex and Cursor you then sign in here and click Allow; the same address covers Douyin and every other platform. Step-by-step for each client
All 34 Douyin endpoints your AI can call
- Douyin video search API$0.02
douyin.videos.search· Search Douyin videos by keyword, with sort and publish-time filters - Douyin video details API$0.002
douyin.videos.detail· One Douyin video by ID: caption, author, plays, likes, comments and shares - Douyin comments API$0.002
douyin.comments.list· A page of comments on one Douyin video - Douyin account details API$0.002
douyin.accounts.detail· A Douyin account profile by UID - Douyin video list API$0.002
douyin.videos.list· Videos posted by one Douyin account, newest first - Douyin trending topics API$0.002
douyin.trends.hot· The Douyin hot search list right now - Douyin comment replies API$0.002
douyin.comment_replies.list· Replies under one Douyin comment, by video ID and comment ID: text, replier, likes, time posted - Douyin hashtag videos API$0.002
douyin.hashtag_videos.list· Douyin videos under a hashtag (challenge) ID, newest or hottest first - Douyin hashtag details API$0.002
douyin.hashtags.detail· One Douyin hashtag by ID: name, description, view and video counts - Douyin music videos API$0.002
douyin.music_videos.list· Douyin videos that use one sound, by music ID - Douyin account search API$0.002
douyin.accounts.search· Search Douyin accounts by keyword: nickname, follower count, verification, sec_uid - Douyin video play count API$0.002
douyin.videos.metrics· Play, like, share and download counts of a Douyin video by ID - Douyin related videos API$0.002
douyin.videos.related· Videos Douyin recommends next to one video - Douyin trending videos API$0.002
douyin.videos.trending· Douyin hot video chart from the official billboard - Douyin viral videos from small accounts API$0.002
douyin.videos.low_fan_viral· Douyin billboard of videos that went viral from small accounts - Douyin search suggestions API$0.02
douyin.keywords.related· Douyin search box suggestions for a keyword - Douyin follower trend API$0.002
douyin.accounts.history· Follower and engagement trend of a Douyin account over time, by sec_uid - Douyin account followers API$0.002
douyin.accounts.followers· A page of a Douyin account's followers, by sec_user_id - Douyin uid to sec_uid API$0.002
douyin.accounts.uid_to_sec_uid· Convert a numeric Douyin uid into its sec_user_id - Douyin video ID from link API$0.002
douyin.videos.id_from_url· Extract the aweme_id from a Douyin share link or video URL - Douyin sec_uid from profile link API$0.002
douyin.accounts.id_from_url· Extract the sec_user_id from a Douyin profile link - Douyin rising hot list API$0.002
douyin.trends.rising· Douyin rising hot list: topics climbing fastest right now - Douyin music chart API$0.002
douyin.trends.music· Douyin music chart: the sounds people search and use most - Douyin brand hot list API$0.002
douyin.trends.brands· Douyin brand hot list by category - Douyin keyword trend index API$0.006
douyin.index_keywords.history· Daily Douyin search index for up to several keywords over a date range - Douyin related keywords API$0.002
douyin.index_keywords.related· Keywords that rise and fall with one keyword on Douyin, from the trend index - Douyin keyword audience API$0.002
douyin.index_keywords.audience· Who searches a keyword on Douyin: age, gender, region, interests - Douyin trend index hot topics API$0.002
douyin.index_trends.list· Live hot topics from the Douyin trend index - Douyin trend index hot videos API$0.002
douyin.index_videos.search· Hot Douyin videos for a keyword from the trend index - Douyin brand trend API$0.002
douyin.index_brands.history· Daily trend lines of a brand on Douyin over a date range - Douyin brand comparison API$0.002
douyin.index_brands.metrics· Compare the trend index of several brands on Douyin - Douyin creator metrics API$0.002
douyin.index_creators.metrics· Core metrics of a Douyin creator from the trend index - Douyin creator audience API$0.002
douyin.index_creators.audience· Follower profile of a Douyin creator from the trend index - Douyin creator top videos API$0.002
douyin.index_creators.videos· A Douyin creator's top videos in a date range, from the trend index
Douyin questions we answered
- Douyin scraper keeps getting CODE 429: what actually works?
- What does "failed to get user data, get a new ttwid from the web" mean for Douyin?
- TikTokDownloader Douyin search always returns empty results: why?
- f2 Douyin download fails with Client error '403 Forbidden': how to fix it?
- How often should a Douyin scraper change its cookie, and how fast can it request?
- Douyin_TikTok_Download_API works locally but returns no video after Docker deploy: why?
Questions
Can the AI read the replies under a comment, not just the comments?
Yes. It lists the comments, then calls the reply list with the video ID and the comment ID for any comment you care about. Each page of replies is one call.
Can it compare two brands on Douyin?
Yes, with the Juliang Suanshu brand endpoints: one returns a brand’s daily trend, the other compares brands side by side. Ask "Compare brand A and brand B on Douyin over the last month".
What does it cost to use Douyin through MCP?
find and describe are free; each call costs the endpoint's price, $0.002 to $0.02 a call. Each question above shows roughly what it costs. You pay only when the platform answers; errors are free, and new accounts get $0.50 of trial credit.
Does Douyin have an official API for this?
Douyin's open platform works for accounts that authorize your app, mostly to post and to read your own data. It has no call for searching or reading other people's public videos and comments.