腾讯热搜榜

GET
https://api.xuewutheme.com/api/hottencent

获取腾讯新闻热搜榜消息

接口概述

获取腾讯新闻热搜榜消息

请求参数

参数名 类型 必填 描述
apikey string 整数 string

用户开通的apikey

响应参数

成功响应

状态码: 200 OK
格式: json
参数名 类型 描述
code integer integer

返回的状态码

data object object

返回的数据/数据对象

msg string string

返回的消息

time string string

请求时间

data[].index number number

序号

data[].title string string

标题

data[].url string string

url

data[].hot string string

热度

data[].mobilUrl string string

mobilUrl

响应示例

JSON
{
  "code": 200,
  "msg": "请求成功!",
  "time": "2025-05-11 14:36:32",
  "data": [
    {
      "index": 1,
      "title": "[置顶] 拾光纪·习近平主席俄罗斯之行这些场景令人难忘",
      "url": "https://view.inews.qq.com/a/20250511A00MMZ00",
      "hot": "640394",
      "mobilUrl": "https://view.inews.qq.com/a/20250511A00MMZ00"
    },
    {
      "index": 2,
      "title": "巴基斯坦总理发表全国讲话:感谢中国的支持",
      "url": "https://view.inews.qq.com/a/20250511V034LP00",
      "hot": "2343564",
      "mobilUrl": "https://view.inews.qq.com/a/20250511V034LP00"
    },
    {
      "index": 3,
      "title": "印巴突然停火,背后有五大原因",
      "url": "https://view.inews.qq.com/a/20250511A0236H00",
      "hot": "1938041",
      "mobilUrl": "https://view.inews.qq.com/a/20250511A0236H00"
    },
    {
      "index": 4,
      "title": "我国钢铁产业转型进行时 上百家钢铁企业已完成超低排放改造",
      "url": "https://view.inews.qq.com/a/20250511A022HA00",
      "hot": "1854387",
      "mobilUrl": "https://view.inews.qq.com/a/20250511A022HA00"
    },
    {
      "index": 5,
      "title": "重庆一高校花75万元采购市价299元的产品?工作人员:有部门正在处理此事",
      "url": "https://view.inews.qq.com/a/20250511A03ZFE00",
      "hot": "1774182",
      "mobilUrl": "https://view.inews.qq.com/a/20250511A03ZFE00"
    },
    {
      "index": 6,
      "title": "偷偷将村民银行卡与自己微信绑定,贵州一村委原副主任盗刷村民低保金获刑",
      "url": "https://view.inews.qq.com/a/20250511A03X1O00",
      "hot": "1701714",
      "mobilUrl": "https://view.inews.qq.com/a/20250511A03X1O00"
    },
    {
      "index": 7,
      "title": "歼-10C试刀,媒体:西方空战神话破防,中国打法实现降维打击",
      "url": "https://view.inews.qq.com/a/20250511A02NBZ00",
      "hot": "1660293",
      "mobilUrl": "https://view.inews.qq.com/a/20250511A02NBZ00"
    },
    {
      "index": 8,
      "title": "红星独家丨与儿子换血、极致抗衰的硅谷富豪:抗衰只对部分器官有用",
      "url": "https://view.inews.qq.com/a/20250511A03YHB00",
      "hot": "1634566",
      "mobilUrl": "https://view.inews.qq.com/a/20250511A03YHB00"
    },
    {
      "index": 9,
      "title": "新闻周刊丨这一幕令人动容!中国仪仗兵和留学生合唱《歌唱祖国》同频落泪",
      "url": "https://view.inews.qq.com/a/20250511A01LDT00",
      "hot": "1623071",
      "mobilUrl": "https://view.inews.qq.com/a/20250511A01LDT00"
    },
    {
      "index": 10,
      "title": "年轻人涌入医院买面包",
      "url": "https://view.inews.qq.com/a/20250511A030BQ00",
      "hot": "1611042",
      "mobilUrl": "https://view.inews.qq.com/a/20250511A030BQ00"
    },
    {
      "index": 11,
      "title": "力量训练不适合老年人?",
      "url": "https://view.inews.qq.com/a/20250510V062YP00",
      "hot": "1598301",
      "mobilUrl": "https://view.inews.qq.com/a/20250510V062YP00"
    },
    {
      "index": 12,
      "title": "曾共同出演《流星花园》,言承旭凌晨发文谈大S:她一直叫我道明寺,是我生命中重要的人",
      "url": "https://view.inews.qq.com/a/20250511A03UO900",
      "hot": "1590644",
      "mobilUrl": "https://view.inews.qq.com/a/20250511A03UO900"
    },
    {
      "index": 13,
      "title": "“清华博士”庞众望告白去世母亲:妈,你看,我做得很好!他出身贫困,8年前以744分考入清华",
      "url": "https://view.inews.qq.com/a/20250511A03WZK00",
      "hot": "1484429",
      "mobilUrl": "https://view.inews.qq.com/a/20250511A03WZK00"
    },
    {
      "index": 14,
      "title": "聋哑司机偷拍大量女乘客视频,并配低俗文字发网上,滴滴回应",
      "url": "https://view.inews.qq.com/a/20250510A0767S00",
      "hot": "1429534",
      "mobilUrl": "https://view.inews.qq.com/a/20250510A0767S00"
    },
    {
      "index": 15,
      "title": "员工拒从广州调岗到云南怒江被开除,千里调岗遭解雇公司被判违法",
      "url": "https://view.inews.qq.com/a/20250511A0412R00",
      "hot": "1390475",
      "mobilUrl": "https://view.inews.qq.com/a/20250511A0412R00"
    },
    {
      "index": 16,
      "title": "刘强东现身日本街头:穿猪猪侠T恤,背后还有京东外卖的二维码",
      "url": "https://view.inews.qq.com/a/20250511A03G3B00",
      "hot": "1379094",
      "mobilUrl": "https://view.inews.qq.com/a/20250511A03G3B00"
    },
    {
      "index": 17,
      "title": "中央巡视组进驻期间,“内鬼”潘军被查",
      "url": "https://view.inews.qq.com/a/20250511A03CV100",
      "hot": "1372257",
      "mobilUrl": "https://view.inews.qq.com/a/20250511A03CV100"
    },
    {
      "index": 18,
      "title": "陈赫回应给二婚妻子打码:她让我打的,这也能上热搜,没劲",
      "url": "https://view.inews.qq.com/a/20250511A030WO00",
      "hot": "1365884",
      "mobilUrl": "https://view.inews.qq.com/a/20250511A030WO00"
    },
    {
      "index": 19,
      "title": "半夜自言自语?13岁女孩被男同学扇耳光后,生活无法自理要穿纸尿裤",
      "url": "https://view.inews.qq.com/a/20250510A06QZM00",
      "hot": "1356975",
      "mobilUrl": "https://view.inews.qq.com/a/20250510A06QZM00"
    },
    {
      "index": 20,
      "title": "“裸官”麦广钦,被查",
      "url": "https://view.inews.qq.com/a/20250511A03RBD00",
      "hot": "1349419",
      "mobilUrl": "https://view.inews.qq.com/a/20250511A03RBD00"
    }
  ],
  "name": "腾讯热搜",
  "subtitle": "热度",
  "cache_time": "2025-05-11 14:36:32"
}

