微博
微博高级搜索 API
支持按类型和时间筛选的关键词搜索。每次请求消耗 1 积分。
POST/api/v1/weibo/search/advanced
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/jsonqstringrequired搜索关键词,最多 200 个字符。
Example: yu7
search_typestring例如 "hot"、"realtime"、"video"
include_typestring例如 "pic"、"video"、"article"
timescopestring时间范围,例如 custom:2025-09-01-0:2025-09-08-23
pageinteger结果页码,从 1 开始,取值 1-50。
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
result = client.weibo.request("/api/v1/weibo/search/advanced", {"q": "yu7"})
print(result)Response
"result_count": 20,
"has_more": true,
"next_page": "/weibo?q=yu7&Refer=g&page=2"
},
"response_time": 2106
}