接口地址:http://api.xtaoa.com/api/tophub.php
返回格式:json
请求方式:get
请求示例:http://api.xtaoa.com/api/tophub.php?type=zhihu
请求备注:今日热榜接口,数据来自 https://tophub.today/ 因为已经封装好了所以传入type类型就行了
请求参数说明:
名称 | 必填 | 类型 | 说明 |
---|---|---|---|
type | 是 | string | 类型 |
zhihu | 是 | string | 知乎 |
是 | string | 微博 | |
weixin | 是 | string | 微信 24小时热榜 |
baidu | 是 | string | baidu |
toutiao | 是 | string | 头条 |
163 | 是 | string | 网易新闻 |
xl | 是 | string | 新浪 |
36k | 是 | string | 36氪 |
hitory | 是 | string | 历史上的今天 |
douyin | 是 | string | 抖音视频榜 |
52pojie | 是 | string | 吾爱破解热榜 |
返回参数说明:
名称 | 类型 | 说明 |
---|---|---|
nome | string | 热榜名称 |
last_update | string | 更新时间 |
list | string | 热榜集合 |
list.title | string | 热榜标题 |
list.link | string | 热榜新闻链接 |
qlogo | string | 返回查询的QQ头像 |
link.other | string | 其他数据,一般是热度 |
请求返回示例:
{ "last_update":"2021-11-29 23:25:46", "name":"知乎 ‧ 热榜", "list":[{"title":"如何看待野猪糟蹋庄稼,夫妻猎杀 8 头被判缓刑?怎样更好地治理「野猪灾」?", "link":"\/l?e=9729cnkRnOCPl%2FlaUGr8V6q8nKoOPITWmzux5z7ydNUw0E2NTVQ%2BdZIWAQJCMAiJvzFPSSHgDxnCWsi7BJFlayXnxLZ9CmKcJGLw5BAtUwhSjympZokVs8tNYxLRmjXK4rbVybREJrlGshBrpaO%2F", "other":"329 万热度" }
错误码参照:
错误码 | 说明 |
---|---|
201 | 参数不能为空 |
202 | 获取异常 |
203 | 格式不正确 |
实例演示代码:
暂无演示代码,正在拼命添加中...
暂无演示代码,正在拼命添加中...
暂无演示代码,正在拼命添加中...
暂无演示代码,正在拼命添加中...