获取指定关键词的音乐搜索结果/Get music search results of specified keywords
Changed on[中文]
用途:
- 获取指定关键词的音乐搜索结果
参数:
- keyword: 关键词
- offset: 偏移量,从0开始,第二页从响应中获取cursor的值作为offset继续请求。
- count: 数量,不要超过20
- filter_by: 过滤类型,0-全部,1-标题,2-作者,默认为0-全部
- sort_type: 排序类型,0-相关度,1-最多使用,2-最新,3-时长最短,4-时长最长,默认为0-相关度
- region: 地区,默认为US-美国,可选值请参考TikTok地区代码或ISO 3166-1 alpha-2国家代码。
返回:
- 音乐搜索结果
[English]
Purpose:
- Get music search results of specified keywords
Parameters:
- keyword: Keyword
- offset: Offset, starting from 0, the second page gets the cursor value from the response as the offset to continue the request.
- count: Number, do not exceed 20
- filter_by: Filter type, 0-All, 1-Title, 2-Author, default is 0-All
- sort_type: Sort type, 0-Relatedness, 1-Most used, 2-Latest, 3-Shortest duration, 4-Longest duration, default is 0-Relatedness
- region: Region, default is US-America, for optional values please refer to TikTok region codes or ISO 3166-1 alpha-2 country codes.
Return:
- Music search results
[示例/Example]
keyword = "Cat" offset = 0 count = 20 filter_by = 0 sort_type = 0 region = "US"
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
数量/Number
过滤类型/Filter type
排序类型/Sort type
地区/Region
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