GitHub 每日热门
获取 GitHub 今日新创建的热门仓库 Top 10,按 Star 数排序
GET
https://api.tinyaii.cn/v1/github/trending
请求参数
该接口无需请求参数,直接调用即可返回数据。
返回字段
| 字段 | 类型 | 说明 |
|---|---|---|
| code | int | 状态码 |
| date | string | 查询日期 |
| total_new_repos | int | 今日新建仓库总数 |
| repos | array | 热门仓库列表 |
| repos[].name | string | 仓库全名(owner/name) |
| repos[].description | string | 仓库描述 |
| repos[].stars | int | Star 数 |
| repos[].forks | int | Fork 数 |
| repos[].language | string | 主要编程语言 |
| repos[].url | string | 仓库链接 |
返回示例
{
"code": 200,
"data": {
"date": "2026-05-03",
"total_new_repos": 12345,
"repos": [
{
"name": "owner/repo",
"description": "A cool project",
"stars": 500,
"forks": 100,
"language": "Rust",
"url": "https://github.com/owner/repo"
}
]
}
}
调用示例
curl "https://api.tinyaii.cn/v1/github/trending" \
-H "Authorization: Bearer YOUR_API_KEY"const res = await fetch("https://api.tinyaii.cn/v1/github/trending", {
headers: { "Authorization": "Bearer YOUR_API_KEY" },
});
console.log(await res.json());import requests
resp = requests.get(
"https://api.tinyaii.cn/v1/github/trending",
params=None,
headers={"Authorization": "Bearer YOUR_API_KEY"},
timeout=10,
)
print(resp.json())把 YOUR_API_KEY 换成你的密钥即可直接运行。密钥只保存在你自己的设备上。