微博
微博用户博文搜索 API
在单个用户的微博中搜索。每次请求消耗 1 积分。
POST/api/v1/weibo/user/search-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
qstring在该用户微博中匹配的关键词
pageinteger结果页码,从 1 开始。取值 1-500。
starttimeintegerUnix 起始时间
endtimeintegerUnix 结束时间
hasoriinteger取值 0-1。
hasretinteger取值 0-1。
hastextinteger取值 0-1。
haspicinteger取值 0-1。
hasvideointeger取值 0-1。
hasmusicinteger取值 0-1。
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
result = client.weibo.request("/api/v1/weibo/user/search-posts", {"uid": "7277477906"})
print(result)Response
"posts": [],
"since_id": null,
"total": 0
},
"response_time": 1868
}