抖音
抖音话题搜索 API
按关键词搜索话题。每次请求消耗 10 积分。
POST/api/v1/douyin/search/hashtags
Authorizations
AuthorizationstringheaderrequiredBearer authentication header of the form Bearer <token>, where <token> is your Scavio API key (e.g. Bearer sk_live_your_key).
Body
application/jsonkeywordstringrequired搜索关键词,1-200 个字符。
Example: 美食
offsetinteger上一次响应返回的分页偏移量(offset)
pageinteger页码,从 1 开始,范围 1-200。
cursorinteger上一次响应返回的分页游标(cursor)
search_idstring上一次响应返回的搜索 id,用于分页
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
result = client.douyin.request("/api/v1/douyin/search/hashtags", {"keyword": "美食"})
print(result)Response
"has_more": false
},
"response_time": 1431
}