抖音
抖音相关视频 API
获取与指定视频一同推荐的相关视频。每次请求消耗 1 积分。
POST/api/v1/douyin/related
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/jsonaweme_idstringrequired视频 id。
countinteger每页返回的条数,1-50。
refresh_indexinteger刷新序号,递增后可获取推荐流中的另一批内容。
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
result = client.douyin.request("/api/v1/douyin/related", {"aweme_id": "..."})
print(result)Response
"max_cursor": null,
"has_more": true
},
"response_time": 2491
}