抖音
抖音用户作品 API
获取用户发布的视频。每次请求消耗 1 积分。
POST/api/v1/douyin/user/posts
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_cursorstring上一次响应返回的分页游标 (cursor)
countinteger每页返回的条数,1-50。
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
result = client.douyin.request("/api/v1/douyin/user/posts", {"sec_user_id": "..."})
print(result)Response
"max_cursor": "1629951449000",
"has_more": true
},
"response_time": 1302
}