微博
微博视频搜索 API
按关键词搜索视频。每次请求消耗 1 积分。
POST/api/v1/weibo/search/videos
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/jsonquerystringrequired搜索关键词,最多 200 个字符。
Example: yu7
modestring"hot" 或 "all"
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/videos", {"query": "yu7"})
print(result)Response
"result_count": 10,
"has_more": true,
"next_page": "/video?q=yu7&xsort=hot&hasvideo=1&tw=video&Refer=user_video&page=2"
},
"response_time": 2099
}