搜索视频/Search video
Changed on[中文]
用途:
- 搜索视频
参数:
- keyword: 关键词
- offset: 偏移量,第一次请求传0,后续请求传上一次请求返回的offset
- order_type: 排序方式,为空时按照默认排序,以下为可选排序方式。
- 最新: publish_time
- 最热: play_count
- min_duration: 最小时长,默认空,单位秒。
- max_duration: 最大时长,默认空,单位秒。
返回:
- 视频列表
[English]
Purpose:
- Search video
Parameters:
- keyword: Keyword
- offset: Offset, pass 0 for the first request, pass the offset returned by the previous request for subsequent requests
- order_type: Order type, empty for default sorting, the following are optional sorting methods.
- Newest: publish_time
- Hottest: play_count
- min_duration: Minimum duration, default empty, in seconds.
- max_duration: Maximum duration, default empty, in seconds.
Return:
- Video list
[示例/Example]
搜索关键字为“抖音”的视频,按照播放量排序,时长1-180秒(1-3分钟) Search for videos with the keyword "抖音", sorted by play count, duration 1-180 seconds (1-3 minutes) keyword: "抖音" order_type: "play_count" min_duration: 1 max_duration: 180
Request
- Base URLhttps://api.tikhub.io (the document declares no server; this is the origin it was published from)
- AuthHTTP bearer
Query parameters
关键词/Keyword
偏移量/Offset
排序方式/Order type
最小时长/Minimum duration
最大时长/Maximum duration
Response
Successful Response
Changes
- info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status
- info
- info
the
response's property default value changed fromThis request will be cached. You can access the cached result directly using the URL belowvalid for 24 hours. Accessing the cache will not incur additional charges.toThis response is cached and accessible via the URL below for 24 hours at no extra cost. The cache is for request tracing only — it doesn't affect the API's data freshness and won't be returned through the API again.for the status - info
the
response's property default value changed from本次请求将被缓存,你可以使用下面的 URL 直接访问缓存结果,有效期为 24 小时,访问缓存不会产生额外费用。to本次响应已缓存,可通过下方 URL 直接查看,有效期 24 小时,访问缓存链接无额外费用。缓存仅用于请求溯源,不影响接口数据的时效性,也不会再次通过接口返回。for the status
- info