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 传空字符串。offset 和 search_id,page 每次加 1。config (业务配置) 和 data (业务数据) 两部分。payload = {
"keyword": "游戏直播",
"offset": 0,
"page": 0,
"search_id": ""
}config: 业务配置信息offset: 下一页的偏移游标has_more: 是否还有更多数据 (1=有, 0=无)search_id: 搜索ID (用于翻页)data[]: 直播搜索结果列表type: 结果类型 (通常为 999,表示直播类型)aweme_info: 直播间基本信息room_id: 直播间IDtitle: 直播标题status: 直播状态 (2=正在直播, 4=已结束)user_count: 当前观看人数total_user: 累计观看人数create_time: 直播开始时间戳owner: 主播信息id: 主播IDsec_uid: 加密 主播IDnickname: 主播昵称avatar_thumb: 主播头像缩略图avatar_medium: 主播中等尺寸头像avatar_larger: 主播高清头像follow_info: 关注信息follower_count: 粉丝数following_count: 关注数stream_url: 拉流地址信息flv_pull_url: FLV格式拉流地址FULL_HD1: 蓝光画质HD1: 超清画质SD1: 标清画质SD2: 高清画质hls_pull_url: HLS格式拉流地址 (可选)rtmp_pull_url: RTMP格式拉流地址 (可选)cover: 直播间封面信息url_list[]: 封面图URL列表stats: 直播间统计数据total_user: 总观看人数like_count: 点赞数user_count_str: 观看人数显示文本mosaic_status: 马赛克状态 (用于内容审核)room_tags[]: 直播间标签列表id: 标签IDname: 标签名称offset and page parameters.offset and page to 0, search_id to empty strings.offset, and search_id from the previous response, increment page by 1.config (business configuration) and data (business data).payload = {
"keyword": "gaming live",
"offset": 0,
"page": 0,
"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[]: Live stream search results listtype: Result type (usually 999, indicating live stream type)aweme_info: Live room basic informationroom_id: Live room IDtitle: Live stream titlestatus: Live status (2=streaming, 4=ended)user_count: Current viewer counttotal_user: Total viewer countcreate_time: Stream start timestampowner: Streamer informationid: Streamer IDsec_uid: Encrypted streamer IDnickname: Streamer nicknameavatar_thumb: Streamer avatar thumbnailavatar_medium: Streamer medium size avataravatar_larger: Streamer large size avatarfollow_info: Follow informationfollower_count: Follower countfollowing_count: Following countstream_url: Stream URL informationflv_pull_url: FLV format stream URLsFULL_HD1: Full HD qualityHD1: HD qualitySD1: SD qualitySD2: High qualityhls_pull_url: HLS format stream URLs (optional)rtmp_pull_url: RTMP format stream URLs (optional)cover: Live room cover informationurl_list[]: Cover image URL liststats: Live room statisticstotal_user: Total viewer countlike_count: Like countuser_count_str: Viewer count display textmosaic_status: Mosaic status (for content moderation)room_tags[]: Live room tag listid: Tag IDname: Tag nameAuthorization: Bearer ********************{
"keyword": "猫咪",
"offset": 0,
"page": 0,
"backtrace": "",
"search_id": ""
}curl --location --request POST 'https://api.tikhub.io/api/v1/douyin/search/fetch_live_search_v4' \
--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
}