Weibo/微博
综合搜索
POST
https://api.getoneapi.com/api/weibo/search请求参数
Header 参数
Authorization
string
必需
在 Header 添加参数 Authorization,其值为在 Bearer 之后拼接 apikey
默认值:
Bearer YOUR_API_KEY
Content-Type
string
必需
默认值:
application/json
Body 参数
application/jsonkeyword
string
关键词
必需
page
number
页码
必需
默认值:
最小值:1
1
type
enum<string>
类型
必需
枚举值:
1
综合
61
实时
3
用户
60
热门
64
视频
63
图片
21
文章
38
话题
98
超话
默认值:
1
示例
{
"keyword" : "罗永浩",
"page" : 1,
"type" : "1"
}返回响应
响应 200
application/jsoncode
integer
必需
message
string
必需
data
object
必需
示例
{
"code" : 200,
"message" : "success",
"data" : { }
}请求示例代码
替换 YOUR_API_KEY、参数占位符与请求数据后使用。第三方客户端需先安装对应依赖。
curl --globoff --request POST 'https://api.getoneapi.com/api/weibo/search' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"keyword" : "罗永浩",
"page" : 1,
"type" : "1"
}'