Weibo Hot Ranking Timeline API
Trending posts over a time window. Costs 1 credit per request.
POST/api/v1/weibo/rankings/hot-timeline
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/jsonranking_typestringrequirede.g. "hour", "day"
Example: hour
since_idstringPagination cursor from a previous response. Omit for the first page.
max_idstringPagination cursor from a previous response. Omit for the first page.
countintegerItems to return per page. 1-50.
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
result = client.weibo.request("/api/v1/weibo/rankings/hot-timeline", {"ranking_type": "hour"})
print(result)Response
"since_id": "0",
"max_id": "2",
"total": 100
},
"response_time": 1668
}