Weibo Search User Posts API
Search within one user's posts. Costs 1 credit per request.
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/jsonuidstringrequiredNumeric user id.
Example: EX_UID
qstringKeyword to match within the user's posts
pageintegerResults page, 1-based. 1-500.
starttimeintegerUnix start time
endtimeintegerUnix end time
hasoriinteger0-1.
hasretinteger0-1.
hastextinteger0-1.
haspicinteger0-1.
hasvideointeger0-1.
hasmusicinteger0-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": "EX_UID"})
print(result)Response
"posts": [],
"since_id": null,
"total": 0
},
"response_time": 1868
}