西班牙甲级联赛足球数据 API
通过一套快速、稳定、对开发者友好的 REST 与 WebSocket API,接入西班牙甲级联赛的实时比分、赛程、积分榜、阵容与赔率。43 家俱乐部、22 个赛季历史,统一的 JSON 结构。
无需信用卡
同一套数据结构支撑西班牙甲级联赛及全球 1,000+ 项赛事。
获取西班牙甲级联赛的完整数据
西班牙甲级联赛的每一场比赛、每一张积分榜、每一笔转会都通过同一套整洁的 JSON 输出——无需爬虫、无需解析 HTML、无需手动更新。选一个端点,发一次请求,即可获得能直接用于产品的结构化数据。
GET
https://data.anysport.io/v1/soccer/livescore?match_id=as_0059673e806d4a0788a0d38a6a72f500&lang=enimport requests
resp = requests.get(
'https://data.anysport.io/v1/soccer/livescore',
headers={'apikey': 'YOUR_API_KEY'},
params={'match_id': 'as_0059673e806d4a0788a0d38a6a72f500', 'lang': 'en'}
)
print(resp.json()){
"success": true,
"data": [
{
"match_id": "as_0059673e806d4a0788a0d38a6a72f500",
"home": "ABC",
"away": "Luverdense",
"league": "Brazil Serie D",
"minute": 90,
"phase": "finished",
"phase_label": "Finished",
"home_score": 4,
"away_score": 1,
"ht_score": "2-1",
"reg_score": "4-1",
"updated_at": "2026-07-26T21:57:59Z"
}
],
"meta": {
"total": 1
}
}GET
https://data.anysport.io/v1/soccer/matches?league_id=asl_76e4c90f09ae40ec9ace5ec305af48ca&season=2026%2F2027&lang=enimport requests
resp = requests.get(
'https://data.anysport.io/v1/soccer/matches',
headers={'apikey': 'YOUR_API_KEY'},
params={'league_id': 'asl_76e4c90f09ae40ec9ace5ec305af48ca', 'season': '2026/2027', 'lang': 'en'}
)
print(resp.json()){
"success": true,
"data": [
{
"match_id": "as_e2aa28aa0cd34a06a43500318d405c3a",
"date": "2027-05-30",
"time": "15:00",
"status": "Not Started",
"league": "Primera",
"league_id": "asl_76e4c90f09ae40ec9ace5ec305af48ca",
"season": "2026/2027",
"home": {
"name": "Ath Bilbao",
"team_id": "ast_2a207550ed614e63a75a151ffff8a7f4"
},
"away": {
"name": "Rayo Vallecano",
"team_id": "ast_89239f0a59144b88b3d88782681e1953"
},
"ht_score": "-",
"venue": ""
},
{
"match_id": "as_2d7f7a02c3e34b8fb26ca2581031c254",
"date": "2027-05-30",
"time": "15:00",
"status": "Not Started",
"league": "Primera",
"league_id": "asl_76e4c90f09ae40ec9ace5ec305af48ca",
"season": "2026/2027",
"home": {
"name": "Betis",
"team_id": "ast_d6942c338c9d4fbda066e060751fafb2"
},
"away": {
"name": "Atl. Madrid",
"team_id": "ast_d3dc6c47c44d48238967a2f0a6b39e84"
},
"ht_score": "-",
"venue": "Estadio de La Cartuja"
},
{
"match_id": "as_d8f1c74ae2a74ad0a3c03e1d7fc4f9a2",
"date": "2027-05-30",
"time": "15:00",
"status": "Not Started",
"league": "Primera",
"league_id": "asl_76e4c90f09ae40ec9ace5ec305af48ca",
"season": "2026/2027",
"home": {
"name": "Elche",
"team_id": "ast_2c2bc22fd12b4af391c5c836077ab9e5"
},
"away": {
"name": "Racing Santander",
"team_id": "ast_5cfec6081f15465e84d282b9758e7857"
},
"ht_score": "-",
"venue": ""
}
],
"meta": {
"total": 10
}
}GET
https://data.anysport.io/v1/soccer/standings?league_id=asl_76e4c90f09ae40ec9ace5ec305af48ca&season=2025-2026&lang=enimport requests
resp = requests.get(
'https://data.anysport.io/v1/soccer/standings',
headers={'apikey': 'YOUR_API_KEY'},
params={'league_id': 'asl_76e4c90f09ae40ec9ace5ec305af48ca', 'season': '2025-2026', 'lang': 'en'}
)
print(resp.json()){
"success": true,
"data": [
{
"position": 1,
"team_id": "ast_a0dc7e6fc3c54706bd2420cdb1abffea",
"team": "Barcelona",
"played": 38,
"wins": 31,
"draws": 1,
"losses": 6,
"goals_for": 95,
"goals_against": 36,
"goal_difference": 59,
"points": 94,
"form": ""
},
{
"position": 2,
"team_id": "ast_bc5b335eae8346ba82f75bf6aec21b2d",
"team": "Real Madrid",
"played": 38,
"wins": 27,
"draws": 5,
"losses": 6,
"goals_for": 77,
"goals_against": 35,
"goal_difference": 42,
"points": 86,
"form": ""
},
{
"position": 3,
"team_id": "ast_e879f916bcc64dbc81af0618355332e1",
"team": "Villarreal",
"played": 38,
"wins": 22,
"draws": 6,
"losses": 10,
"goals_for": 72,
"goals_against": 46,
"goal_difference": 26,
"points": 72,
"form": ""
}
],
"meta": {
"total": 20
}
}GET
https://data.anysport.io/v1/soccer/topscorers?league_id=asl_76e4c90f09ae40ec9ace5ec305af48ca&season=2025-2026&kind=goals&lang=enimport requests
resp = requests.get(
'https://data.anysport.io/v1/soccer/topscorers',
headers={'apikey': 'YOUR_API_KEY'},
params={'league_id': 'asl_76e4c90f09ae40ec9ace5ec305af48ca', 'season': '2025-2026', 'kind': 'goals', 'lang': 'en'}
)
print(resp.json()){
"success": true,
"data": [
{
"rank": 1,
"player_id": "asp_7b9e560a44b149b698e9715717611fa5",
"player_name": "Kylian Mbappe",
"team_id": "ast_bc5b335eae8346ba82f75bf6aec21b2d",
"team_name": "Real Madrid",
"value": 25
},
{
"rank": 2,
"player_id": "asp_14cfd6aa64154dba88e7473dd9b4c04d",
"player_name": "Vedat Muriqi",
"team_id": "ast_fd95c969902c4e49b411158c9f2fe6c3",
"team_name": "Mallorca",
"value": 23
},
{
"rank": 3,
"player_id": "asp_bab1def2528e4547b65950420d1df650",
"player_name": "Ante Budimir",
"team_id": "ast_4f8d05116ed54be78183d4f4a06d59e4",
"team_name": "Osasuna",
"value": 17
}
],
"meta": {
"total": 50
}
}GET
https://data.anysport.io/v1/soccer/teams?league_id=asl_76e4c90f09ae40ec9ace5ec305af48ca&season=2026%2F2027&lang=enimport requests
resp = requests.get(
'https://data.anysport.io/v1/soccer/teams',
headers={'apikey': 'YOUR_API_KEY'},
params={'league_id': 'asl_76e4c90f09ae40ec9ace5ec305af48ca', 'season': '2026/2027', 'lang': 'en'}
)
print(resp.json()){
"success": true,
"data": [
{
"team_id": "ast_ab7ba70e5b014993a07b309e2e199f6f",
"name": "Alaves",
"country": "Spain",
"venue": "Estadio de Mendizorroza"
},
{
"team_id": "ast_2a207550ed614e63a75a151ffff8a7f4",
"name": "Athletic",
"country": "Spain",
"venue": "Estadio de San Mamés"
},
{
"team_id": "ast_d3dc6c47c44d48238967a2f0a6b39e84",
"name": "Atl. Madrid",
"country": "Spain",
"venue": "Riyadh Air Metropolitano"
}
],
"meta": {
"total": 20
}
}GET
https://data.anysport.io/v1/soccer/odds/live?lang=enimport requests
resp = requests.get(
'https://data.anysport.io/v1/soccer/odds/live',
headers={'apikey': 'YOUR_API_KEY'},
params={'lang': 'en'}
)
print(resp.json()){
"success": true,
"data": [
{
"match_id": "as_0059673e806d4a0788a0d38a6a72f500",
"home": "ABC",
"away": "Luverdense",
"league": "Brazil Serie D",
"bookmaker": "bet365",
"phase": "live",
"main_market": "fulltime_result",
"main_market_label": "Fulltime Result",
"home_odd": 1.008,
"draw_odd": 26,
"away_odd": 51,
"markets": [
{
"market_code": "home_4th_goal_in_interval",
"market_code_label": "Home 4th Goal in Interval",
"handicap": 80,
"options": [
{
"name": "Yes",
"name_label": "Yes",
"odd": 9
},
{
"name": "No",
"name_label": "No",
"odd": 1.04
}
]
},
{
"market_code": "last_corner",
"market_code_label": "Last Corner",
"options": [
{
"name": "1",
"name_label": "1",
"odd": 1.8
},
{
"name": "2",
"name_label": "2",
"odd": 1.909
}
]
},
{
"market_code": "how_many_goals_will_away_team_score",
"market_code_label": "How many goals will Away Team score?",
"options": [
{
"name": "No goal",
"name_label": "No goal",
"odd": 1.571
},
{
"name": "1",
"name_label": "1",
"odd": 1.142
},
{
"name": "2",
"name_label": "2",
"odd": 5.5
},
{
"name": "3 or more",
"name_label": "3 or more",
"odd": 17
}
]
},
{
"market_code": "asian_handicap",
"market_code_label": "Asian Handicap",
"handicap": -2.25,
"options": [
{
"name": "1",
"name_label": "1",
"odd": 2.5
},
{
"name": "2",
"name_label": "2",
"odd": 1.5
}
]
}
],
"updated_at": "2026-07-26T21:41:43Z"
}
],
"meta": {
"total": 1
}
}GET
https://data.anysport.io/v1/soccer/players?team_id=ast_a0dc7e6fc3c54706bd2420cdb1abffea&league_id=asl_76e4c90f09ae40ec9ace5ec305af48ca&lang=enimport requests
resp = requests.get(
'https://data.anysport.io/v1/soccer/players',
headers={'apikey': 'YOUR_API_KEY'},
params={'team_id': 'ast_a0dc7e6fc3c54706bd2420cdb1abffea', 'league_id': 'asl_76e4c90f09ae40ec9ace5ec305af48ca', 'lang': 'en'}
)
print(resp.json()){
"success": true,
"data": [
{
"player_id": "asp_196ea055c1de43058268fddfc7cff948",
"name": "Alejandro Balde",
"position": "D",
"number": "3",
"age": "22",
"team_id": "ast_a0dc7e6fc3c54706bd2420cdb1abffea",
"team_name": "Barcelona",
"season_stats": {
"league_id": "asl_76e4c90f09ae40ec9ace5ec305af48ca",
"appearances": 8,
"minutes": 528,
"assists": 1,
"yellow_cards": 1,
"red_cards": 0,
"rating": 6.713
}
},
{
"player_id": "asp_4f3cfa01086545d0b7982c1ea7edcbde",
"name": "Alvaro Cortes",
"position": "D",
"number": "36",
"age": "21",
"team_id": "ast_a0dc7e6fc3c54706bd2420cdb1abffea",
"team_name": "Barcelona",
"season_stats": {
"league_id": "asl_76e4c90f09ae40ec9ace5ec305af48ca"
}
},
{
"player_id": "asp_0b60127d3e0443fdbde077263dca0257",
"name": "Andreas Christensen",
"position": "D",
"number": "15",
"age": "30",
"team_id": "ast_a0dc7e6fc3c54706bd2420cdb1abffea",
"team_name": "Barcelona",
"season_stats": {
"league_id": "asl_76e4c90f09ae40ec9ace5ec305af48ca",
"appearances": 4,
"minutes": 57,
"assists": 0,
"yellow_cards": 0,
"red_cards": 0,
"rating": 6.267
}
}
],
"meta": {
"total": 31
}
}GET
https://data.anysport.io/v1/soccer/odds/prematch?lang=enimport requests
resp = requests.get(
'https://data.anysport.io/v1/soccer/odds/prematch',
headers={'apikey': 'YOUR_API_KEY'},
params={'lang': 'en'}
)
print(resp.json()){
"success": true,
"data": [
{
"match_id": "as_d21c97e73a5e45c7b87cb82e28c9f986",
"home": "Hafnarfjordur",
"away": "KR Reykjavik",
"league": "Iceland: Besta Deild Karla",
"bookmaker": "bet365",
"phase": "prematch",
"main_market": "match_winner",
"main_market_label": "Match Winner",
"home_odd": 3.9,
"draw_odd": 4.5,
"away_odd": 1.57,
"markets": [
{
"market_code": "match_winner",
"market_code_label": "Match Winner",
"options": [
{
"name": "Home",
"name_label": "Home",
"odd": 3.9
},
{
"name": "Draw",
"name_label": "Draw",
"odd": 4.5
},
{
"name": "Away",
"name_label": "Away",
"odd": 1.57
}
]
},
{
"market_code": "home_away",
"market_code_label": "Home/Away",
"options": [
{
"name": "Home",
"name_label": "Home",
"odd": 3.4
},
{
"name": "Away",
"name_label": "Away",
"odd": 1.3
}
]
},
{
"market_code": "2nd_half_winner",
"market_code_label": "2nd Half Winner",
"options": [
{
"name": "Home",
"name_label": "Home",
"odd": 3.6
},
{
"name": "Draw",
"name_label": "Draw",
"odd": 3.4
},
{
"name": "Away",
"name_label": "Away",
"odd": 1.83
}
]
},
{
"market_code": "asian_handicap",
"market_code_label": "Asian Handicap",
"options": [
{
"name": "Home -1",
"name_label": "Home -1",
"odd": 7
},
{
"name": "Away +1",
"name_label": "Away +1",
"odd": 1.1
},
{
"name": "Home -0.75",
"name_label": "Home -0.75",
"odd": 5
},
{
"name": "Away +0.75",
"name_label": "Away +0.75",
"odd": 1.17
},
{
"name": "Home -0.5",
"name_label": "Home -0.5",
"odd": 4
},
{
"name": "Away +0.5",
"name_label": "Away +0.5",
"odd": 1.23
},
{
"name": "Home -0.25",
"name_label": "Home -0.25",
"odd": 3.7
},
{
"name": "Away +0.25",
"name_label": "Away +0.25",
"odd": 1.26
},
{
"name": "Home +0",
"name_label": "Home +0",
"odd": 3.45
},
{
"name": "Away 0",
"name_label": "Away 0",
"odd": 1.3
},
{
"name": "Home +0.25",
"name_label": "Home +0.25",
"odd": 2.68
},
{
"name": "Away -0.25",
"name_label": "Away -0.25",
"odd": 1.45
},
{
"name": "Home +0.5",
"name_label": "Home +0.5",
"odd": 2.3
},
{
"name": "Away -0.5",
"name_label": "Away -0.5",
"odd": 1.6
},
{
"name": "Home +0.75",
"name_label": "Home +0.75",
"odd": 2.08
},
{
"name": "Away -0.75",
"name_label": "Away -0.75",
"odd": 1.72
},
{
"name": "Home +1",
"name_label": "Home +1",
"odd": 1.9
},
{
"name": "Away -1",
"name_label": "Away -1",
"odd": 1.9
},
{
"name": "Home +2",
"name_label": "Home +2",
"odd": 1.35
},
{
"name": "Away -2",
"name_label": "Away -2",
"odd": 3.1
},
{
"name": "Home +3",
"name_label": "Home +3",
"odd": 1.12
},
{
"name": "Away -3",
"name_label": "Away -3",
"odd": 6
},
{
"name": "Home +1.25",
"name_label": "Home +1.25",
"odd": 1.72
},
{
"name": "Away -1.25",
"name_label": "Away -1.25",
"odd": 2.08
},
{
"name": "Home +1.5",
"name_label": "Home +1.5",
"odd": 1.6
},
{
"name": "Away -1.5",
"name_label": "Away -1.5",
"odd": 2.3
},
{
"name": "Home +1.75",
"name_label": "Home +1.75",
"odd": 1.48
},
{
"name": "Away -1.75",
"name_label": "Away -1.75",
"odd": 2.6
},
{
"name": "Home +2.25",
"name_label": "Home +2.25",
"odd": 1.3
},
{
"name": "Away -2.25",
"name_label": "Away -2.25",
"odd": 3.45
},
{
"name": "Home +2.5",
"name_label": "Home +2.5",
"odd": 1.26
},
{
"name": "Away -2.5",
"name_label": "Away -2.5",
"odd": 3.7
},
{
"name": "Home +2.75",
"name_label": "Home +2.75",
"odd": 1.19
},
{
"name": "Away -2.75",
"name_label": "Away -2.75",
"odd": 4.5
}
]
}
],
"updated_at": "2026-07-28T14:20:04Z"
}
],
"meta": {
"total": 1
}
}一次请求,获取完整的西班牙甲级联赛积分榜
这不是截图。下面的积分榜由一次 GET /standings 请求实时返回——正是你的应用收到的响应。名次、近况、净胜球自动更新,你无需碰任何表格。
| 排名 | 球队 | 场次 | 胜/平/负 | 进球 / 失球 | 净胜球 | 近况 |
|---|---|---|---|---|---|---|
| 1 | 巴塞罗那 | 38 | 31/1/6 | 95/36 | 59 | |
| 2 | 皇家马德里 | 38 | 27/5/6 | 77/35 | 42 | |
| 3 | 比利亚雷亚尔 | 38 | 22/6/10 | 72/46 | 26 | |
| 4 | 竞技FC | 38 | 21/6/11 | 62/44 | 18 | |
| 5 | 贝蒂斯 | 38 | 15/15/8 | 59/48 | 11 | |
| 6 | 塞尔塔维戈 | 38 | 14/12/12 | 53/48 | 5 | |
| 7 | 赫塔菲 | 38 | 15/6/17 | 32/38 | -6 | |
| 8 | 拉约瓦列卡诺 | 38 | 12/14/12 | 41/44 | -3 | |
| 9 | 瓦伦西亚 | 38 | 13/10/15 | 46/55 | -9 | |
| 10 | 皇家社会 | 38 | 11/13/14 | 59/61 | -2 | |
| 11 | 西班牙人 | 38 | 12/10/16 | 43/55 | -12 | |
| 12 | 竞技队 | 38 | 13/6/19 | 43/58 | -15 | |
| 13 | 塞维利亚 | 38 | 12/7/19 | 46/60 | -14 | |
| 14 | 阿拉维斯 | 38 | 11/10/17 | 44/56 | -12 | |
| 15 | 埃尔切 | 38 | 10/13/15 | 49/57 | -8 | |
| 16 | 莱万特 | 38 | 11/9/18 | 47/61 | -14 | |
| 17 | 奥萨苏纳 | 38 | 11/9/18 | 44/50 | -6 | |
| 18 | 马洛卡 | 38 | 11/9/18 | 47/57 | -10 | |
| 19 | 赫罗纳 | 38 | 9/14/15 | 39/55 | -16 | |
| 20 | 奥维多 | 38 | 6/11/21 | 26/60 | -34 |
数据来自 AnySport 联赛积分榜端点。更新日期:2026/10/26
西班牙甲级联赛 2025-2026 赛季数据一览
下面每个数字都由 API 返回的原始比赛数据计算得出,而非人工录入。你可以基于同样的数据搭建看板、模型或编辑组件。
380已完成比赛
1,024总进球
2.69场均进球
186主胜
93平局
101客胜
48.9%主胜率
6最大分差
8单场最多进球
巴塞罗那领头羊
最近更新:2026/10/26
22 个赛季的西班牙甲级联赛历史,随时可查
数据回溯至 2004-2005 赛季——历年冠军与不同夺冠球队、每一张最终积分榜都按赛季归档、可随时调用。一次回填历史,之后用同样的端点保持更新。这种深度正是数据提供商与比分板的区别。
| 赛季 | 球队 | 积分 | 战绩(场/胜/平/负) | 进球数据(进/失/净) |
|---|---|---|---|---|
| 2025-2026 | 巴塞罗那 | 94 | 38/31/1/6 | 95/36/59 |
| 2024-2025 | 巴塞罗那 | 88 | 38/28/4/6 | 102/39/63 |
| 2023-2024 | 皇家马德里 | 95 | 38/29/8/1 | 87/26/61 |
| 2022-2023 | 巴塞罗那 | 88 | 38/28/4/6 | 70/20/50 |
| 2021-2022 | 皇家马德里 | 86 | 38/26/8/4 | 80/31/49 |
| 2020-2021 | 竞技FC | 86 | 38/26/8/4 | 67/25/42 |
| 2019-2020 | 皇家马德里 | 87 | 38/26/9/3 | 70/25/45 |
| 2018-2019 | 巴塞罗那 | 87 | 38/26/9/3 | 90/36/54 |
| 2017-2018 | 巴塞罗那 | 59 | 23/18/5/0 | 60/11/49 |
| 2016-2017 | 皇家马德里 | 93 | 38/29/6/3 | 106/41/65 |
| 2015-2016 | 巴塞罗那 | 91 | 38/29/4/5 | 112/29/83 |
| 2014-2015 | 巴塞罗那 | 94 | 38/30/4/4 | 110/21/89 |
| 2013-2014 | 竞技FC | 90 | 38/28/6/4 | 77/26/51 |
| 2012-2013 | 巴塞罗那 | 100 | 38/32/4/2 | 115/40/75 |
| 2011-2012 | 皇家马德里 | 100 | 38/32/4/2 | 121/32/89 |
| 2010-2011 | 巴塞罗那 | 96 | 38/30/6/2 | 95/21/74 |
| 2009-2010 | 巴塞罗那 | 99 | 38/31/6/1 | 98/24/74 |
| 2008-2009 | 巴塞罗那 | 87 | 38/27/6/5 | 105/35/70 |
| 2007-2008 | 皇家马德里 | 85 | 38/27/4/7 | 84/36/48 |
| 2006-2007 | 皇家马德里 | 76 | 38/23/7/8 | 66/40/26 |
| 2005-2006 | 巴塞罗那 | 82 | 38/25/7/6 | 80/35/45 |
| 2004-2005 | 巴塞罗那 | 84 | 38/25/9/4 | 73/29/44 |
常见问题
你们的 API 覆盖多少西班牙甲级联赛球队和球员?
我们的西班牙甲级联赛 API 覆盖 43 支球队,含完整阵容与球员资料,均可通过 /teams 与 /players 端点获取。
你们提供多少历史数据?
22 个赛季的积分榜,回溯至 2004-2005,每一张最终积分榜、冠军与赛季均已归档、可按赛季查询。
你们的 API 提供哪些实时足球数据?
实时比分、滚球赔率与比赛事件通过 REST 与 WebSocket 推送,可用同一套结构驱动实时组件与滚球产品。
免费试用是否包含西班牙甲级联赛的比赛数据?
包含。免费试用可访问西班牙甲级联赛的赛程、赛果、积分榜与球员数据,无需信用卡。