微博
微博用户博文 API
获取用户发布的微博,可选详细程度。每次请求消耗 1 积分。
POST/api/v1/weibo/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/jsonuidstringrequired数字用户 id。
Example: 7277477906
pageinteger结果页码,从 1 开始。取值 1-500。
featureinteger详细程度,取值 0-3。
since_idstring上一次响应返回的分页游标
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
result = client.weibo.request("/api/v1/weibo/user/posts", {"uid": "7277477906"})
print(result)Response
"since_id": "5337728581372097kp2",
"total": 21143
},
"response_time": 1657
}