C/2/search/hot word/biz

跳转到: 导航, 搜索
(以“{{Api_desc_business| uri=search/hot_word/biz| desc=微博热搜榜。| httpMethod=GET| needAuth=是| rateLimit={{B_rate_limit}}| params= {{api_args|count|false|int|...”为内容创建页面)
 
第1行: 第1行:
{{Api_desc_business|
+
{{Api_desc_business_B|
 
uri=search/hot_word/biz|
 
uri=search/hot_word/biz|
 
desc=微博热搜榜。|
 
desc=微博热搜榜。|
第36行: 第36行:
 
}
 
}
 
</pre>|
 
</pre>|
resultDes={{Rdes_sinanews}}|
+
resultDes=
useAge=*当scroll_id为空时,q,media_id,tag 三者必传其⼀;
+
{{rdes_args|scroll_id|string|用于再次查询的游标位置,scroll_id, 5分钟有效期。}}
*再次取数据,查询scroll_id,类似游标查询。|
+
{{rdes_args|dataid|string|文档ID,查询的内容id。}}
 +
{{rdes_args|url|string|文档链接,查询的内容链接。}}
 +
{{rdes_args|title|string|内容的标题。}}
 +
{{rdes_args|thumb|string|内容的封面图。}}
 +
{{rdes_args|thumbs|string|内容的配图。}}
 +
{{rdes_args|content|string|文档的正文内容。}}
 +
{{rdes_args|tags|string|标签名称。}}
 +
{{rdes_args|media_id|string|媒体作者的id。}}
 +
{{rdes_args|media|string|媒体作者的名称。}}
 +
{{rdes_args|ctime|string|内容的创建时间。}}
 +
{{rdes_args|total|int|查询的总条数。}}
 +
{{rdes_args|count|int|本次返回条数。}}|
 +
useAge=*|
 
otherInfo=无
 
otherInfo=无
  
 
}}{{#a:showgrade}}
 
}}{{#a:showgrade}}

2021年9月10日 (五) 16:09的版本

search/hot_word/biz

微博热搜榜。

URL

https://c.api.weibo.com/2/search/hot_word/biz.json

支持格式

JSON

HTTP请求方式

GET

是否需要登录


关于登录授权,参见 如何登录授权

访问授权限制


请求所有商业接口:

    • 50000次/小时/IP;

请求参数

  必选 类型及范围 说明
source false string 采用OAuth授权方式不需要此参数,其他授权方式为必填参数,数值为应用的AppKey。
access_token false string 采用OAuth授权方式为必填参数,其他授权方式不需要此参数,OAuth授权后获得。
count false int 每页返回数量, 最⼤50, 默认50。

注意事项

返回结果

JSON示例

//成功返回
{
"cat": "all",
"app_link": 
"sinaweibo://cardlist?containerid=106003type%3D25%26t%3D3%26disable_hot%3D1%26filter_type%3Drealtimehot&title=%E5%AE%9E%E6%97%B6%E7%83%AD%E6%90%9C%E6%A6%9
C&extparam=filter_type%3Drealtimehot%26mi_cid%3D100103%26pos%3D9&luicode=10000493&lfid=leshi_liulanqi_resoubang_170116",
"h5_link": "http://s.weibo.com/top/summary?cate=realtimehot&luicode=10000493&lfid=leshi_liulanqi_resoubang_170116",
"data": [
{
"id": 1,
 "word": "赵又廷",
 "flag": "2",
 "num": "512187",
 "app_query_link": "sinaweibo://searchall?q=%E8%B5%B5%E5%8F%88%E5%BB%B7&luicode=10000493&lfid=leshi_liulanqi_resoubang_170116&extparam=c_type%3D36",
 "h5_query_link": "http://s.weibo.com/weibo/%E8%B5%B5%E5%8F%88%E5%BB%B7&luicode=10000493&lfid=leshi_liulanqi_resoubang_170116&extparam=c_type%3D36",
“flag_link”: “http://h5.sinaimg.cn/upload/2015/08/07/20/img_hot.png”
},
…
]
}
//失败返回
{
“request”: “/2/search/hot_word.json”,
“error_code”: “21400”,
“error”: “error message.”
}

关于错误返回值与错误代码,参见 错误代码说明

字段说明

返回值字段 字段类型 字段说明
scroll_id string 用于再次查询的游标位置,scroll_id, 5分钟有效期。
dataid string 文档ID,查询的内容id。
url string 文档链接,查询的内容链接。
title string 内容的标题。
thumb string 内容的封面图。
thumbs string 内容的配图。
content string 文档的正文内容。
tags string 标签名称。
media_id string 媒体作者的id。
media string 媒体作者的名称。
ctime string 内容的创建时间。
total int 查询的总条数。
count int 本次返回条数。

其他



Language: [[{{{2/uri}}}|中文]]


api评价