抖音
抖音话题视频 API
获取某个话题下的视频。每次请求消耗 1 积分。
POST/api/v1/douyin/hashtag/videos
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/jsonch_idstringrequired话题 ID,取自话题接口的响应。
Example: 1568943621383170
cursorinteger上一次响应返回的分页游标(cursor)。请求第一页时省略。
countinteger每页返回的条数,取值 1-50。
sort_typeinteger0=综合排序,1=最多点赞,2=最新发布
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
result = client.douyin.request("/api/v1/douyin/hashtag/videos", {"ch_id": "1568943621383170"})
print(result)Response
"videos": [],
"max_cursor": "5",
"has_more": true
},
"response_time": 3175
}