抖音
抖音用户关注 API
获取用户关注的账号列表。每次请求消耗 1 积分。
POST/api/v1/douyin/user/following
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/jsonsec_user_idstringrequired用户的 sec_user_id,即抖音内部使用的稳定 id。
max_timestring上一次响应返回的分页时间戳
countinteger每页返回的条数,1-50。
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
result = client.douyin.request("/api/v1/douyin/user/following", {"sec_user_id": "..."})
print(result)Response
"max_time": "1523438740",
"has_more": false
},
"response_time": 897
}