请求示例

cURL

Bash
curl -X GET \
  "https://api.example.com/v1/users/12345" \
  -H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..." \
  -H "Content-Type: application/json"

Python

Python
import requests

url = "https://api.example.com/v1/users/12345"
headers = {
    "Authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
    "Content-Type": "application/json"
}

response = requests.get(url, headers=headers)
print(response.json())

JavaScript

JavaScript
const response = await fetch(
  'https://api.example.com/v1/users/12345',
  {
    method: 'GET',
    headers: {
      'Authorization': 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...',
      'Content-Type': 'application/json'
    }
  }
);

const data = await response.json();
console.log(data);

PHP

PHP
$ch = curl_init();

curl_setopt($ch, CURLOPT_URL, "https://api.example.com/v1/users/12345");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");

$headers = array();
$headers[] = "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...";
$headers[] = "Content-Type: application/json";
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);

$result = curl_exec($ch);
echo $result;

curl_close($ch);

错误码

状态码 描述
100 您的apikey值为空!
101 您的apikey值不存在!
103 当前接口为实名认证后可用,请您先进行实名!
104 请求频率超限!
105 接口不存在或已下线!
106 您的余额不足,请及时充值!
107 您当前的接口免费使用次数已用完,请明日再来!
109 您的账号已被封禁,不可使用任何接口!

错误响应示例

JSON
{
  "code": 1001,
  "message": "用户不存在",
  "data": null
}