获取直播搜索 V1/Fetch live search V1
Douyinapi
About
获取直播搜索 V1/Fetch live search V1
Documentation
获取直播搜索 V1/Fetch live search V1
[中文]
用途:
- 获取抖音 App 中直播搜索结果。
- 返回正在直播的房间信息,包括主播资料、直播间封面、观众人数、拉流地址等。
备注:
- 仅返回直播类型内容。
- 初次请求时
cursor传0,search_id传空字符串。 - 翻页请求时,使用上一次响应返回的
cursor和search_id。
参数:
- keyword: 搜索关键词,如 "游戏"
- cursor: 翻页游标(首次请求传0)
- sort_type: 排序方式
0: 综合排序1: 最多点赞2: 最新发布
- publish_time: 发布时间筛选
0: 不限1: 最近一天7: 最近一周180: 最近半年
- filter_duration: 视频时长过滤
0: 不限
- content_type: 内容类型(固定传直播类型)
- search_id: 搜索ID(翻页时使用)
请求体示例:
payload = {
"keyword": "游戏",
"cursor": 0,
"sort_type": "0",
"publish_time": "0",
"filter_duration": "0",
"content_type": "1",
"search_id": ""
}
返回(部分常用字段,实际返回字段更多,一切以实际响应为准):
-
cursor: 下一页游标 -
has_more: 是否有更多数据(1=有,0=无) -
data[]: 直播房间列表type: 返回内容类型(固定为1)lives:aweme_id: 直播对应的内容IDgroup_id: 群组ID(与aweme_id类似,可用于跳转)author:uid: 主播用户IDnickname: 主播昵称short_id: 主播短IDavatar_thumb.url_list: 缩略头像URL列表avatar_medium.url_list: 中等头像URL列表avatar_larger.url_list: 高清头像URL列表room_id: 当前直播间IDroom_cover.url_list: 直播封面图URL列表
video:tags[]: 直播标签(如“游戏”、“聊天”等)title: 标签标题url.url_list: 标签图标URL列表
rawdata: 直播详细数据(结构化JSON字符串,可解析得到以下信息)title: 直播标题user_count: 当前在线观众数stream_url: 拉流信息flv_pull_url: 拉流地址列表(不同清晰度)SD1: 标清SD2: 高清HD1: 超清FULL_HD1: 蓝光ORIGION: 原画
hls_pull_url: HLS播放地址(部分直播间可能存在)
cover.url_list: 直播间封面图size: 分辨率(如1920x1080)stats.total_user: 在线观众数
-
extra:now: 当前服务器时间戳logid: 请求日志IDsearch_request_id: 搜索请求唯一ID
[English]
Purpose:
- Fetch live stream search results from Douyin App.
- Returns information about live rooms including streamer profile, cover image, viewer count, and stream URLs.
Notes:
- Only live streaming content is returned.
- Set
cursorto 0 andsearch_idto an empty string for the first request. - Use the last response's
cursorandsearch_idfor pagination.
Parameters:
- keyword: Search keyword, e.g., "games"
- cursor: Pagination cursor (0 for first request)
- 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: Unlimited
- content_type: Content type (fixed for live stream)
- search_id: Search ID for pagination
Request Body Example:
payload = {
"keyword": "games",
"cursor": 0,
"sort_type": "0",
"publish_time": "0",
"filter_duration": "0",
"content_type": "1",
"search_id": ""
}
Response (common fields, actual response may contain more fields):
cursor: Cursor for next pagehas_more: Whether there are more results (1=Yes, 0=No)data[]: List of live stream roomstype: Result type (fixed to 1)lives:aweme_id: Related content IDgroup_id: Group IDauthor:uid: Streamer's user IDnickname: Streamer's nicknameshort_id: Streamer's short IDavatar_thumb.url_list: Thumbnail avatar URLsavatar_medium.url_list: Medium avatar URLsavatar_larger.url_list: Large avatar URLsroom_id: Room IDroom_cover.url_list: Room cover image URLs
video:tags[]: Live tags (e.g., "Gaming", "Chatting")title: Tag titleurl.url_list: Tag icon URLs
rawdata: Raw live room data (as JSON string)title: Live titleuser_count: Current viewer countstream_url: Stream URLsflv_pull_url: FLV stream URLs by resolutionhls_pull_url: HLS stream URL (optional)
cover.url_list: Room cover imagesize: Resolution (e.g., 1920x1080)stats.total_user: Viewer count
extra:now: Current server timestamplogid: Request log IDsearch_request_id: Unique search session ID
Imported from a validated TikHub OpenAPI document. Pricing must be reviewed before enabling.
Try 获取直播搜索 V1/Fetch live search V1
Test this model in the Sandbase Playground with your own prompts.
Open in PlaygroundRelated Models
获取话题搜索 V1/Fetch hashtag search V1Douyinapi获取话题搜索 V2/Fetch hashtag search V2Douyinapi获取话题推荐搜索/Fetch hashtag suggestionsDouyinapi获取讨论搜索/Fetch discussion searchDouyinapi获取经验搜索/Fetch experience searchDouyinapi获取综合搜索 V1/Fetch general search V1Douyinapi获取综合搜索 V2/Fetch general search V2Douyinapi获取图片搜索/Fetch image searchDouyinapi