# Douyin API

Search Douyin videos and creator profiles, look them up in bulk, or retrieve transcripts, download links, trending boards and their history, collections, live rooms, analytics, and ecommerce listings.

Use the creator identifier from video records for account lookups; `user_id` is the account's `secUid` (starting `MS4w`), not a nickname or Douyin ID; Xingtu lookups take `douyin_id`. Product search, detail, and current live discovery are separate from creator sales history. Transcripts, rankings and commerce signals describe different information.

- Request: POST https://api.everyinfra.com/api/v1/social with `{"platform": "douyin", "action": "<action>", "params": {...}}`
- Canonical page: [https://everyinfra.com/en/douyin-api](https://everyinfra.com/en/douyin-api?utm_medium=ai_doc&utm_campaign=page_md)
- Each capability uses the price recorded in the public catalog. The response includes the amount charged. Authentication failures, invalid parameters, failed calls, and empty results are not charged.

## Actions

### search — Search
Find Douyin videos for a search term. Get caption, hashtags, likes, comments, shares, saves, author details and a signed play link. Douyin does not publish play counts. So `view_count` is usually absent or 0 and never shows real plays. Judge reach by likes, comments and shares.
- Sync delivery · Price: $8.33 per 1,000 requests
- Each call returns one page of up to 10 rows. For the next page, pass next_page_token back as page_token with the other parameters unchanged; each page is one call.
- Parameters:
  - `keyword` (required): Search term for the video search action, passed as a string, for example `latte art`. It finds videos; it is not an account nickname or a video ID.
  - `page_token` (optional): Page token. To start paging, send an empty string `page_token=""`; then pass back the previous response's `next_page_token` exactly as received to get the next page, keeping `keyword`, `sort` and `publish_time` unchanged. Each page is one call and comes as a whole Douyin result page, not cut: a page usually holds about 10 videos, often a few more (fewer on the last page). Videos Douyin repeats from the previous page are left out. Tokens last 24 hours and only work for the same account and the same parameters; an expired or mismatched token returns 422, so start again from the first page. On the last page the response has no `next_page_token`. Without `page_token` the call is a single fetch of one page, usually about 10 videos, with no `next_page_token`.
  - `publish_time` (optional): Filters video search results by publishing time window. Allowed values are `unlimited` (default), `one_day` (last 24 hours), `one_week` (last 7 days), and `half_year` (last 6 months). One of: half_year, one_day, one_week, unlimited.
  - `sort` (optional): Sorts video search results. Allowed values are `relevance` (default), `newest` for the latest publish date, and `most_liked` for highest likes. Supports legacy compatibility aliases `general` (mapped to `relevance`) and `latest` (mapped to `newest`). One of: most_liked, newest, relevance.
- Returns fields: next_page_token, id, url, text, media_type, video_url, like_count, comment_count, share_count, collect_count, view_count, author_name, author_id, author_douyin_id, author_uid, author_bio, author_avatar_url, author_follower_count, cover_image_url, video_width, video_height, duration_seconds, region, hashtags, posted_at, platform, image_urls, duration_sec, hashtag_ids, search_rank, author_is_verified, author_following_count, author_like_count, author_video_count, author_ip_location, title, music, download_count, forward_count, is_pinned, is_ad, video_tags, video_resolution, animated_cover_url, city, city_code, location, text_language, video_bitrates, download_url, has_watermark, video_url_expires_at, permissions, author_gender, author_age
- Capability page: [https://everyinfra.com/en/douyin-api/search](https://everyinfra.com/en/douyin-api/search?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/douyin-api/search.md)

### profile — Profiles
Look up a Douyin account by secUid. Get nickname, handle, bio, follower, like and video counts, IP location, verification and shop status. Pass the secUid (often starting MS4w) in `user_id`, not a nickname or short ID. Videos come from `user_posts`.
- Sync delivery · Price: $0.56 per 1,000 requests
- Parameters:
  - `user_id` (required): The Douyin user's `secUid` string (typically starting with `MS4w`), not a nickname or short numerical Douyin ID. It can be obtained from an `author_id` field in search results or from a user profile URL. If the account has been deleted or banned (Douyin keeps only an empty shell profile), the call returns 200 with an empty result and `empty_reason` set to `account_unavailable`. It is not charged, and retrying the same account does not change the result. Requesting the same account again within 24 hours returns the same result and is also not charged.
- Returns fields: user_id, douyin_id, nickname, bio, url, follower_count, following_count, like_count, video_count, gender, ip_location, is_verified, avatar_url, uid, background_image_url, country, language, is_live, likes_given_count, has_shop, age, has_series, platform, verify_reason
- Capability page: [https://everyinfra.com/en/douyin-api/profile](https://everyinfra.com/en/douyin-api/profile?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/douyin-api/profile.md)

### user_posts — Posts by user
Track the videos a Douyin account publishes, newest first. Each video has caption, hashtags, length, engagement counts and publish time, plus `is_deleted` and `is_private` when Douyin reports them. Start paging with an empty `page_token`. Pass back each `next_page_token` within 24 hours. `since` sets an earliest publish date.
- Sync delivery · Price: $0.56 per 1,000 requests
- Each call returns one page of up to 20 rows. For the next page, pass next_page_token back as page_token with the other parameters unchanged; each page is one call.
- Parameters:
  - `user_id` (required): The Douyin user's `secUid` string (typically starting with `MS4w`), not a nickname or short numerical Douyin ID. Used to identify accounts for `profile`, `user_posts`, `user_mixes` and `user_overview`; can be obtained from an `author_id` field in search results or a user profile URL.
  - `page_token` (optional): Page token for `user_posts`: send an empty string `page_token=""` to start from the newest page, then pass back each response's `next_page_token` exactly as received, keeping the other parameters unchanged. Tokens last 24 hours and only work for the same account and parameters; the last page has no `next_page_token`. Pages hold about 20 rows, newest first, and skip the `since` lower bound; filter by `posted_at` on your side if you need a date window. Each page is one call.
  - `since` (optional): Sets a lower bound for video publish dates in `profile` and `user_posts` actions using the `YYYY-MM-DD` format. Filters videos retrieved for the request rather than account creation date. Omitting this parameter removes the date filter.
  - `until` (optional): Day to page back from, as `YYYY-MM-DD` in Beijing time (UTC+8). With it, the first page starts with posts published on or before that day, newest first, and pinned posts are not placed at the top. After that, pass each response's `next_page_token` back as `page_token` exactly as received, keeping the other parameters, `until` included, unchanged. Each page is one call. Cannot be sent together with `since`: for posts in a date range, page from `until` and stop once `posted_at` is earlier than the day you want. Starting from `until` may miss some posts published in roughly the last two weeks.
- Returns fields: next_page_token, id, url, text, media_type, video_url, like_count, comment_count, share_count, collect_count, view_count, author_name, author_id, author_douyin_id, author_uid, author_bio, author_avatar_url, author_follower_count, cover_image_url, video_width, video_height, duration_seconds, region, hashtags, posted_at, platform, image_urls, duration_sec, hashtag_ids, search_rank, author_is_verified, author_following_count, author_like_count, author_video_count, author_ip_location, title, music, download_count, forward_count, is_pinned, is_ad, video_tags, video_resolution, animated_cover_url, city, city_code, location, text_language, video_bitrates, download_url, has_watermark, video_url_expires_at, permissions, author_gender, author_age, is_deleted, is_private
- Capability page: [https://everyinfra.com/en/douyin-api/user_posts](https://everyinfra.com/en/douyin-api/user_posts?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/douyin-api/user_posts.md)

### video — Video details
Fetch one Douyin video's caption, hashtags, length, engagement counts, author profile, background music and publish time from its video link, plus `is_deleted` and `is_private` when Douyin reports them. The play link in `video_url` is signed and expires, so download promptly if you need to keep it.
- Sync delivery · Price: $0.56 per 1,000 requests
- Parameters:
  - `url` (required): Full URL of the target Douyin video, formatted as `https://www.douyin.com/video/<video_id>`. Do not pass user profile or search page URLs. If the video does not exist or cannot be viewed (deleted, set to visible only to the author, still under review, or the ID is wrong), the call returns 200 with an empty result and `empty_reason` set to `post_unavailable`. It is not charged. Requesting the same URL again within 1 hour returns the same result and is also not charged. The window is 1 hour because a video that is visible only to the author or under review may become visible later; a request after 1 hour looks the video up again.
- Returns fields: id, url, text, media_type, video_url, like_count, comment_count, share_count, collect_count, view_count, author_name, author_id, author_douyin_id, author_uid, author_bio, author_avatar_url, author_follower_count, cover_image_url, video_width, video_height, duration_seconds, region, hashtags, posted_at, platform, image_urls, duration_sec, hashtag_ids, search_rank, author_is_verified, author_following_count, author_like_count, author_video_count, author_ip_location, title, music, download_count, forward_count, is_pinned, is_ad, video_tags, video_resolution, animated_cover_url, city, city_code, location, text_language, video_bitrates, download_url, has_watermark, video_url_expires_at, permissions, author_gender, author_age, cart_products, is_deleted, is_private
- Capability page: [https://everyinfra.com/en/douyin-api/video](https://everyinfra.com/en/douyin-api/video?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/douyin-api/video.md)

### comments — Comments
Pull viewer comments on a Douyin video, with likes, reply count, IP region, hot-comment and author-liked flags, mentions and any images. Each comment can also carry the commenter's `author_douyin_id` and `author_is_verified`, `is_pinned` for a comment the author pinned, and `sticker_url` when it holds a sticker. Pass back `next_page_token` as `page_token` to page through the top-level comments.
- Sync delivery · Price: $0.56 per 1,000 requests (every 20 rows count as one call)
- Catalog values: defaultLimit=20, maxLimit=150. For some actions a limit controls pages or per-parent expansion, so it is not always the final row count. For the next page, pass next_page_token back as page_token with the other parameters unchanged; each page is billed by its row count, one call per 20 rows.
- Parameters:
  - `url` (required): Full URL of the target Douyin video, formatted as `https://www.douyin.com/video/<video_id>`. Fetches video details in `video`, comments in `comments`, the replies under one comment in `comment_replies` (the video the comment sits on), audio transcripts in `transcript`, the videos recommended next to it in `related_posts`, or its count history in `post_history`. Do not pass user profile or search page URLs.
  - `page_token` (optional): Page token for `user_posts` and `comments`. To start paging, send an empty string `page_token=""`; then pass back the previous response's `next_page_token` exactly as received to get the next page, keeping every other parameter unchanged. Tokens last 24 hours and only work for the same account and the same parameters; an expired or mismatched token returns 422, so start again from the first page. On the last page the response has no `next_page_token` (`pagination.has_more` is false). Each `user_posts` page is one call and holds up to 20 rows, newest first, and is not filtered by `since` (filter by `posted_at` on your side if you need a date window). `comments` pages hold up to 50 top-level comments and are priced per block of rows: every 20 rows count as one call, so a page counts as 3 calls for its 50 rows (a smaller `limit` counts that many rows), and blocks that come back with no rows are not charged. Without `page_token` the call is a single fetch: `user_posts` returns the newest batch (`since` applies) and `comments` returns only the first top-level comments, also at one call per 20 rows: 20 rows by default and at most 150, usually with no reply rows and no `next_page_token`.
- Returns fields: next_page_token, id, text, like_count, reply_count, author_name, author_id, ip_location, is_hot, is_reply, reply_to_id, posted_at, video_id, platform, liked_by_author, author_avatar_url, author_uid, images, mentioned_users, author_douyin_id, author_is_verified, is_pinned, sticker_url
- Capability page: [https://everyinfra.com/en/douyin-api/comments](https://everyinfra.com/en/douyin-api/comments?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/douyin-api/comments.md)

### comment_replies — Comment replies
List the replies under one top-level comment on a Douyin video, up to 100 per call, read 20 at a time. Each reply has text, likes, replier, IP region and the author-liked flag, plus `reply_to_reply_id` and `reply_to_author_name` when it answers another reply. Pass the video link with a `comment_id` from `comments`, and page with `next_page_token`.
- Sync delivery · Price: $0.56 per 1,000 requests (every 20 rows count as one call)
- Catalog values: defaultLimit=20, maxLimit=100. For some actions a limit controls pages or per-parent expansion, so it is not always the final row count. For the next page, pass next_page_token back as page_token with the other parameters unchanged; each page is billed by its row count, one call per 20 rows.
- Parameters:
  - `url` (required): Full URL of the target Douyin video, formatted as `https://www.douyin.com/video/<video_id>`. Fetches video details in `video`, comments in `comments`, the replies under one comment in `comment_replies` (the video the comment sits on), audio transcripts in `transcript`, the videos recommended next to it in `related_posts`, or its count history in `post_history`. Do not pass user profile or search page URLs.
  - `comment_id` (required): The ID of the top-level comment whose replies you want, digits only, taken from the `id` of a `comments` row; only comments whose `reply_count` is above zero have replies. Used by `comment_replies` together with the `url` of the same video; it is not a video ID or a reply ID.
  - `page_token` (optional): Page token for `comment_replies`: send an empty string `page_token=""` to start from the first reply, then pass back each response's `next_page_token` exactly as received, keeping the other parameters unchanged. Tokens last 24 hours and only work for the same account and the same parameters; on the last page the response has no `next_page_token`. Pages hold up to 20 replies and are priced per block of rows: every 20 rows count as one call, and a block that comes back with no rows is not charged.
- Returns fields: next_page_token, id, text, like_count, author_name, author_id, author_uid, author_avatar_url, ip_location, liked_by_author, is_reply, reply_to_id, reply_to_reply_id, reply_to_author_name, posted_at, video_id, images, mentioned_users, platform
- Capability page: [https://everyinfra.com/en/douyin-api/comment_replies](https://everyinfra.com/en/douyin-api/comment_replies?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/douyin-api/comment_replies.md)

### trending — Trending
Check Douyin's trending boards for hot keywords. Each keyword has rank, heat score, related video, article and live-room counts, label, peak rank and a `url` when there is one. Choose boards with `boards` (default `hotspot`). `hot_value` is Douyin's own score and you can compare it only within one board.
- Sync delivery · Price: $0.56 per 1,000 requests
- Each call returns one page of up to 60 rows. There is no next page. Each page is billed once.
- Parameters:
  - `boards` (optional): Specifies trending board types to query in the `trending` action, passed as a single string or an array of strings: `hotspot`, `seeding`, `entertainment`, `social`, and `challenge`. Defaults to `hotspot` if omitted or passed as an empty array. One of: challenge, entertainment, hotspot, seeding, social.
- Returns fields: rank, keyword, hot_value, video_count, board, image_url, event_time, sentence_id, group_id, label, word_type, article_count, is_pinned, max_rank, live_room_count, topic_view_count, sentence_tag, label_icon_url, related_music_id, platform, url
- Capability page: [https://everyinfra.com/en/douyin-api/trending](https://everyinfra.com/en/douyin-api/trending?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/douyin-api/trending.md)

### transcript — Transcript
Turn a Douyin video's speech into text with timestamped segments. You also get the title, publish time, engagement counts, author and an audio track link. Mandarin, Cantonese, English, Japanese and Korean are supported; not every video has recognizable speech, and the text is not translated.
- Sync delivery · Price: $0.56 per 1,000 requests
- Parameters:
  - `url` (required): Full URL of the target Douyin video, formatted as `https://www.douyin.com/video/<video_id>`. Do not pass user profile or search page URLs. If nobody speaks in the video, the call returns 200 with an empty result. It is not charged. An empty result with `empty_reason` set to `no_speech` means no speech was detected in this video's audio. Mandarin, Cantonese, English, Japanese and Korean speech is supported; in other languages the transcript may be wrong, or the call may return an empty result with `empty_reason` set to `no_speech`.
- Returns fields: id, url, title, text, posted_at, play_count, like_count, comment_count, share_count, collect_count, author_name, author_avatar, author_follower_count, segments, video_url, audio_url, duration_sec, duration_seconds, recommend_count, author_like_count, platform
- Capability page: [https://everyinfra.com/en/douyin-api/transcript](https://everyinfra.com/en/douyin-api/transcript?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/douyin-api/transcript.md)

### creator_search — Creator search
Search Douyin creator accounts by nickname, handle or phrase. Get follower count, gender, verification and live status, plus the secUid for follow-up calls. Narrow with `follower_range` and `user_type`. Matches are candidates, not a confirmed identity.
- Sync delivery · Price: $0.56 per 1,000 requests (every 20 rows count as one call)
- Catalog values: defaultLimit=20, maxLimit=20. For some actions a limit controls pages or per-parent expansion, so it is not always the final row count.
- Parameters:
  - `keyword` (required): A creator nickname, Douyin ID, or related search phrase used for account discovery. It does not run the video `search` action or guarantee an exact identity match.
  - `follower_range` (optional): Filters `creator_search` by an account's follower-count band. Use `under_1k`, `1k_to_10k`, `10k_to_100k`, `100k_to_1m`, or `over_1m`; omit it to leave the band unrestricted. One of: 100k_to_1m, 10k_to_100k, 1k_to_10k, over_1m, under_1k.
  - `user_type` (optional): Filters `creator_search` by account category: `general`, `business`, or `verified_individual`. It is not a buyer category or proof of legal identity. One of: business, general, verified_individual.
- Returns fields: user_id, douyin_id, nickname, url, avatar_url, follower_count, gender, is_verified, verify_reason, is_live, uid, source_keyword, platform
- Capability page: [https://everyinfra.com/en/douyin-api/creator_search](https://everyinfra.com/en/douyin-api/creator_search?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/douyin-api/creator_search.md)

### creator_audience — Creator audience
Break down a Douyin creator's followers by device price band, gender, age or province, with each bucket's share and its TGI index. Shares are decimals between 0 and 1, not percentages, and the buckets are not buyer records or individual people.
- Sync delivery · Price: $0.56 per 1,000 requests
- Parameters:
  - `user_id` (required): The Douyin creator's `secUid`, usually beginning with `MS4w`, used to read the available audience distribution and TGI signals. Use `user_id` from creator discovery, not a nickname, short Douyin ID, or buyer identifier.
  - `dimension` (optional): Selects the `creator_audience` follower-segment view: `device_price_band` (default), `gender`, `age`, or `province`. Distribution values are raw share decimals from 0 to 1, not percentages; TGI remains a separate index. This parameter does not request individual follower records or buyer data. One of: age, device_price_band, gender, province.
- Returns fields: user_id, audience_distribution, audience_tgi, dimension_code, platform
- Capability page: [https://everyinfra.com/en/douyin-api/creator_audience](https://everyinfra.com/en/douyin-api/creator_audience?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/douyin-api/creator_audience.md)

### creator_trend — Creator growth trend
Track a Douyin creator's follower count over time as a dated series, with the average follower count across the window. Pass the creator's secUid in `user_id`. The series alone does not show what caused any growth.
- Sync delivery · Price: $0.56 per 1,000 requests
- Parameters:
  - `user_id` (required): The Douyin creator's `secUid`, usually beginning with `MS4w`, used to read the available follower-trend series. It is not a nickname or short numerical Douyin ID.
- Returns fields: user_id, follower_trend, average_follower_count, dimension_code, platform
- Capability page: [https://everyinfra.com/en/douyin-api/creator_trend](https://everyinfra.com/en/douyin-api/creator_trend?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/douyin-api/creator_trend.md)

### creator_benchmark — Creator benchmark
Compare a Douyin creator with similar accounts through average posts, likes, comments, shares and follower growth, each with a percentile rank. These are relative account signals, not sales, conversions or proof of cause.
- Sync delivery · Price: $0.56 per 1,000 requests
- Parameters:
  - `user_id` (required): The Douyin creator's `secUid`, usually beginning with `MS4w`, used to read the available account averages and percentiles. It is not a nickname or short numerical Douyin ID.
- Returns fields: user_id, average_post_count, average_comment_count, average_share_count, average_follower_growth, average_like_count, post_count_percentile, comment_count_percentile, share_count_percentile, follower_growth_percentile, like_count_percentile, platform
- Capability page: [https://everyinfra.com/en/douyin-api/creator_benchmark](https://everyinfra.com/en/douyin-api/creator_benchmark?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/douyin-api/creator_benchmark.md)

### xingtu_creator_search — Xingtu creator search
Search Douyin's Xingtu creator records by keyword. Get engagement rate, expected plays, follower growth, commerce score, GMV ranges (not exact GMV), value indices and CNY quotes by video length. `creator_id` is only for comparing these rows. Analytics and rate cards need the `douyin_id` from `creator_search`.
- Sync delivery · Price: $0.56 per 1,000 requests (every 20 rows count as one call)
- Catalog values: defaultLimit=20, maxLimit=20. For some actions a limit controls pages or per-parent expansion, so it is not always the final row count.
- Parameters:
  - `keyword` (required): A creator search phrase for `xingtu_creator_search`. The returned `creator_id` identifies and compares records within this Xingtu search result; it is not accepted by `xingtu_creator_analytics` or `xingtu_rate_card`, which require the `douyin_id` returned by ordinary `creator_search`. It is not a product keyword or video search.
- Returns fields: creator_id, user_id, nickname, follower_count, gender, city, province, creator_score, engagement_rate_30d, expected_play_count, expected_natural_play_count, interaction_median_30d, play_over_rate_30d, follower_growth_30d, follower_growth_rate_15d, content_themes, ecommerce_level, ecommerce_score, gmv_30d_range, gpm_30d_range, average_order_value_30d_range, commercial_index, conversion_index, spread_index, shopping_index, quote_1_20s_cny, quote_20_60s_cny, quote_60s_plus_cny, platform
- Capability page: [https://everyinfra.com/en/douyin-api/xingtu_creator_search](https://everyinfra.com/en/douyin-api/xingtu_creator_search?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/douyin-api/xingtu_creator_search.md)

### xingtu_creator_analytics — Xingtu creator analytics
Get a creator's Xingtu commercial profile on Douyin. It includes type and grade, followers, average plays, content themes, commerce flag and lowest CNY quote. Pass the visible `douyin_id` from `creator_search`, not a secUid or Xingtu ID. The lowest quote is an asking price, not a closed deal.
- Sync delivery · Price: $0.56 per 1,000 requests
- Parameters:
  - `douyin_id` (required): The visible Douyin account ID (`unique_id`) returned by the ordinary `creator_search` action and required by `xingtu_creator_analytics` and `xingtu_rate_card`; `xingtu_creator_search` does not return it. It is distinct from a `user_id` (`secUid`), Xingtu `creator_id`, and nickname.
- Returns fields: creator_id, creator_type, follower_count, average_play_count, city, province, gender, category_id, content_themes, tags, creator_grade, is_xingtu_creator, ecommerce_enabled, lowest_quote_cny, platform
- Capability page: [https://everyinfra.com/en/douyin-api/xingtu_creator_analytics](https://everyinfra.com/en/douyin-api/xingtu_creator_analytics?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/douyin-api/xingtu_creator_analytics.md)

### xingtu_rate_card — Xingtu creator rate card
See the rate tiers a Douyin creator lists on Xingtu. Each tier has format, current and original quote, settlement note, video type and open status. Use the `douyin_id` from `creator_search`. These are posted rates, not an agreed deal or final settlement.
- Sync delivery · Price: $0.56 per 1,000 requests
- Parameters:
  - `douyin_id` (required): The visible Douyin account ID (`unique_id`) returned by the ordinary `creator_search` action and required by `xingtu_creator_analytics` and `xingtu_rate_card`; `xingtu_creator_search` does not return it. It is distinct from a `user_id` (`secUid`), Xingtu `creator_id`, and nickname.
- Returns fields: creator_id, rate_tiers, platform
- Capability page: [https://everyinfra.com/en/douyin-api/xingtu_rate_card](https://everyinfra.com/en/douyin-api/xingtu_rate_card?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/douyin-api/xingtu_rate_card.md)

### xingtu_creator_rankings — Xingtu creator rankings
Pull up to five creators from a Douyin Xingtu ranking board. Choose the board by industry, board type and time window. Get rank, previous rank, score, CPM and order ranges. Ranks and scores compare only within the returned board and window. Order and repurchase ranges are not exact totals.
- Sync delivery · Price: $0.56 per 1,000 requests (every 5 rows count as one call)
- Catalog values: defaultLimit=5, maxLimit=5. For some actions a limit controls pages or per-parent expansion, so it is not always the final row count.
- Parameters:
  - `industry` (required): Selects the Xingtu creator-ranking industry: `apparel_accessories`, `automotive`, `beauty`, `electronics`, `food_beverage`, `household_goods`, or `mother_baby_pets`. It is a board filter, not a creator-authored tag. One of: apparel_accessories, automotive, beauty, electronics, food_beverage, household_goods, mother_baby_pets.
  - `ranking_type` (required): Selects the Xingtu ranking board: `all_top`, `head_tier`, `paid_ad_performers`, `rising_stars`, `sales_champions`, `top_creators`, or `viral_drivers`. Board names do not turn rank into a forecast or guaranteed outcome. One of: all_top, head_tier, paid_ad_performers, rising_stars, sales_champions, top_creators, viral_drivers.
  - `time_window` (required): Selects the Xingtu ranking snapshot: `latest_weekly`, `latest_monthly`, `all_history_weekly`, or `all_history_monthly`. This scopes the returned leaderboard and does not accept an arbitrary date range. One of: all_history_monthly, all_history_weekly, latest_monthly, latest_weekly.
- Returns fields: creator_id, user_id, url, nickname, avatar_url, gender, city, province, follower_count, cpm_cny, completed_order_range, repurchase_rate_range, item_order_rate, average_view_count, industry, rank, previous_rank, ranking_score, is_new, ranking_board, period_days, snapshot_date, industry_tags, primary_tag, industry_id, top_videos, source_kind, platform
- Capability page: [https://everyinfra.com/en/douyin-api/xingtu_creator_rankings](https://everyinfra.com/en/douyin-api/xingtu_creator_rankings?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/douyin-api/xingtu_creator_rankings.md)

### product_search — Product search
Search Douyin Mall products by keyword, up to 30 a page. Get CNY price, 30-day sales, positive review rate, shop, commission rate and number of partnering creators. Only page 1 is available for now; page 2 and later, by `page_token` or `page`, return 503 and are not charged. Each page is one call. The partnering creator count does not show that a specific creator sold the item. When the main source is unavailable, a backup source returns at most five products with no next page, and only product ID, title, link, image, CNY price and shop ID. Sales, review rate, shop name, category, commission and creator fields are then missing. Lead-in prices of a tenth of a yuan or less are left out.
- Sync delivery · Price: $8 per 1,000 requests
- Each call returns one page of up to 30 rows. The number of rows varies from page to page, so a short page is not the end. For the next page, pass the response's top-level next_page_token as page_token; stop when there is none. limit is accepted and has no effect.
- Parameters:
  - `keyword` (required): A Douyin product search phrase. Results form an independent product pool and do not establish that any specified creator promoted or sold those items.
  - `page` (optional): Page number from 1 to 17, with up to 30 products a page. Only page 1 can be read for now, as one call; pages 2 to 17 return 503 and are not charged. When `page_token` is also sent, the token wins.
  - `page_token` (optional): Page token for `product_search`. Leave it out for the first page. Only page 1 is available for now: a request with the previous response's `next_page_token` returns 503 with `error.reason` `later_pages_unavailable` and is not charged, and sending it again does not help. Each page holds up to 30 products and is one call. Tokens last 24 hours.
- Returns fields: next_page_token, product_id, promotion_id, title, url, image_url, white_image_url, price_cny, price_cny_minor, price_label, monthly_sales, good_review_ratio, sales_trend, category_path, category_ids, category_depth, shop_id, shop_name, shop_logo_url, shop_score, commission_rate_percent, commission_cny, cooperating_creator_count, tags, source_keyword, search_rank, recommend_reason, platform
- Capability page: [https://everyinfra.com/en/douyin-api/product_search](https://everyinfra.com/en/douyin-api/product_search?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/douyin-api/product_search.md)

### shop_products — Shop store products
List the products of one Douyin Mall shop from its numeric `shop_id`, 10 a page. Each product has ID, promotion ID, title, link, image, CNY price and monthly sales, and every row repeats the shop's total product count and page count. Take `shop_id` from a `product_search` or `product_detail` row. Page on with `next_page_token`; each page is one call.
- Sync delivery · Price: $8 per 1,000 requests
- Each call returns one page of up to 10 rows; for the next page, pass the response's top-level next_page_token as page_token. limit is accepted and has no effect.
- Parameters:
  - `shop_id` (required): The numeric ID of a Douyin Mall shop, taken from the `shop_id` of a `product_search` or `product_detail` row. It is not a shop name.
  - `page` (optional): Page number starting at 1, with 10 products a page; the number of pages is the `shop_page_count` on each row. It reads that page directly as one call; when `page_token` is also sent, the token wins.
  - `page_token` (optional): Page token for `shop_products`. Leave it out for the first page, then pass back the previous response's `next_page_token` exactly as received, keeping `shop_id` unchanged. Each page holds 10 products and is one call. Tokens last 24 hours; the last page has none.
- Returns fields: next_page_token, product_id, promotion_id, title, url, image_url, price_cny, price_cny_minor, monthly_sales, tags, shop_id, shop_product_count, shop_page_count, platform
- Capability page: [https://everyinfra.com/en/douyin-api/shop_products](https://everyinfra.com/en/douyin-api/shop_products?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/douyin-api/shop_products.md)

### product_detail — Product details
Read one Douyin Mall product by numeric ID. Get displayed and discount price in CNY, sales figure, shop, images, assurances, shipping notes, variants and on-sale status. Take `product_id` from `product_search` or `live_product_search`, not a SKU or promotion ID.
- Sync delivery · Price: $8 per 1,000 requests
- Parameters:
  - `product_id` (required): A numeric Douyin product ID returned by `product_search` or `live_product_search`. It is not a SKU ID, promotion ID, title, or URL.
- Returns fields: product_id, title, price_cny, discount_price_cny, sales_text, sold_count, shop_id, shop_name, shop_avatar_url, image_url, main_image_urls, detail_image_urls, assurances, shipping_fee_text, shipping_estimate_text, variant_groups, attributes, on_sale, platform
- Capability page: [https://everyinfra.com/en/douyin-api/product_detail](https://everyinfra.com/en/douyin-api/product_detail?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/douyin-api/product_detail.md)

### live_product_search — Live product search
Find up to three Douyin products sold in live streams now for a keyword. Get SKU, title, CNY price, shop and live room ID. The room ID applies to this search only. It does not attribute past live sales.
- Sync delivery · Price: $0.56 per 1,000 requests (every 3 rows count as one call)
- Catalog values: defaultLimit=3, maxLimit=3. For some actions a limit controls pages or per-parent expansion, so it is not always the final row count.
- Parameters:
  - `keyword` (required): A Douyin Mall product search phrase. Only products that carry a live tag and a live room ID at the time of the request come back; the results are not a record of what any given creator has sold on live streams.
- Returns fields: product_id, sku_id, title, image_url, price_cny, shop_id, live_room_id, is_live_product, source_keyword, platform
- Capability page: [https://everyinfra.com/en/douyin-api/live_product_search](https://everyinfra.com/en/douyin-api/live_product_search?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/douyin-api/live_product_search.md)

### hashtag_search — Hashtag search
Find Douyin hashtags whose names contain a `keyword`, ranked by heat. Each hashtag has its numeric ID, a heat index and the videos, likes and views it gathered over the last 7 full days in China time, with the period dates on every row. Up to 200 hashtags per call, 20 by default; pass `hashtag_id` to `hashtag_detail` for all-time totals.
- Sync delivery · Price: $15.56 per 1,000 requests (every 20 rows count as one call)
- Catalog values: defaultLimit=20, maxLimit=200. For some actions a limit controls pages or per-parent expansion, so it is not always the final row count.
- Parameters:
  - `keyword` (required): The word to look for in Douyin hashtag names, such as `food`; Chinese terms usually match more hashtags. It finds hashtags, not videos.
- Returns fields: hashtag_id, hashtag_name, search_rank, heat_index, period_video_count, period_like_count, period_view_count, period_start, period_end, platform
- Capability page: [https://everyinfra.com/en/douyin-api/hashtag_search](https://everyinfra.com/en/douyin-api/hashtag_search?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/douyin-api/hashtag_search.md)

### hashtag_detail — Hashtag detail
Read one Douyin hashtag by its numeric `hashtag_id` from `hashtag_search`. Get its name, total views since it was created, the number of users who have joined it, creation time and share link. Totals are platform counts for the whole hashtag, not for a period.
- Sync delivery · Price: $15.56 per 1,000 requests
- Parameters:
  - `hashtag_id` (required): The numeric ID of a Douyin hashtag for `hashtag_detail`, such as `1767586897793101`, taken from the `hashtag_id` of a `hashtag_search` row. A hashtag name or `#name` is rejected before any charge.
- Returns fields: hashtag_id, hashtag_name, total_view_count, participant_count, created_at, url, platform
- Capability page: [https://everyinfra.com/en/douyin-api/hashtag_detail](https://everyinfra.com/en/douyin-api/hashtag_detail?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/douyin-api/hashtag_detail.md)

### billboard_video_hot — Trending videos chart
Read the video board of Hot Spot Treasure, Douyin's own trend tool: the overall board, or the boards for highest follower growth or highest like rate, over the last hour, day, 3 days or 7 days. Each work has plays, likes, like rate, followers gained, follower-growth rate, heat score and author followers, highest heat first. Up to 50 per page; Douyin filters some works out, so pages often come back shorter and a short page is not the end. Rows carry no rank.
- Sync delivery · Price: $0.81 per 1,000 requests
- Each call returns one page of up to 50 rows. The number of rows varies from page to page, so a short page is not the end. For the next page, pass the response's top-level next_page_token as page_token; stop when there is none. limit is accepted and has no effect.
- Parameters:
  - `board` (optional): Board for `billboard_video_hot`: `all` (default) is the overall board, `follower_growth` the board for works that gained the most followers relative to plays, and `like_rate` the board for the highest like rate. One of: all, follower_growth, like_rate.
  - `keyword` (optional): Optional: keep only works related to this word, such as `food`; leave it out for the whole board.
  - `page_token` (optional): Page token. Leave it out for the first page, then pass back the previous response's `next_page_token` exactly as received, with the other parameters unchanged. Each page holds up to 50 works and is one call; Douyin filters some works out, so a page often holds fewer than 50 and a short page is not the end. Tokens last 24 hours; the last page has no `next_page_token` (about 1,000 works per board at most).
  - `time_window` (optional): Time window: `1h` (last hour), `1d` (last 24 hours, default), `3d` or `7d`. One of: 1d, 1h, 3d, 7d.
- Returns fields: id, url, text, media_type, image_count, cover_image_url, video_url, duration_seconds, duration_sec, author_name, author_avatar_url, author_follower_count, play_count, like_count, like_rate, new_follower_count, follower_growth_rate, hot_value, posted_at, next_page_token, platform
- Capability page: [https://everyinfra.com/en/douyin-api/billboard_video_hot](https://everyinfra.com/en/douyin-api/billboard_video_hot?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/douyin-api/billboard_video_hot.md)

### billboard_low_fan_explosion — Low-follower viral videos
Spot Douyin works from small accounts that took off, from the low-follower hit board in Hot Spot Treasure. Every row pairs the author's follower count with the work's plays, likes, like rate and new followers, so you can see how far a small account travelled. Narrow it with an optional `keyword` and a window from one hour to seven days. Up to 50 per page and page sizes vary, so keep paging until `next_page_token` is gone.
- Sync delivery · Price: $0.81 per 1,000 requests
- Each call returns one page of up to 50 rows. The number of rows varies from page to page, so a short page is not the end. For the next page, pass the response's top-level next_page_token as page_token; stop when there is none. limit is accepted and has no effect.
- Parameters:
  - `keyword` (optional): Optional: keep only works related to this word, such as `food`; leave it out for the whole board.
  - `page_token` (optional): Page token. Leave it out for the first page, then pass back the previous response's `next_page_token` exactly as received, with the other parameters unchanged. Each page holds up to 50 works and is one call; Douyin filters some works out, so a page often holds fewer than 50 and a short page is not the end. Tokens last 24 hours; the last page has no `next_page_token` (about 1,000 works per board at most).
  - `time_window` (optional): Time window: `1h` (last hour), `1d` (last 24 hours, default), `3d` or `7d`. One of: 1d, 1h, 3d, 7d.
- Returns fields: id, url, text, media_type, image_count, cover_image_url, video_url, duration_seconds, duration_sec, author_name, author_avatar_url, author_follower_count, play_count, like_count, like_rate, new_follower_count, follower_growth_rate, hot_value, posted_at, next_page_token, platform
- Capability page: [https://everyinfra.com/en/douyin-api/billboard_low_fan_explosion](https://everyinfra.com/en/douyin-api/billboard_low_fan_explosion?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/douyin-api/billboard_low_fan_explosion.md)

### billboard_high_completion — High completion-rate chart
See which Douyin works viewers watch to the end, from the high completion-rate board in Hot Spot Treasure. You get duration, plays, likes, like rate, heat score, cover and a signed play link for each work; the completion rate itself is not returned. Choose a window from one hour to seven days and an optional `keyword`. Up to 50 per page, often fewer, with paging through `next_page_token`.
- Sync delivery · Price: $0.81 per 1,000 requests
- Each call returns one page of up to 50 rows. The number of rows varies from page to page, so a short page is not the end. For the next page, pass the response's top-level next_page_token as page_token; stop when there is none. limit is accepted and has no effect.
- Parameters:
  - `keyword` (optional): Optional: keep only works related to this word, such as `food`; leave it out for the whole board.
  - `page_token` (optional): Page token. Leave it out for the first page, then pass back the previous response's `next_page_token` exactly as received, with the other parameters unchanged. Each page holds up to 50 works and is one call; Douyin filters some works out, so a page often holds fewer than 50 and a short page is not the end. Tokens last 24 hours; the last page has no `next_page_token` (about 1,000 works per board at most).
  - `time_window` (optional): Time window: `1h` (last hour), `1d` (last 24 hours, default), `3d` or `7d`. One of: 1d, 1h, 3d, 7d.
- Returns fields: id, url, text, media_type, image_count, cover_image_url, video_url, duration_seconds, duration_sec, author_name, author_avatar_url, author_follower_count, play_count, like_count, like_rate, new_follower_count, follower_growth_rate, hot_value, posted_at, next_page_token, platform
- Capability page: [https://everyinfra.com/en/douyin-api/billboard_high_completion](https://everyinfra.com/en/douyin-api/billboard_high_completion?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/douyin-api/billboard_high_completion.md)

### billboard_search_hot — Trending searches chart
Find the search terms rising on Douyin, from the search board in Hot Spot Treasure. Each term has its rank, its search heat for the chosen window and a day-by-day heat series of up to 14 days. Filter to terms containing a `keyword` if you like. 50 terms per page; page on with `next_page_token`. Heat is Douyin's own score, not a count of searches.
- Sync delivery · Price: $0.81 per 1,000 requests
- Each call returns one page of up to 50 rows; for the next page, pass the response's top-level next_page_token as page_token. limit is accepted and has no effect.
- Parameters:
  - `keyword` (optional): Optional: keep only search terms that contain this word, such as `food`; leave it out for the whole search board.
  - `page_token` (optional): Page token. Leave it out for the first page (the top 50 terms), then pass back the previous response's `next_page_token` exactly as received, with the other parameters unchanged. Each page holds up to 50 terms and is one call; tokens last 24 hours, and the last page has no `next_page_token`.
  - `time_window` (optional): Time window for the search heat: `1h`, `1d` (default), `3d` or `7d`. One of: 1d, 1h, 3d, 7d.
- Returns fields: rank, keyword, hot_value, search_trend, platform
- Capability page: [https://everyinfra.com/en/douyin-api/billboard_search_hot](https://everyinfra.com/en/douyin-api/billboard_search_hot?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/douyin-api/billboard_search_hot.md)

### billboard_account_search — Trending account search
Look for Douyin accounts related to a `keyword` through Hot Spot Treasure, with follower, like and video counts for each. The returned `user_id` is the secUid that `profile` and `user_posts` accept. About 30 accounts per page, sometimes a few fewer; page on with `next_page_token`. Results are related accounts, not a ranking.
- Sync delivery · Price: $0.81 per 1,000 requests
- Each call returns one page of up to 30 rows. The number of rows varies from page to page, so a short page is not the end. For the next page, pass the response's top-level next_page_token as page_token; stop when there is none. limit is accepted and has no effect.
- Parameters:
  - `keyword` (required): The word to find related Douyin accounts for, such as `food`. Each account comes back with follower, like and video counts.
  - `page_token` (optional): Page token. Leave it out for the first page, then pass back the previous response's `next_page_token` exactly as received. Each page holds up to 30 accounts (sometimes one or two fewer without being the end) and is one call; tokens last 24 hours, and the last page has no `next_page_token`.
- Returns fields: user_id, nickname, url, avatar_url, follower_count, like_count, video_count, next_page_token, platform
- Capability page: [https://everyinfra.com/en/douyin-api/billboard_account_search](https://everyinfra.com/en/douyin-api/billboard_account_search?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/douyin-api/billboard_account_search.md)

### music_search — Music search
Search Douyin's music library by song title, artist or sound name. Each track has title, artist, length, how many works use it, cover and a play link. A lyrics link and tags are usually absent. Each call returns only the first page, up to 10 tracks, with no `next_page_token`. A track being on Douyin does not clear it for commercial use.
- Sync delivery · Price: $8 per 1,000 requests
- Each call returns one page of up to 10 rows; for the next page, pass the response's top-level next_page_token as page_token. limit is accepted and has no effect.
- Parameters:
  - `keyword` (required): A song title, artist or sound name, such as `Jay Chou`; it searches Douyin's music library, not videos.
- Returns fields: id, url, title, author_name, duration_seconds, duration_sec, use_count, cover_image_url, audio_url, lyric_url, tags, platform
- Capability page: [https://everyinfra.com/en/douyin-api/music_search](https://everyinfra.com/en/douyin-api/music_search?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/douyin-api/music_search.md)

### search_suggest — Search suggestions
Get the autocomplete suggestions Douyin's search box shows for a `keyword`, in Douyin's order, with `rank` from 1. Up to 10 per call; Douyin usually offers about five, and there is no paging. Suggestions carry no search volume.
- Sync delivery · Price: $8 per 1,000 requests
- Catalog values: defaultLimit=10, maxLimit=10. For some actions a limit controls pages or per-parent expansion, so it is not always the final row count.
- Parameters:
  - `keyword` (required): The text typed into Douyin's search box, such as `artificial intelligence`; the suggestions come back in Douyin's order.
- Returns fields: rank, keyword, platform
- Capability page: [https://everyinfra.com/en/douyin-api/search_suggest](https://everyinfra.com/en/douyin-api/search_suggest?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/douyin-api/search_suggest.md)

### billboard_rise_list — Billboard rising trends
Spot the trends climbing fastest on Douyin, from the rising board in Hot Spot Treasure. Each trend has its rank and places gained, title, ID, heat, related video count, category, creation time and an hourly heat curve. Keep only trends containing a `keyword` if you like. 50 per page; page on with `next_page_token`.
- Sync delivery · Price: $0.81 per 1,000 requests
- Each call returns one page of up to 50 rows; for the next page, pass the response's top-level next_page_token as page_token. limit is accepted and has no effect.
- Parameters:
  - `keyword` (optional): Optional: keep only trends that contain this word, such as `game`; leave it out for the whole rising board.
  - `page_token` (optional): Page token. Leave it out for the first page (the top 50 trends), then pass back the previous response's `next_page_token` exactly as received, with the other parameters unchanged. Each page holds up to 50 trends and is one call; tokens last 24 hours, and the last page has no `next_page_token`.
- Returns fields: rank, rank_change, title, topic_id, hot_value, video_count, category, created_at, hot_trend, next_page_token, platform
- Capability page: [https://everyinfra.com/en/douyin-api/billboard_rise_list](https://everyinfra.com/en/douyin-api/billboard_rise_list?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/douyin-api/billboard_rise_list.md)

### billboard_challenge_hot — Billboard trending challenges
Read the challenge board of Hot Spot Treasure, Douyin's own trend tool: the whole board of 50 trends in one call. Each trend has its rank, title, ID, heat, related video count, creation time and a heat curve sampled about every ten minutes. One call returns one page of up to 50 trends; there is no next page.
- Sync delivery · Price: $0.81 per 1,000 requests
- Each call returns one page of up to 50 rows. There is no next page. Each page is billed once.
- Returns fields: rank, title, topic_id, hot_value, video_count, created_at, hot_trend, platform
- Capability page: [https://everyinfra.com/en/douyin-api/billboard_challenge_hot](https://everyinfra.com/en/douyin-api/billboard_challenge_hot?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/douyin-api/billboard_challenge_hot.md)

### billboard_topic_hot — Billboard trending topics
See which Douyin hashtags are heating up, from the hashtag board in Hot Spot Treasure, over the last hour, day, 3 days or 7 days. Each hashtag has its rank, numeric ID for `hashtag_detail`, name, heat, all-time views and works, average views per work, cover and up to 14 days of daily heat. 50 per page; page on with `next_page_token`.
- Sync delivery · Price: $0.81 per 1,000 requests
- Each call returns one page of up to 50 rows; for the next page, pass the response's top-level next_page_token as page_token. limit is accepted and has no effect.
- Parameters:
  - `keyword` (optional): Optional: keep only hashtags whose names contain this word, such as `food`; leave it out for the whole hashtag board.
  - `page_token` (optional): Page token. Leave it out for the first page (the top 50 hashtags), then pass back the previous response's `next_page_token` exactly as received, with the other parameters unchanged. Each page holds up to 50 hashtags and is one call; tokens last 24 hours, and the last page has no `next_page_token` (about 1,000 hashtags per board at most).
  - `time_window` (optional): Time window for the hashtag heat: `1h`, `1d` (default), `3d` or `7d`. One of: 1d, 1h, 3d, 7d.
- Returns fields: rank, hashtag_id, hashtag_name, hot_value, total_view_count, total_video_count, average_view_count, cover_image_url, created_at, daily_trend, next_page_token, platform
- Capability page: [https://everyinfra.com/en/douyin-api/billboard_topic_hot](https://everyinfra.com/en/douyin-api/billboard_topic_hot?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/douyin-api/billboard_topic_hot.md)

### music_detail — Music detail
Read one Douyin track by the numeric `music_id` from `music_search`, or a douyin.com/music link. Get title, artist, length, how many works use it, cover, a play link and a lyrics link when there is one. Some responses also carry `is_original` (an original sound) and the uploader's `secUid` in `owner_id`. Lookups by song title belong to `music_search`.
- Sync delivery · Price: $0.81 per 1,000 requests
- Parameters:
  - `music_id` (required): Numeric Douyin music ID, such as `7699717253151558410`, taken from the `id` of a `music_search` row, from a video's `music.id` or from `music_detail`; a douyin.com/music/<ID> link is accepted too.
- Returns fields: id, url, title, author_name, duration_seconds, duration_sec, use_count, cover_image_url, audio_url, lyric_url, platform, is_original, owner_id
- Capability page: [https://everyinfra.com/en/douyin-api/music_detail](https://everyinfra.com/en/douyin-api/music_detail?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/douyin-api/music_detail.md)

### xingtu_conversion_ability — Xingtu creator conversion
Read the conversion figures Xingtu shows for one Douyin creator's Xingtu order videos over the last 7, 30 or 90 days: related videos, median plays, component clicks and click rate, CPC, GPM, average sales, products promoted and their categories. Most values are ranges in Xingtu's own wording, such as `500-1000`, with open-ended ones like "10% or more" in Chinese. Only creators with Xingtu orders in the window have figures; the rest return an empty result, which is not charged.
- Sync delivery · Price: $1.6 per 1,000 requests
- Parameters:
  - `douyin_id` (required): The creator's visible Douyin ID (`unique_id`, from `creator_search`) or the 19-digit Xingtu `creator_id` returned by `xingtu_creator_search`. A creator who is not on Xingtu gives an empty result, which is not charged.
  - `time_window` (optional): Period of the Xingtu figures: `7d`, `30d` (default) or `90d`, counted back from today. It is not the ranking period of `xingtu_creator_rankings`. One of: 30d, 7d, 90d.
- Returns fields: creator_id, time_window, related_video_count, video_play_median, component_click_count_range, component_click_rate_range, cpc_range_cny, gpm_range_cny, average_sales_range_cny, product_count, product_price_range_cny, categories, platform
- Capability page: [https://everyinfra.com/en/douyin-api/xingtu_conversion_ability](https://everyinfra.com/en/douyin-api/xingtu_conversion_ability?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/douyin-api/xingtu_conversion_ability.md)

### xingtu_link_structure — Xingtu connected-user breakdown
See how many users Xingtu counts as connected to one Douyin creator, split into Xingtu's four levels, each with its count, its share of the total and the median for creators in the same industry. Also get the total, its rank among Xingtu creators (`total_rank_top_percent`, 0 to 1, smaller is better) and Xingtu's link type label, in Chinese, meaning seeding or spread.
- Sync delivery · Price: $16 per 1,000 requests
- Parameters:
  - `douyin_id` (required): The creator's visible Douyin ID (`unique_id`, from `creator_search`) or the 19-digit Xingtu `creator_id` returned by `xingtu_creator_search`. A creator who is not on Xingtu gives an empty result, which is not charged.
- Returns fields: creator_id, link_type, total_user_count, total_rank_top_percent, levels, platform
- Capability page: [https://everyinfra.com/en/douyin-api/xingtu_link_structure](https://everyinfra.com/en/douyin-api/xingtu_link_structure?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/douyin-api/xingtu_link_structure.md)

### xingtu_recommended_videos — Xingtu recommended videos
List the four video groups on a Douyin creator's Xingtu page: signature videos, latest videos, top Xingtu order videos and top personal videos. Each video has its ID, link, play count and post time only. A group with no videos is left out.
- Sync delivery · Price: $1.6 per 1,000 requests
- Parameters:
  - `douyin_id` (required): The creator's visible Douyin ID (`unique_id`, from `creator_search`) or the 19-digit Xingtu `creator_id` returned by `xingtu_creator_search`. A creator who is not on Xingtu gives an empty result, which is not charged.
- Returns fields: creator_id, signature_videos, latest_videos, top_xingtu_order_videos, top_personal_videos, platform
- Capability page: [https://everyinfra.com/en/douyin-api/xingtu_recommended_videos](https://everyinfra.com/en/douyin-api/xingtu_recommended_videos?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/douyin-api/xingtu_recommended_videos.md)

### xingtu_touch_distribution — Xingtu connected-user sources
See which content categories a Douyin creator's connected users came from, as Xingtu counts them: a tree of up to three levels, usually personal versus Xingtu content, then category and subcategory, each with a count.
- Sync delivery · Price: $16 per 1,000 requests
- Parameters:
  - `douyin_id` (required): The creator's visible Douyin ID (`unique_id`, from `creator_search`) or the 19-digit Xingtu `creator_id` returned by `xingtu_creator_search`. A creator who is not on Xingtu gives an empty result, which is not charged.
- Returns fields: creator_id, categories, platform
- Capability page: [https://everyinfra.com/en/douyin-api/xingtu_touch_distribution](https://everyinfra.com/en/douyin-api/xingtu_touch_distribution?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/douyin-api/xingtu_touch_distribution.md)

### xingtu_video_performance — Xingtu video performance
Compare a Douyin creator's personal videos and Xingtu order videos on engagement rate, median plays and completion rate. Each measure has the creator's value, the platform-wide average and the percentile (the share of creators it beats, 0 to 1). Also get the latest personal and Xingtu order videos, up to about 15 of each, with title, plays, likes, comments, shares and duration.
- Sync delivery · Price: $16 per 1,000 requests
- Parameters:
  - `douyin_id` (required): The creator's visible Douyin ID (`unique_id`, from `creator_search`) or the 19-digit Xingtu `creator_id` returned by `xingtu_creator_search`. A creator who is not on Xingtu gives an empty result, which is not charged.
- Returns fields: creator_id, personal_videos, xingtu_videos, latest_videos, latest_xingtu_videos, platform
- Capability page: [https://everyinfra.com/en/douyin-api/xingtu_video_performance](https://everyinfra.com/en/douyin-api/xingtu_video_performance?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/douyin-api/xingtu_video_performance.md)

### posts_batch — Posts in bulk
Look up as many as 20 Douyin videos at once from `urls`, each given as a numeric video ID, a `https://www.douyin.com/video/<video_id>` link, a `v.douyin.com` short link, or a whole share text that contains a short link. Each video found is one row with caption, hashtags, engagement counts, author profile, cover, background music, publish time and a signed `video_url`, plus `input`, the entry you passed. `video_url` expires, so download promptly if you need to keep it. Billed per video; videos not found are not charged and come back in `missed`. Each entry can appear only once, and an array that breaks the rules returns 422 before any charge.
- Sync delivery · Price: $0.56 per 1,000 requests (each element in urls counts as one call)
- Parameters:
  - `urls` (required): The videos to read, as an array of up to 20 entries; each entry can appear only once. Each entry is a numeric video ID, a `https://www.douyin.com/video/<video_id>` link, a `v.douyin.com` short link, or a whole share text that contains a short link. Billed per video; videos not found are not charged. Rows carry `input`, the entry you passed.
- Returns fields: id, url, text, media_type, video_url, like_count, comment_count, share_count, collect_count, author_name, author_id, author_douyin_id, author_bio, author_avatar_url, author_follower_count, author_following_count, author_like_count, author_video_count, author_is_verified, cover_image_url, video_width, video_height, video_bitrates, has_watermark, duration_sec, duration_seconds, hashtags, posted_at, title, music, location, image_urls, is_deleted, is_private, platform, input
- Capability page: [https://everyinfra.com/en/douyin-api/posts_batch](https://everyinfra.com/en/douyin-api/posts_batch?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/douyin-api/posts_batch.md)

### profiles_batch — Profiles in bulk
Look up as many as 20 Douyin accounts at once from `urls`, each given as a `secUid` (starting `MS4w`) or a profile link `https://www.douyin.com/user/<secUid>`. Nicknames, Douyin IDs and short links are not accepted. Each account found is one row with nickname, Douyin ID, bio, follower, following, like and video counts, verification badge and avatar, plus `input`, the entry you passed. Billed per account; accounts not found are not charged and come back in `missed`. Each entry can appear only once, and an array that breaks the rules returns 422 before any charge.
- Sync delivery · Price: $0.56 per 1,000 requests (each element in urls counts as one call)
- Parameters:
  - `urls` (required): The accounts to read, as an array of up to 20 entries; each entry can appear only once. Each entry is a `secUid` (starting `MS4w`) or a profile link `https://www.douyin.com/user/<secUid>`. Nicknames, Douyin IDs and short links are not accepted. Billed per account; accounts not found are not charged. Rows carry `input`, the entry you passed.
- Returns fields: user_id, douyin_id, nickname, bio, url, follower_count, following_count, like_count, video_count, is_verified, avatar_url, platform, input
- Capability page: [https://everyinfra.com/en/douyin-api/profiles_batch](https://everyinfra.com/en/douyin-api/profiles_batch?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/douyin-api/profiles_batch.md)

### media_links — Media download links
Get download links for as many as 20 Douyin videos at once from `urls`, each given as a numeric video ID or a `https://www.douyin.com/video/<video_id>` link; short links and share texts are not accepted. Each video found is one row with `video_url`, `best_stream` (the highest-bitrate stream), `stream_count`, `video_width`, `video_height`, `video_size_bytes`, `has_watermark`, `cover_image_url`, `covers`, `image_urls`, `audio_url` and `input`. The links are signed and expire; `expires_at` is the earliest expiry in the row. Send the `request_headers` of the row with every download, or Douyin may refuse it. Set `fresh` to `true` to skip cached links (default `false`). Billed per video; videos not found are not charged and come back in `missed`. Each entry can appear only once, and an array that breaks the rules returns 422 before any charge.
- Sync delivery · Price: $0.56 per 1,000 requests (each element in urls counts as one call)
- Parameters:
  - `urls` (required): The videos to get download links for, as an array of up to 20 entries; each entry can appear only once. Each entry is a numeric video ID or a `https://www.douyin.com/video/<video_id>` link; short links and share texts are not accepted. Billed per video; videos not found are not charged. Rows carry `input`, the entry you passed.
  - `fresh` (optional): For `media_links`: `true` skips cached links and fetches them again; default `false`. The links are signed and expire, and `expires_at` shows when.
- Returns fields: id, url, media_type, video_url, video_url_expires_at, video_width, video_height, video_size_bytes, has_watermark, best_stream, stream_count, cover_image_url, covers, image_urls, audio_url, request_headers, expires_at, fetched_at, platform, input
- Capability page: [https://everyinfra.com/en/douyin-api/media_links](https://everyinfra.com/en/douyin-api/media_links?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/douyin-api/media_links.md)

### related_posts — Related posts
List the videos Douyin recommends next to one video, from its `url`: a numeric video ID, a `https://www.douyin.com/video/<video_id>` link, a `v.douyin.com` short link or a whole share text. Each row has caption, hashtags, engagement counts, author profile, cover, background music, publish time and a signed `video_url`. One call returns one list; there is no paging.
- Sync delivery · Price: $0.56 per 1,000 requests
- Parameters:
  - `url` (required): The Douyin video to find recommended videos for: a numeric video ID, a `https://www.douyin.com/video/<video_id>` link, a `v.douyin.com` short link or a whole share text that contains a short link.
  - `limit` (optional): Positive integer (≥1): the maximum number of results to return; omit it to get every result from this call. Setting it only trims the response to at most this many and never fetches more; billing is the same with or without `limit`, whatever the value.
- Returns fields: id, url, text, media_type, video_url, like_count, comment_count, share_count, collect_count, author_name, author_id, author_douyin_id, author_bio, author_avatar_url, author_follower_count, author_following_count, author_like_count, author_video_count, author_is_verified, cover_image_url, video_width, video_height, video_bitrates, has_watermark, duration_sec, duration_seconds, hashtags, posted_at, title, music, location, image_urls, is_deleted, is_private, platform
- Capability page: [https://everyinfra.com/en/douyin-api/related_posts](https://everyinfra.com/en/douyin-api/related_posts?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/douyin-api/related_posts.md)

### post_history — Post metrics history
Read the saved history of one Douyin video's `like_count`, `comment_count`, `share_count` and `collect_count`. Pass `url` as a numeric video ID or a link that contains it; short links and share texts are not accepted. Each row is one snapshot with `captured_at` (UTC), from oldest to newest. Snapshots come at irregular times, and a video can have few or none. One call returns the whole list; there is no paging.
- Sync delivery · Price: $0.79 per 1,000 requests
- Parameters:
  - `url` (required): The Douyin video whose like, comment, share and collect snapshots you want: a numeric video ID, or a link that contains it such as `https://www.douyin.com/video/<video_id>`. Short links and share texts are not accepted.
  - `limit` (optional): Positive integer (≥1): the maximum number of results to return; omit it to get every result from this call. Setting it only trims the response to at most this many and never fetches more; billing is the same with or without `limit`, whatever the value.
- Returns fields: video_id, captured_at, like_count, comment_count, share_count, collect_count, platform
- Capability page: [https://everyinfra.com/en/douyin-api/post_history](https://everyinfra.com/en/douyin-api/post_history?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/douyin-api/post_history.md)

### music_posts — Posts using a track
List the videos that use one Douyin track, from its `music_id` (taken from a video's `music.id` or from `music_detail`; a douyin.com/music link also works). Each row has caption, hashtags, engagement counts, author profile, cover and publish time, plus `music_post_count`, how many videos use the track by Douyin's count. Douyin shows only part of them, often a few dozen at most, so you usually get far fewer rows. One call returns the whole list; there is no paging.
- Sync delivery · Price: $0.79 per 1,000 requests
- Parameters:
  - `music_id` (required): Numeric Douyin music ID, such as `7699717253151558410`, taken from the `id` of a `music_search` row, from a video's `music.id` or from `music_detail`; a douyin.com/music/<ID> link is accepted too.
  - `limit` (optional): Positive integer (≥1): the maximum number of results to return; omit it to get every result from this call. Setting it only trims the response to at most this many and never fetches more; billing is the same with or without `limit`, whatever the value.
- Returns fields: id, url, text, media_type, video_url, like_count, comment_count, share_count, collect_count, author_name, author_id, author_douyin_id, author_bio, author_avatar_url, author_follower_count, author_following_count, author_like_count, author_video_count, author_is_verified, cover_image_url, video_width, video_height, video_bitrates, has_watermark, duration_sec, duration_seconds, hashtags, posted_at, title, music, location, image_urls, is_deleted, is_private, platform, music_post_count
- Capability page: [https://everyinfra.com/en/douyin-api/music_posts](https://everyinfra.com/en/douyin-api/music_posts?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/douyin-api/music_posts.md)

### resolve_links — Link recognition
Find Douyin links and IDs inside a piece of text, such as a whole share text. Pass the text in `text`. Each match is one row with `matched_text`, `match_type`, `resource_type` (video, user, music, collection, live room and others), `resource_id` and `url`, plus `handle` when the match is a user. A short link has `needs_expansion` set to `true`, and its `resource_id` may then be empty. `id_created_at` is the creation time read from the ID itself.
- Sync delivery · Price: $0.79 per 1,000 requests
- Parameters:
  - `text` (required): A piece of text, such as a whole share text, in which `resolve_links` looks for Douyin video, user, music, collection and live-room links and IDs.
  - `limit` (optional): Positive integer (≥1): the maximum number of results to return; omit it to get every result from this call. Setting it only trims the response to at most this many and never fetches more; billing is the same with or without `limit`, whatever the value.
- Returns fields: matched_text, match_type, resource_type, resource_id, handle, url, needs_expansion, id_created_at, platform
- Capability page: [https://everyinfra.com/en/douyin-api/resolve_links](https://everyinfra.com/en/douyin-api/resolve_links?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/douyin-api/resolve_links.md)

### trending_history — Trending history
See how Douyin trending terms moved over the last hours. Choose a `board` (`hotspot` by default, `entertainment`, `social` or `challenge`) and how far back to look with `hours` (1 to 168, default 24). Each term has `first_seen_at` and `last_seen_at` within the window, `snapshot_count`, `best_rank`, `peak_hot_value` and `is_on_board`, which is its state at the latest snapshot. The board is recorded about every ten minutes, and the record can have gaps. `best_rank` is absent for pinned terms that have no rank. One call returns one list; there is no paging.
- Sync delivery · Price: $0.79 per 1,000 requests
- Parameters:
  - `board` (optional): Board to read: `hotspot` (default), `entertainment`, `social` or `challenge`. One of: challenge, entertainment, hotspot, social.
  - `hours` (optional): For `trending_history`: how many hours to look back, from 1 to 168 (default 24).
  - `limit` (optional): Positive integer (≥1): the maximum number of results to return; omit it to get every result from this call. Setting it only trims the response to at most this many and never fetches more; billing is the same with or without `limit`, whatever the value.
- Returns fields: keyword, board, first_seen_at, last_seen_at, snapshot_count, best_rank, peak_hot_value, is_on_board, platform
- Capability page: [https://everyinfra.com/en/douyin-api/trending_history](https://everyinfra.com/en/douyin-api/trending_history?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/douyin-api/trending_history.md)

### user_mixes — Account collections
List the collections (mixes) a Douyin account has published, from its `secUid` in `user_id` (a `MS4w` string) or a `https://www.douyin.com/user/<secUid>` link. Nicknames, Douyin IDs and short links are not accepted. Each row has `mix_id`, `name`, `description`, `url`, `cover_image_url`, `episode_count`, `play_count`, `created_at` and `updated_at`, plus `mix_count`, how many collections the account has. Some accounts return fewer collections than `mix_count`. A page holds up to 20 collections and `limit` does not change that; a page can hold fewer. Pass back each `next_page_token` as `page_token` within 24 hours; the last page has none. Use a `mix_id` with `mix_posts`.
- Sync delivery · Price: $0.79 per 1,000 requests
- Each call returns one page of up to 20 rows. The number of rows varies from page to page, so a short page is not the end. For the next page, pass the response's top-level next_page_token as page_token; stop when there is none. limit is accepted and has no effect.
- Parameters:
  - `user_id` (required): The account whose collections you want: its `secUid` (starting `MS4w`) or a profile link `https://www.douyin.com/user/<secUid>`. Nicknames, Douyin IDs and short links are not accepted.
  - `page_token` (optional): Page token for `user_mixes`. Leave it out for the first page, then pass back the previous response's `next_page_token` exactly as received, keeping `user_id` unchanged. Tokens last 24 hours; the last page has no `next_page_token`. A page holds up to 20 collections.
- Returns fields: mix_id, name, description, url, cover_image_url, author_id, author_name, episode_count, play_count, created_at, updated_at, mix_count, platform
- Capability page: [https://everyinfra.com/en/douyin-api/user_mixes](https://everyinfra.com/en/douyin-api/user_mixes?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/douyin-api/user_mixes.md)

### mix_posts — Collection posts
List the videos in one Douyin collection from its `mix_id` (taken from `user_mixes`; a `https://www.douyin.com/collection/<ID>` link also works). Each row is a video with caption, hashtags, engagement counts, author profile, cover and publish time, plus `episode` (its position, from 1), `play_count` of that episode and `mix_episode_count`. Rows run from the first episode on. A page holds up to 15 videos and `limit` does not change that; a page can hold fewer. Pass back each `next_page_token` as `page_token` within 24 hours; the last page has none.
- Sync delivery · Price: $0.79 per 1,000 requests
- Each call returns one page of up to 15 rows. The number of rows varies from page to page, so a short page is not the end. For the next page, pass the response's top-level next_page_token as page_token; stop when there is none. limit is accepted and has no effect.
- Parameters:
  - `mix_id` (required): Numeric Douyin collection ID, taken from the `mix_id` of a `user_mixes` row; a `https://www.douyin.com/collection/<ID>` link is accepted too.
  - `page_token` (optional): Page token for `mix_posts`. Leave it out for the first page, then pass back the previous response's `next_page_token` exactly as received, keeping `mix_id` unchanged. Tokens last 24 hours; the last page has no `next_page_token`. A page holds up to 15 videos, in episode order.
- Returns fields: id, url, text, media_type, video_url, like_count, comment_count, share_count, collect_count, author_name, author_id, author_douyin_id, author_bio, author_avatar_url, author_follower_count, author_following_count, author_like_count, author_video_count, author_is_verified, cover_image_url, video_width, video_height, video_bitrates, has_watermark, duration_sec, duration_seconds, hashtags, posted_at, title, music, location, image_urls, is_deleted, is_private, platform, play_count, episode, mix_episode_count
- Capability page: [https://everyinfra.com/en/douyin-api/mix_posts](https://everyinfra.com/en/douyin-api/mix_posts?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/douyin-api/mix_posts.md)

### user_overview — Account overview
Get a quick read on one Douyin account from its `secUid` in `user_id` (a `MS4w` string) or a `https://www.douyin.com/user/<secUid>` link; nicknames, Douyin IDs and short links are not accepted. You get one object: the profile fields (nickname, Douyin ID, bio, follower, following, like and video counts, verification, avatar) and statistics over the account's recent posts: `recent_post_count` (about 20, pinned posts included), `recent_media_types`, `recent_stats` (average, median and maximum of likes, comments, shares and saves), `posts_per_week`, `newest_post_at`, `oldest_post_at`, `top_posts` by likes and the `recent_posts` themselves. The statistics cover the posts on the first page of the profile, so posts from about the last 7 days are not included; `newest_post_at` shows the newest post covered.
- Sync delivery · Price: $1.6 per 1,000 requests
- Parameters:
  - `user_id` (required): The account to summarize: its `secUid` (starting `MS4w`) or a profile link `https://www.douyin.com/user/<secUid>`. Nicknames, Douyin IDs and short links are not accepted.
- Returns fields: user_id, douyin_id, nickname, bio, url, follower_count, following_count, like_count, video_count, is_verified, avatar_url, platform, recent_post_count, recent_media_types, recent_stats, posts_per_week, newest_post_at, oldest_post_at, top_posts, recent_posts
- Capability page: [https://everyinfra.com/en/douyin-api/user_overview](https://everyinfra.com/en/douyin-api/user_overview?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/douyin-api/user_overview.md)

### live_room — Live room
Read one Douyin live room from its numeric `room_id`, the number in `https://live.douyin.com/<room_id>`. You get one object with `title`, `is_live`, `live_id`, `url`, `cover_image_url`, the author's name, `author_id`, `author_douyin_id`, avatar and verification, `like_count`, `viewer_count` (people watching now, a point-in-time figure), `started_at` when given, and `streams`, the pull URLs by quality and format, such as flv or hls. The stream URLs are signed, expire, and are absent when the room is not live.
- Sync delivery · Price: $0.79 per 1,000 requests
- Parameters:
  - `room_id` (required): Numeric Douyin live room ID, the number in `https://live.douyin.com/<room_id>`; the link itself is accepted too.
- Returns fields: room_id, live_id, title, is_live, url, cover_image_url, author_name, author_id, author_douyin_id, author_avatar_url, author_is_verified, like_count, viewer_count, started_at, streams, platform
- Capability page: [https://everyinfra.com/en/douyin-api/live_room](https://everyinfra.com/en/douyin-api/live_room?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/douyin-api/live_room.md)

### feed — News feed
List the videos Douyin recommends on its home page or in one channel. Set `channel` to `home` (default), `game`, `anime`, `food`, `knowledge` or `music`. Each row is a video with caption, hashtags, engagement counts, author profile, cover, `video_url` and publish time. A page holds about 20 videos, sometimes fewer, and pages can repeat a video, so de-duplicate by `id`. Pass `next_page_token` back as `page_token` for the next page; each page is billed once.
- Sync delivery · Price: $0.56 per 1,000 requests
- Each call returns one page of up to 20 rows. The number of rows varies from page to page, so a short page is not the end. For the next page, pass the response's top-level next_page_token as page_token; stop when there is none. limit is accepted and has no effect.
- Parameters:
  - `channel` (optional): Which recommendations to read: `home` for the home page (default), `game`, `anime`, `food`, `knowledge` or `music`. One of: anime, food, game, home, knowledge, music.
  - `page_token` (optional): Page token for `feed`. Leave it out for the first page, then pass back the previous response's `next_page_token` exactly as received, keeping the other inputs unchanged. Tokens last 24 hours; the last page has no `next_page_token`. A page holds about 20 videos, sometimes fewer; pages can repeat a video, so de-duplicate by `id`.
- Returns fields: id, url, text, media_type, video_url, like_count, comment_count, share_count, collect_count, author_name, author_id, author_douyin_id, author_bio, author_avatar_url, author_follower_count, author_following_count, author_like_count, author_video_count, author_is_verified, cover_image_url, video_width, video_height, video_bitrates, has_watermark, duration_sec, duration_seconds, hashtags, posted_at, title, music, location, image_urls, is_deleted, is_private, platform
- Capability page: [https://everyinfra.com/en/douyin-api/feed](https://everyinfra.com/en/douyin-api/feed?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/douyin-api/feed.md)

### series_feed — Short-drama channel
List the short dramas on Douyin's short-drama channel, 16 per page. `genre` narrows the list to `hot`, `sweet_romance`, `comedy`, `uplifting`, `growth`, `suspense`, `family`, `urban`, `fantasy`, `xuanhuan`, `workplace`, `youth`, `costume`, `action`, `comeback` or `other`; leave it out for the channel's default picks. Each row has `series_id`, `name`, `description`, `url`, `cover_image_url`, `genres`, `sub_genres`, `status_text`, `episode_count`, `updated_to_episode`, `play_count`, `collect_count`, `is_paid` (with `paid_episode_count`, `episode_price_cny` and `full_price_cny` on paid dramas), `icp_number`, `episode_video_id`, the author and `last_episode_at`. Pages can repeat a drama, so de-duplicate by `series_id`.
- Sync delivery · Price: $0.56 per 1,000 requests
- Each call returns one page of up to 16 rows. The number of rows varies from page to page, so a short page is not the end. For the next page, pass the response's top-level next_page_token as page_token; stop when there is none. limit is accepted and has no effect.
- Parameters:
  - `genre` (optional): Short-drama genre: `hot`, `sweet_romance`, `comedy`, `uplifting`, `growth`, `suspense`, `family`, `urban`, `fantasy`, `xuanhuan`, `workplace`, `youth`, `costume`, `action`, `comeback` or `other`. Leave it out for the channel's default picks. One of: action, comeback, comedy, costume, family, fantasy, growth, hot, other, suspense, sweet_romance, uplifting, urban, workplace, xuanhuan, youth.
  - `page_token` (optional): Page token for `series_feed`. Leave it out for the first page, then pass back the previous response's `next_page_token` exactly as received, keeping the other inputs unchanged. Tokens last 24 hours; the last page has no `next_page_token`. A page holds 16 dramas; pages can repeat a drama, so de-duplicate by `series_id`.
- Returns fields: series_id, name, description, url, cover_image_url, genres, sub_genres, status_text, episode_count, updated_to_episode, play_count, collect_count, is_paid, paid_episode_count, episode_price_cny, full_price_cny, icp_number, episode_video_id, author_id, author_uid, author_name, author_douyin_id, author_avatar_url, author_is_verified, author_follower_count, created_at, updated_at, last_episode_at, platform
- Capability page: [https://everyinfra.com/en/douyin-api/series_feed](https://everyinfra.com/en/douyin-api/series_feed?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/douyin-api/series_feed.md)

### series_posts — Short-drama episodes
List the episodes of one Douyin short drama from its `series_id`, in episode order, up to 20 per page. Each row is a video with caption, engagement counts, author profile, cover and `video_url`, plus `episode`, `series_id` and `is_paid`. The video links of paid episodes are encrypted and do not play after download.
- Sync delivery · Price: $0.79 per 1,000 requests
- Each call returns one page of up to 20 rows. The number of rows varies from page to page, so a short page is not the end. For the next page, pass the response's top-level next_page_token as page_token; stop when there is none. limit is accepted and has no effect.
- Parameters:
  - `series_id` (required): A numeric Douyin short-drama ID, from the `series_id` of `series_feed` or `user_series` rows; a short-drama share link also works.
  - `page_token` (optional): Page token for `series_posts`. Leave it out for the first page, then pass back the previous response's `next_page_token` exactly as received, keeping the other inputs unchanged. Tokens last 24 hours; the last page has no `next_page_token`. A page holds up to 20 episodes, in episode order.
- Returns fields: id, url, text, media_type, video_url, like_count, comment_count, share_count, collect_count, author_name, author_id, author_douyin_id, author_bio, author_avatar_url, author_follower_count, author_following_count, author_like_count, author_video_count, author_is_verified, cover_image_url, video_width, video_height, video_bitrates, has_watermark, duration_sec, duration_seconds, hashtags, posted_at, title, music, location, image_urls, is_deleted, is_private, platform, episode, series_id, is_paid
- Capability page: [https://everyinfra.com/en/douyin-api/series_posts](https://everyinfra.com/en/douyin-api/series_posts?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/douyin-api/series_posts.md)

### user_series — Account short dramas
List the short dramas a Douyin account has published, from its `secUid` in `user_id` (a `MS4w` string) or a `https://www.douyin.com/user/<secUid>` link, up to 20 per page. Rows have the same fields as `series_detail`; `sub_genres` is often missing here, so read `series_detail` for it.
- Sync delivery · Price: $0.79 per 1,000 requests
- Each call returns one page of up to 20 rows. The number of rows varies from page to page, so a short page is not the end. For the next page, pass the response's top-level next_page_token as page_token; stop when there is none. limit is accepted and has no effect.
- Parameters:
  - `user_id` (required): The account whose short dramas you want: its `secUid` (starting `MS4w`) or a profile link `https://www.douyin.com/user/<secUid>`. Nicknames, Douyin IDs and short links are not accepted.
  - `page_token` (optional): Page token for `user_series`. Leave it out for the first page, then pass back the previous response's `next_page_token` exactly as received, keeping the other inputs unchanged. Tokens last 24 hours; the last page has no `next_page_token`. A page holds up to 20 dramas.
- Returns fields: series_id, name, description, url, cover_image_url, genres, sub_genres, status_text, episode_count, updated_to_episode, play_count, collect_count, is_paid, paid_episode_count, episode_price_cny, full_price_cny, icp_number, author_id, author_uid, author_name, author_douyin_id, author_avatar_url, author_is_verified, author_follower_count, created_at, updated_at, last_episode_at, platform
- Capability page: [https://everyinfra.com/en/douyin-api/user_series](https://everyinfra.com/en/douyin-api/user_series?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/douyin-api/user_series.md)

### danmaku — On-screen video comments
Read the on-screen comments (danmaku) of one Douyin video from its `url`: a numeric video ID, a `https://www.douyin.com/video/<video_id>` link, a `v.douyin.com` short link or a whole share text that contains a short link. Each page covers one stretch of the video of up to 32 seconds, so the number of rows per page varies; to read the whole video, keep passing `next_page_token` back as `page_token` until it is absent. Each row has `id`, `text`, `video_id`, `video_time` (mm:ss), `video_time_seconds`, `like_count`, `author_uid`, `is_ad` and `danmaku_count` (all danmaku on the video). Each page is billed once.
- Sync delivery · Price: $0.56 per 1,000 requests
- For the next page, pass next_page_token back as page_token with the other parameters unchanged; each page is one call.
- Parameters:
  - `url` (required): The Douyin video whose danmaku you want: a numeric video ID, a `https://www.douyin.com/video/<video_id>` link, a `v.douyin.com` short link or a whole share text that contains a short link.
  - `page_token` (optional): Page token for `danmaku`. Leave it out for the first page, then pass back the previous response's `next_page_token` exactly as received, keeping the other inputs unchanged. Tokens last 24 hours; the last page has no `next_page_token`. Each page is one stretch of up to 32 seconds of the video; to read the whole video, page until there is no `next_page_token`.
  - `limit` (optional): Positive integer (≥1): the maximum number of results to return; omit it to get every result from this call. Setting it only trims the response to at most this many and never fetches more; billing is the same with or without `limit`, whatever the value.
- Returns fields: id, text, video_id, video_time, video_time_seconds, like_count, author_uid, is_ad, danmaku_count, platform
- Capability page: [https://everyinfra.com/en/douyin-api/danmaku](https://everyinfra.com/en/douyin-api/danmaku?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/douyin-api/danmaku.md)

### live_viewers — Broadcast viewer ranking
Read the viewer ranking of one Douyin broadcast from its `live_id`: up to 200 viewers in one response, each with `rank`, `user_id`, `douyin_id`, `nickname`, `avatar_url`, `is_verified` and `url`. After the broadcast ends only a few viewers remain on the list.
- Sync delivery · Price: $0.56 per 1,000 requests
- Parameters:
  - `live_id` (required): The numeric ID of one broadcast, from the `live_id` of `live_room` or `user_live` rows. It changes each time the host goes live and is not the number in the live-room link. After the broadcast ends only a few viewers remain on the list.
  - `limit` (optional): Positive integer (≥1): the maximum number of results to return; omit it to get every result from this call. Setting it only trims the response to at most this many and never fetches more; billing is the same with or without `limit`, whatever the value.
- Returns fields: rank, user_id, douyin_id, nickname, avatar_url, is_verified, url, platform
- Capability page: [https://everyinfra.com/en/douyin-api/live_viewers](https://everyinfra.com/en/douyin-api/live_viewers?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/douyin-api/live_viewers.md)

### series_detail — Short-drama details
Read one Douyin short drama from its numeric `series_id` (from `series_feed` or `user_series`; a share link also works). You get one object with `name`, `description`, `url`, `cover_image_url`, `genres`, `sub_genres`, `status_text`, `episode_count`, `updated_to_episode`, `play_count`, `collect_count`, `is_paid` (with `paid_episode_count`, `episode_price_cny` and `full_price_cny` on paid dramas), `icp_number`, the author, `created_at`, `updated_at` and `last_episode_at`. List its episodes with `series_posts`.
- Sync delivery · Price: $0.79 per 1,000 requests
- Parameters:
  - `series_id` (required): A numeric Douyin short-drama ID, from the `series_id` of `series_feed` or `user_series` rows; a short-drama share link also works.
- Returns fields: series_id, name, description, url, cover_image_url, genres, sub_genres, status_text, episode_count, updated_to_episode, play_count, collect_count, is_paid, paid_episode_count, episode_price_cny, full_price_cny, icp_number, author_id, author_uid, author_name, author_douyin_id, author_avatar_url, author_is_verified, author_follower_count, created_at, updated_at, last_episode_at, platform
- Capability page: [https://everyinfra.com/en/douyin-api/series_detail](https://everyinfra.com/en/douyin-api/series_detail?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/douyin-api/series_detail.md)

### mix_detail — Collection details
Read one Douyin collection (mix) from its numeric `mix_id` (from `user_mixes`; a `https://www.douyin.com/collection/<ID>` link also works). You get `name`, `description`, `url`, `cover_image_url`, `episode_count`, `play_count`, `collect_count`, the author, `created_at`, `updated_at` and `is_complete`. When `is_complete` is false, `play_count`, `collect_count`, `description`, `created_at` and `updated_at` are missing: page through `user_mixes` to the same `mix_id` for them. List the videos with `mix_posts`.
- Sync delivery · Price: $0.56 per 1,000 requests
- Parameters:
  - `mix_id` (required): A numeric Douyin collection ID, from the `mix_id` of `user_mixes` rows; a `https://www.douyin.com/collection/<ID>` link also works.
- Returns fields: mix_id, name, description, url, cover_image_url, episode_count, play_count, collect_count, author_id, author_uid, author_name, author_douyin_id, author_avatar_url, author_is_verified, author_follower_count, created_at, updated_at, is_complete, platform
- Capability page: [https://everyinfra.com/en/douyin-api/mix_detail](https://everyinfra.com/en/douyin-api/mix_detail?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/douyin-api/mix_detail.md)

### live_session — Broadcast details
Read one Douyin broadcast from its `live_id` (from `live_room` or `user_live` rows; a new one each time the host goes live, not the number in the live-room link). You can still read it after the broadcast ends. You get `room_id`, `live_id`, `title`, `is_live`, `url`, `cover_image_url`, the host's name, IDs, avatar, verification and follower count, `like_count`, `viewer_count`, `started_at`, `streams` (signed pull URLs that expire, only while live) and `is_paid`.
- Sync delivery · Price: $0.79 per 1,000 requests
- Parameters:
  - `live_id` (required): The numeric ID of one broadcast, from the `live_id` of `live_room` or `user_live` rows. It changes each time the host goes live and is not the number in the live-room link. You can still look up a broadcast after it ends.
- Returns fields: room_id, live_id, title, is_live, url, cover_image_url, author_name, author_id, author_douyin_id, author_avatar_url, author_is_verified, like_count, viewer_count, started_at, streams, platform, author_uid, author_follower_count, is_paid
- Capability page: [https://everyinfra.com/en/douyin-api/live_session](https://everyinfra.com/en/douyin-api/live_session?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/douyin-api/live_session.md)

### user_live — User live
Check whether a Douyin host is live now, from their `secUid` in `user_id` (a `MS4w` string) or a `https://www.douyin.com/user/<secUid>` link. You get one object with `is_live` and the host's name, IDs, avatar, verification and follower count; while the host is live it also has `room_id`, `live_id`, `title`, `url`, `cover_image_url`, `like_count`, `viewer_count`, `started_at` and `streams` (signed pull URLs that expire). Pass `live_id` to `live_session` or `live_viewers`.
- Sync delivery · Price: $0.79 per 1,000 requests
- Parameters:
  - `user_id` (required): The host whose live status you want: their `secUid` (starting `MS4w`) or a profile link `https://www.douyin.com/user/<secUid>`. Nicknames, Douyin IDs and short links are not accepted.
- Returns fields: room_id, live_id, title, is_live, url, cover_image_url, author_name, author_id, author_douyin_id, author_avatar_url, author_is_verified, like_count, viewer_count, started_at, streams, platform, author_uid, author_follower_count, is_paid
- Capability page: [https://everyinfra.com/en/douyin-api/user_live](https://everyinfra.com/en/douyin-api/user_live?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/douyin-api/user_live.md)

### profile_by_id — Profile by numeric ID
Look up a Douyin account by its numeric `uid`: the `author_uid` on video and comment rows, or the `uid` from `profile`. You get one object with `user_id` (the secUid for `profile` and `user_posts`), `douyin_id`, `nickname`, `bio`, `url`, `follower_count`, `following_count`, `like_count`, `video_count`, `is_verified`, `avatar_url` and `uid`.
- Sync delivery · Price: $0.56 per 1,000 requests
- Parameters:
  - `uid` (required): The account's numeric Douyin UID: the `author_uid` on video and comment rows, or the `uid` from `profile`.
- Returns fields: user_id, douyin_id, nickname, bio, url, follower_count, following_count, like_count, video_count, is_verified, avatar_url, platform, uid
- Capability page: [https://everyinfra.com/en/douyin-api/profile_by_id](https://everyinfra.com/en/douyin-api/profile_by_id?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/douyin-api/profile_by_id.md)

## Douyin API questions

### What can I retrieve with the Douyin API?

Set `platform` to `douyin`. The current catalog lists search, profiles, posts by user, video details, comments, and more. These action names identify different Douyin objects or views; they are not interchangeable search modes.

### Does Douyin have an official API?

Douyin has an official open platform for mainland China entities and real-name individuals, who must pass identity verification. Keyword video search needs a beta application and a capability application, is open only to launched apps with an established user base, and defaults to 1,000 calls a day. The video list endpoint returns only the authorizing account's own videos. EveryInfra reads public content with one API key, without applying to Douyin.

Official sources (checked 2026-11-21): [Douyin Open Platform: joining as a developer](https://developer.open-douyin.com/docs/resource/zh-CN/developer/join/join-into-developer-platform) · [Douyin Open Platform: video search capability](https://developer.open-douyin.com/docs/resource/zh-CN/dop/ability/search-management/item-search)

### Do I need a Douyin developer account or API key?

No. Requests go through EveryInfra with an EveryInfra API key: sign up, create a key in the console and send it as `Authorization: Bearer <API_KEY>`. You do not register a Douyin developer app, apply for Douyin API access or sign in with a Douyin account, and the actions return public Douyin data only.

### How much does the Douyin API cost per 1,000 requests?

each action's price is listed in the table on this page and in the public catalog. There is no subscription: you top up a USD balance and pay per call, and failed calls and empty results are not charged.

### Which input starts the Douyin `search` request?

Search term for the video search action, passed as a string, for example `latte art`. It finds videos; it is not an account nickname or a video ID. Send it as `keyword` inside `params`.

### Which fields can Douyin `search` return?

Its declared schema includes `next_page_token`, `text`, `media_type`, and `video_url`. A declared field can still be absent from an individual record, and every other action has its own field list.

### Does every Douyin action return immediately?

Actions labeled asynchronous return a job ID you poll. `xingtu_video_performance`, `posts_batch`, `profiles_batch`, and `media_links` run synchronously only: they read everything they return (every target of a batch, or every SKU of a product) within the same call, and a request with `"mode": "async"` gets a 422 before anything is charged. Every other action can also run asynchronously: add `"mode": "async"` to the request body to receive a job ID immediately, useful for slow tasks or large limits. The current catalog contains sync delivery.

## Also

- Machine catalog (no key): https://everyinfra.com/openapi.json · GET /api/v1/social/catalog?platform=douyin
- API guide for AI clients: https://everyinfra.com/llms.txt · agents guide: https://everyinfra.com/agents.md
