足球赛程
查询足球赛程和比分,覆盖英超/西甲/意甲/德甲/法甲/中超/欧冠等主流联赛
GET
https://api.tinyaii.cn/v1/football
请求参数
| 参数名 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
| league | string | 可选 | 联赛筛选(如 英超/西甲/中超/欧冠),不传返回所有 | 英超 |
返回字段
| 字段 | 类型 | 说明 |
|---|---|---|
| count | number | 比赛总数 |
| matches | array | 比赛列表 |
| matches[].league | string | 联赛中文名 |
| matches[].status | string | 比赛状态(未开始/进行中/已结束) |
| matches[].start_time | string | 开赛时间(北京时间) |
| matches[].round | string | 轮次 |
| matches[].home/away | object | 主队/客队信息 |
| matches[].home.name | string | 队名 |
| matches[].home.score | string | 进球数 |
| matches[].half_time_score | string | 半场比分 |
返回示例
{
"code": 200,
"message": "success",
"data": {
"count": 2,
"matches": [
{
"league": "西甲",
"status": "已结束",
"start_time": "2026-05-15 03:30",
"home": {
"name": "皇家马德里",
"abbr": "RMA",
"score": "2"
},
"away": {
"name": "奥维多",
"abbr": "RVO",
"score": "0"
},
"half_time_score": "1-1:0-0",
"round": "36"
}
]
}
}
调用示例
curl "https://api.tinyaii.cn/v1/football?league=英超" \
-H "Authorization: Bearer YOUR_API_KEY"const res = await fetch("https://api.tinyaii.cn/v1/football?league=英超", {
headers: { "Authorization": "Bearer YOUR_API_KEY" },
});
console.log(await res.json());import requests
resp = requests.get(
"https://api.tinyaii.cn/v1/football",
params={"league": "英超"},
headers={"Authorization": "Bearer YOUR_API_KEY"},
timeout=10,
)
print(resp.json())把 YOUR_API_KEY 换成你的密钥即可直接运行。密钥只保存在你自己的设备上。