Weibo Realtime Search API
Newest posts matching a keyword. Costs 1 credit per request.
POST/api/v1/weibo/search/realtime
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/jsonquerystringrequiredSearch keyword. Max 200 characters.
Example: yu7
pageintegerResults page, 1-based. 1-50.
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
result = client.weibo.request("/api/v1/weibo/search/realtime", {"query": "yu7"})
print(result)Response
"result_count": 9,
"has_more": true,
"next_page": "/realtime?q=yu7&rd=realtime&tw=realtime&Refer=weibo_realtime&page=2"
},
"response_time": 1754
}