跳过导航

百度热榜

根据百度热榜页面,获取百度热榜实时数据。

接口文档
运行状态
运行中
接口类型
免费接口
接口地址
https://api.xzbok.cn/api/hot_baidu
返回格式
JSON
请求方式
GET
请求示例
https://api.xzbok.cn/api/hot_baidu?tab=realtime 调用测试
返回示例
{
    "code": 1,
    "msg": "ok",
    "time": "2026-03-14 02:30:00",
    "data": {
        "tab": "realtime",
        "name": "热搜榜",
        "total": 10,
        "list": [
            {
                "index": 1,
                "title": "发现这样的邻居立刻投诉",
                "desc": "",
                "hot": 7917152,
                "url": "https://www.baidu.com/s?wd=..."
            },
            {
                "index": 2,
                "title": "整改一年啄木鸟归来仍是维修刺客",
                "desc": "",
                "hot": 6523410,
                "url": "https://www.baidu.com/s?wd=..."
            }
        ]
    }
}
错误码参照
系统级错误
状态码类型说明
400参数错误缺少必要参数或参数格式不正确
401未授权密钥无效或未登录(需登录接口)
403禁止访问无调用权限或已被封禁
404接口不存在请求的接口地址有误
429频率限制请求过于频繁,请稍后重试
500服务器错误服务异常,请联系管理员
示例代码
调用代码
PHP
$url = "https://api.xzbok.cn/api/hot_baidu";
$ch  = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$resp = curl_exec($ch);
curl_close($ch);

echo $resp;
在线调试
请求地址
请求方式
请求参数
返回结果