微博
微博 AI 搜索 API
针对查询返回 AI 辅助生成的回答。每次请求消耗 1 积分。
POST/api/v1/weibo/search/ai
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: #法国#
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
result = client.weibo.request("/api/v1/weibo/search/ai", {"query": "#法国#"})
print(result)Response
"query": "yu7",
"summary": null,
"share_text": "#yu7#的相关内容,来智搜看看"
},
"response_time": 1420
}