douyin/search/video-search-v1
Fetch video content search results from Douyin App based on a keyword. This API is focused on video search results only.
Input
Idle
Example output — click Run to generate your own
API README
Fetch video search V1
Purpose:
- Fetch video content search results from Douyin App based on a keyword.
- This API is focused on video search results only.
Notes:
- Set
cursorto 0 andsearch_idto an empty string for the first request. - Each returned video includes rich details: author, video info, music, statistics, etc.
- Also returns a set of suggested keywords (
guide_search_words) for user guidance.
Parameters:
- keyword: Search keyword, e.g., "Artificial Intelligence"
- cursor: Pagination cursor (0 for the first page, use the last response cursor for subsequent pages)
- sort_type: Sorting method
0: Comprehensive1: Most likes2: Latest
- publish_time: Publish time filter
0: Unlimited1: Last day7: Last week180: Last half year
- filter_duration: Video duration filter
0: Unlimited0-1: Within 1 minute1-5: 1 to 5 minutes5-10000: More than 5 minutes
- content_type: Content type filter
0: Unlimited1: Video2: Picture3: Article
- search_id: Search ID used for pagination(obtained from the last response)
- backtrace: Backtrace identifier used for pagination(obtained from the last response)
Request Body Example:
payload = {
"keyword": "Artificial Intelligence",
"cursor": 0,
"sort_type": "0",
"publish_time": "0",
"filter_duration": "0",
"content_type": "0",
"search_id": "",
"backtrace": ""
}
Response (common fields, actual response may contain more fields):
-
status_code: Response status code (0 = success) -
cursor: Cursor for the next page -
has_more: Whether more data is available (1=Yes, 0=No) -
data[]: List of video search resultstype: Result type (usually1)aweme_info: Detailed video information- Basic info:
aweme_id: Video IDdesc: Descriptioncreate_time: Publish timestamp
- Author (
author):uid: User IDnickname: Nicknameis_verified: Whether verifiedregion: Regionavatar_thumb.url_list: Thumbnail avatarsfollower_count: Follower countenterprise_verify_reason: Enterprise verification reason
- Music (
music):id_str: Music IDtitle: Music titleauthor: Music creatorplay_url.url_list: Music play URLs
- Video (
video):play_addr.url_list: Play URLscover.url_list: Cover imagesdynamic_cover.url_list: Dynamic coversorigin_cover.url_list: Original coversratio: Resolution, e.g., "720p"duration: Video duration (ms)bit_rate[]: Multiple resolution sourcesgear_name: Gear namebit_rate: Bit rateplay_addr.url_list: Play URLs
- Statistics (
statistics):comment_count: Number of commentsdigg_count: Number of likesshare_count: Number of sharesplay_count: Number of plays
- Status (
status):is_delete: Whether deletedis_private: Whether privateallow_share: Whether sharing is allowedallow_comment: Whether commenting is allowed
- Other fields:
share_url: External share linkuser_digged: Whether liked (0=No, 1=Yes)
- Basic info:
-
guide_search_words[]: Suggested keywordsid: Suggestion IDword: Suggested keywordtype: Suggestion type (usuallyrecom)query_id: Suggestion query ID
-
extra:now: Current server timestamplogid: Log ID
Imported from a validated TikHub OpenAPI document. Pricing must be reviewed before enabling.

