微博
微博用户搜索 API
按关键词和筛选条件搜索用户。每次请求消耗 1 积分。
POST/api/v1/weibo/search/users
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/jsonquerystring搜索关键词,最多 200 个字符。
Example: yu7
pageinteger结果页码,从 1 开始,取值 1-50。
regionstring地区,例如 custom:11:1
authstring例如 "org_vip"
genderstring"man" 或 "woman"
agestring例如 "22y"
nicknamestring按昵称筛选。
tagstring按主页标签筛选。
schoolstring按主页填写的学校筛选。
workstring按主页填写的工作单位筛选。
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
result = client.weibo.request("/api/v1/weibo/search/users", {})
print(result)Response
"count": 19
},
"response_time": 1363
}