douyin/search/general-search-v2
Fetch search results from Douyin App's general search tab (not standalone video search). This API may be less stable than V1, serving as a backup. Supports filtering by keyword, sort type, publish time, video duration, a...
Input
Idle
Example output — click Run to generate your own
API README
Fetch general search V2
Purpose:
- Fetch search results from Douyin App's general search tab (not standalone video search).
- This API may be less stable than V1, serving as a backup.
- Supports filtering by keyword, sort type, publish time, video duration, and content type.
- Supports pagination through
cursor,search_id, andbacktrace.
Notes:
- Set
cursorto 0,search_idandbacktraceto empty strings for the first request. - For pagination, obtain
cursor,search_id, andbacktracevalues from the previous response. - The response contains rich information including video details, author info, music, hashtags, playback info, and interaction metrics.
Parameters:
- keyword: Search keyword, e.g., "cat"
- 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 (empty for first request, obtained from previous response for pagination)
- backtrace: Backtrace identifier (empty for first request, obtained from previous response for pagination)
Request Body Example:
payload = {
"keyword": "cat",
"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):
data: List of search result itemstype: Result type (usually1)aweme_info: Video detailed informationaweme_id: Video IDdesc: Video descriptionauthor:uid: Author's user IDnickname: Author's nicknameis_verified: Whether the author is verifiedregion: Author's regionavatar_thumb.url_list: List of thumbnail avatar URLsavatar_medium.url_list: List of medium size avatar URLsavatar_larger.url_list: List of large size avatar URLs
music:id_str: Music IDtitle: Music titleauthor: Music creator's nameplay_url.url_list: List of music play URLs
cha_list:cha_name: Hashtag nameshare_url: Hashtag share URL
video:play_addr.url_list: List of video play URLscover.url_list: List of cover image URLsdynamic_cover.url_list: List of dynamic cover URLsorigin_cover.url_list: List of original cover URLswidth: Video width (pixels)height: Video height (pixels)ratio: Resolution ratio (e.g., 540p)duration: Duration in millisecondsdownload_addr.url_list: List of video download URLs
statistics:comment_count: Number of commentsdigg_count: Number of likesshare_count: Number of sharesplay_count: Number of playscollect_count: Number of collects
status:is_delete: Whether the video is deletedis_private: Whether the video is privateallow_share: Whether sharing is allowedallow_comment: Whether commenting is allowed
share_url: External share link
Imported from a validated TikHub OpenAPI document. Pricing must be reviewed before enabling.

