Explore our Marketplace to buy and sell APIs, services, and social media solutions. Connect with a vibrant community of developers, businesses, and creators!
offset 和 page 参数进行翻页。offset 和 page 均传 0,search_id 传空字符串,backtrace 传空字符串。offset、backtrace 和 search_id,page 每次加 1。config (业务配置) 和 data (业务数据) 两部分。payload = {
"keyword": "猫咪",
"offset": 0,
"page": 0,
"backtrace": "",
"search_id": ""
}config: 业务配置信息offset: 下一页的偏移游标has_more: 是否还有更多数据 (1=有, 0=无)search_id: 搜索ID (用于翻页)backtrace: 回溯参数 (用于翻页)data[]: 搜索结果列表 (包含多种类型的内容)type: 结果类型 (1=视频, 2=用户, 3=话题等)aweme_info: 视频信息 (当 type=1 时)aweme_id: 视频IDdesc: 视频描述author: 作者信息uid: 用户IDnickname: 用户昵称avatar_thumb: 头像缩略图video: 视频播放信息play_addr: 播放地址cover: 封面图duration: 视频时长(毫秒)statistics: 统计数据digg_count: 点赞数comment_count: 评论数share_count: 分享数play_count: 播放次数user_list: 用户信息列表 (当包含用户结果时)challenge_list: 话题列表 (当包含话题结果时)offset and page parameters.offset and page to 0, search_id and backtrace to empty strings.offset, backtrace, and search_id from the previous response, increment page by 1.config (business configuration) and data (business data).payload = {
"keyword": "cat",
"offset": 0,
"page": 0,
"backtrace": "",
"search_id": ""
}config: Business configurationoffset: Next page offset cursorhas_more: Whether there are more results (1=yes, 0=no)search_id: Search ID for paginationbacktrace: Backtrace parameter for paginationdata[]: Search results list (contains multiple types of content)type: Result type (1=video, 2=user, 3=hashtag, etc.)aweme_info: Video information (when type=1)aweme_id: Video IDdesc: Video descriptionauthor: Author informationuid: User IDnickname: User nicknameavatar_thumb: Avatar thumbnailvideo: Video playback informationplay_addr: Play addresscover: Cover imageduration: Video duration (milliseconds)statistics: Statisticsdigg_count: Like countcomment_count: Comment countshare_count: Share countplay_count: Play countuser_list: User list (when results contain users)challenge_list: Hashtag list (when results contain hashtags)Authorization: Bearer ********************{
"keyword": "猫咪",
"offset": 0,
"page": 0,
"backtrace": "",
"search_id": ""
}curl --location --request POST 'https://api.tikhub.io/api/v1/douyin/search/fetch_general_search_v5' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"keyword": "猫咪",
"offset": 0,
"page": 0,
"backtrace": "",
"search_id": ""
}'{
"code": 200,
"request_id": "string",
"message": "Request successful. This request will incur a charge.",
"message_zh": "请求成功,本次请求将被计费。",
"support": "Discord: https://discord.gg/aMEAS8Xsvz",
"time": "string",
"time_stamp": 0,
"time_zone": "America/Los_Angeles",
"docs": "string",
"cache_message": "string",
"cache_message_zh": "string",
"cache_url": "string",
"router": "",
"params": {},
"data": null
}