全站热榜
聚合45+平台的全站热门内容排行
GET
https://api.tinyaii.cn/v1/hot/all
请求参数
| 参数名 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
| page | int | 可选 | 页码,默认1,最大10 | 1 |
返回字段
| 字段 | 类型 | 说明 |
|---|---|---|
| page | number | 当前页码 |
| total_page | number | 总页数 |
| list | array | 热榜列表 |
| list[].title | string | 标题 |
| list[].platform | string | 平台英文标识 |
| list[].platform_name | string | 平台中文名 |
| list[].heat | number | 热度值 |
| list[].url | string | PC端链接 |
| list[].mobile_url | string | 移动端链接 |
| list[].is_video | boolean | 是否视频 |
返回示例
{
"code": 200,
"message": "success",
"data": {
"page": 1,
"total_page": 3,
"list": [
{
"title": "克宫宣布普京即将访华",
"platform": "weibo",
"platform_name": "微博",
"heat": 889.2,
"url": "https://s.weibo.com/weibo?q=...",
"mobile_url": "https://s.weibo.com/weibo?q=...",
"is_video": false
}
]
}
}
调用示例
curl "https://api.tinyaii.cn/v1/hot/all?page=1" \
-H "Authorization: Bearer YOUR_API_KEY"const res = await fetch("https://api.tinyaii.cn/v1/hot/all?page=1", {
headers: { "Authorization": "Bearer YOUR_API_KEY" },
});
console.log(await res.json());import requests
resp = requests.get(
"https://api.tinyaii.cn/v1/hot/all",
params={"page": "1"},
headers={"Authorization": "Bearer YOUR_API_KEY"},
timeout=10,
)
print(resp.json())把 YOUR_API_KEY 换成你的密钥即可直接运行。密钥只保存在你自己的设备上。