抖音
抖音首页推荐 API
获取首页推荐流。每次请求消耗 1 积分。
POST/api/v1/douyin/home-feed
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/jsoncountinteger每页返回的条数,取值 1-20。
refresh_indexinteger刷新序号,递增后可拉取推荐流中不同的一批内容。
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
result = client.douyin.request("/api/v1/douyin/home-feed", {})
print(result)Response
"max_cursor": null,
"has_more": true
},
"response_time": 3883
}