聚合热榜
聚合60+平台的实时热榜排行
GET
https://api.tinyaii.cn/v1/hot
请求参数
| 参数名 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
| platform | string | 可选 | 平台名称(英文或中文),如 weibo/微博 |
返回字段
| 字段 | 类型 | 说明 |
|---|---|---|
| platform | string | 平台英文ID |
| name | string | 平台中文名 |
| total | number | 热榜条数 |
| list | array | 热榜列表 |
| list[].rank | number | 排名 |
| list[].title | string | 标题 |
| list[].url | string | 来源链接 |
返回示例
{
"code": 200,
"message": "success",
"data": {
"platform": "weibo",
"name": "微博",
"total": 10,
"list": [
{
"rank": 1,
"title": "中美领导人致辞",
"url": "https://s.weibo.com/weibo?q=..."
},
{
"rank": 2,
"title": "特朗普访华欢迎宴会",
"url": "https://s.weibo.com/weibo?q=..."
}
]
}
}
调用示例
curl "https://api.tinyaii.cn/v1/hot?platform=weibo" \
-H "Authorization: Bearer YOUR_API_KEY"const res = await fetch("https://api.tinyaii.cn/v1/hot?platform=weibo", {
headers: { "Authorization": "Bearer YOUR_API_KEY" },
});
console.log(await res.json());import requests
resp = requests.get(
"https://api.tinyaii.cn/v1/hot",
params={"platform": "weibo"},
headers={"Authorization": "Bearer YOUR_API_KEY"},
timeout=10,
)
print(resp.json())把 YOUR_API_KEY 换成你的密钥即可直接运行。密钥只保存在你自己的设备上。