在线

聚合热搜榜

各平台实时搜热榜

快速响应 安全稳定 不限次数

接口地址

https://api.xzzti.cn/api/hot

返回格式

JSON

请求方式

GET

认证方式

API Key
请求示例
https://api.xzzti.cn/api/hot?type=?apiKey=【替换成自己的APIKEY】

请求参数说明

参数名称 是否必填 数据类型 参数说明
baidu string 百度热搜
tieba string 百度贴吧热议榜
zhihu string 知乎热榜
weibo string 微博热搜榜
bilihot string 哔哩哔哩热搜榜
douyin string 抖音热搜榜
history string 百度百科-历史上的今天
sspai string 少数派热搜榜

返回参数说明

字段名称 数据类型 字段说明
title string 返回主标题
subtitle string 返回副标题
update_time string 更新时间
返回示例

错误码参照表

错误码 状态说明 错误描述 解决方案
JavaScript 示例
// 使用 fetch API
fetch('https://api.xzzti.cn/api/hot?type=?apiKey=YOUR_API_KEY')
  .then(response => response.json())
  .then(data => console.log(data))
  .catch(error => console.error('Error:', error));
Python 示例
import requests

url = 'https://api.xzzti.cn/api/hot?type='
params = {'apiKey': 'YOUR_API_KEY'}

response = requests.get(url, params=params)
data = response.json()
print(data)
PHP 示例
<?php

$url = 'https://api.xzzti.cn/api/hot?type=?apiKey=YOUR_API_KEY';
$response = file_get_contents($url);
$data = json_decode($response, true);

print_r($data);
?>
Java 示例
import java.net.*;
import java.io.*;

public class Main {
    public static void main(String[] args) throws Exception {
        URL url = new URL("https://api.xzzti.cn/api/hot?type=?apiKey=YOUR_API_KEY");
        HttpURLConnection conn = (HttpURLConnection) url.openConnection();
        conn.setRequestMethod("GET");
        
        BufferedReader in = new BufferedReader(new InputStreamReader(conn.getInputStream()));
        String inputLine;
        StringBuffer response = new StringBuffer();
        
        while ((inputLine = in.readLine()) != null) {
            response.append(inputLine);
        }
        in.close();
        
        System.out.println(response.toString());
    }
}
cURL 示例
curl -X GET \
  'https://api.xzzti.cn/api/hot?type=?apiKey=YOUR_API_KEY' \
  -H 'Accept: application/json'

在线测试工具

测试结果

就绪

点击"运行测试"按钮开始测试接口