西班牙乙级联赛足球数据 API
通过一套快速、稳定、对开发者友好的 REST 与 WebSocket API,接入西班牙乙级联赛的实时比分、赛程、积分榜、阵容与赔率。81 家俱乐部、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_2b4a862493994f2f9280b5eff727cfcb&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_2b4a862493994f2f9280b5eff727cfcb', 'season': '2026/2027', 'lang': 'en'}
)
print(resp.json()){
"success": true,
"data": [
{
"match_id": "as_d14fd7e2e78a41efb7785f886cfb4ed8",
"date": "2027-06-06",
"time": "15:00",
"status": "Not Started",
"league": "Segunda",
"league_id": "asl_2b4a862493994f2f9280b5eff727cfcb",
"season": "2026/2027",
"home": {
"name": "Albacete",
"team_id": "ast_a15e21798d984892b05e96cfaeb4dabc"
},
"away": {
"name": "Cadiz CF",
"team_id": "ast_088601bff05f41d58d7a831c903b4c2e"
},
"ht_score": "-",
"venue": "Estadio Carlos Belmonte"
},
{
"match_id": "as_79dec41439754e69b434b7846b217cde",
"date": "2027-06-06",
"time": "15:00",
"status": "Not Started",
"league": "Segunda",
"league_id": "asl_2b4a862493994f2f9280b5eff727cfcb",
"season": "2026/2027",
"home": {
"name": "Almeria",
"team_id": "ast_297177d659b54cfebb177356a9ebbc40"
},
"away": {
"name": "Mallorca",
"team_id": "ast_fd95c969902c4e49b411158c9f2fe6c3"
},
"ht_score": "-",
"venue": ""
},
{
"match_id": "as_279944a3466446b1b2b4752dae5c8a4c",
"date": "2027-06-06",
"time": "15:00",
"status": "Not Started",
"league": "Segunda",
"league_id": "asl_2b4a862493994f2f9280b5eff727cfcb",
"season": "2026/2027",
"home": {
"name": "Ceuta",
"team_id": "ast_411475c5674b480885c439dace8bad77"
},
"away": {
"name": "Burgos CF",
"team_id": "ast_d3f32773193945b790d3cd7de5e95555"
},
"ht_score": "-",
"venue": "Estadio Municipal Alfonso Murube"
}
],
"meta": {
"total": 10
}
}GET
https://data.anysport.io/v1/soccer/standings?league_id=asl_2b4a862493994f2f9280b5eff727cfcb&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_2b4a862493994f2f9280b5eff727cfcb', 'season': '2025-2026', 'lang': 'en'}
)
print(resp.json()){
"success": true,
"data": [
{
"position": 1,
"team_id": "ast_5cfec6081f15465e84d282b9758e7857",
"team": "Racing Santander",
"played": 42,
"wins": 25,
"draws": 7,
"losses": 10,
"goals_for": 90,
"goals_against": 61,
"goal_difference": 29,
"points": 82,
"form": "WDWWW"
},
{
"position": 2,
"team_id": "ast_49e75cddaf3446b7b476efb22802e4fc",
"team": "Dep. A Coruna",
"played": 42,
"wins": 22,
"draws": 11,
"losses": 9,
"goals_for": 65,
"goals_against": 44,
"goal_difference": 21,
"points": 77,
"form": "LWWWW"
},
{
"position": 3,
"team_id": "ast_297177d659b54cfebb177356a9ebbc40",
"team": "Almeria",
"played": 42,
"wins": 22,
"draws": 8,
"losses": 12,
"goals_for": 81,
"goals_against": 63,
"goal_difference": 18,
"points": 74,
"form": "WLLDW"
}
],
"meta": {
"total": 22
}
}GET
https://data.anysport.io/v1/soccer/topscorers?league_id=asl_2b4a862493994f2f9280b5eff727cfcb&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_2b4a862493994f2f9280b5eff727cfcb', 'season': '2025-2026', 'kind': 'goals', 'lang': 'en'}
)
print(resp.json()){
"success": true,
"data": [
{
"rank": 1,
"player_id": "asp_3b53ca56a1c54b5b929314c0042939ef",
"player_name": "Arribas Sergio",
"team_id": "ast_297177d659b54cfebb177356a9ebbc40",
"team_name": "Almeria",
"value": 26
},
{
"rank": 2,
"player_id": "asp_73ca74afca8c43d598901cce468d60ab",
"player_name": "Chupe",
"team_id": "ast_6addef73eb6045da92febcbfda43a5c2",
"team_name": "Malaga",
"value": 25
},
{
"rank": 3,
"player_id": "asp_3eb6096b5cd64d7aaf618d5c17a78eb0",
"player_name": "Martín Andrés",
"team_id": "ast_5cfec6081f15465e84d282b9758e7857",
"team_name": "Racing Santander",
"value": 23
}
],
"meta": {
"total": 50
}
}GET
https://data.anysport.io/v1/soccer/teams?league_id=asl_2b4a862493994f2f9280b5eff727cfcb&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_2b4a862493994f2f9280b5eff727cfcb', 'season': '2026/2027', 'lang': 'en'}
)
print(resp.json()){
"success": true,
"data": [
{
"team_id": "ast_a15e21798d984892b05e96cfaeb4dabc",
"name": "Albacete",
"country": "Spain",
"venue": "Estadio Carlos Belmonte"
},
{
"team_id": "ast_297177d659b54cfebb177356a9ebbc40",
"name": "Almeria",
"country": "Spain",
"venue": "UD Almería Stadium"
},
{
"team_id": "ast_6be6897e8fcc47f6a28408620c6af635",
"name": "Andorra",
"country": "Spain",
"venue": "Estadi de la FAF d'Encamp"
}
],
"meta": {
"total": 22
}
}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_5cfec6081f15465e84d282b9758e7857&league_id=asl_2b4a862493994f2f9280b5eff727cfcb&lang=enimport requests
resp = requests.get(
'https://data.anysport.io/v1/soccer/players',
headers={'apikey': 'YOUR_API_KEY'},
params={'team_id': 'ast_5cfec6081f15465e84d282b9758e7857', 'league_id': 'asl_2b4a862493994f2f9280b5eff727cfcb', 'lang': 'en'}
)
print(resp.json()){
"success": true,
"data": [
{
"player_id": "asp_717de3d7a45b48cc844918ff7dab1177",
"name": "Aitor Crespo",
"position": "D",
"number": "37",
"age": "20",
"team_id": "ast_5cfec6081f15465e84d282b9758e7857",
"team_name": "Racing Santander"
},
{
"player_id": "asp_db89b888dcf3427a87a894cf0d3d4f2c",
"name": "Alvaro Jimenez",
"position": "G",
"number": "31",
"age": "23",
"team_id": "ast_5cfec6081f15465e84d282b9758e7857",
"team_name": "Racing Santander"
},
{
"player_id": "asp_9c0ff00a0398497282b19de6ba5bc686",
"name": "Alvaro Mantilla",
"position": "D",
"number": "2",
"age": "26",
"team_id": "ast_5cfec6081f15465e84d282b9758e7857",
"team_name": "Racing Santander"
}
],
"meta": {
"total": 30
}
}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 | 桑坦德竞技 | 42 | 25/7/10 | 90/61 | 29 | WDWWW |
| 2 | 拉科鲁尼亚体育 | 42 | 22/11/9 | 65/44 | 21 | LWWWW |
| 3 | 阿尔梅里亚 | 42 | 22/8/12 | 81/63 | 18 | WLLDW |
| 4 | 马拉加 | 42 | 21/10/11 | 75/52 | 23 | WDWWW |
| 5 | 拉斯帕尔马斯 | 42 | 20/13/9 | 57/40 | 17 | WDWLW |
| 6 | 卡斯特利翁 | 42 | 20/12/10 | 70/51 | 19 | WWDDL |
| 7 | 布尔戈斯CF | 42 | 20/12/10 | 48/33 | 15 | WWWDD |
| 8 | 埃瓦尔 | 42 | 19/10/13 | 52/40 | 12 | LWLWL |
| 9 | 科尔多瓦 | 42 | 17/10/15 | 57/61 | -4 | DLLWW |
| 10 | 希洪 | 42 | 18/7/17 | 60/54 | 6 | WWWLL |
| 11 | 塞乌塔 | 42 | 17/10/15 | 51/63 | -12 | WWLDW |
| 12 | 阿尔巴塞特 | 42 | 16/11/15 | 56/55 | 1 | LWWWW |
| 13 | 安道尔 | 42 | 16/10/16 | 62/54 | 8 | LLLWL |
| 14 | 格拉纳达 | 42 | 12/12/18 | 50/56 | -6 | LLLLW |
| 15 | 皇家社会B队 | 42 | 12/11/19 | 52/61 | -9 | DLDWD |
| 16 | 莱加内斯 | 42 | 11/13/18 | 43/51 | -8 | WLDLL |
| 17 | 巴利亚多利德 | 42 | 12/10/20 | 44/57 | -13 | LLLWL |
| 18 | 卡迪斯 | 42 | 11/10/21 | 41/61 | -20 | LWDLD |
| 19 | 米兰德斯 | 42 | 10/10/22 | 47/69 | -22 | LWDLL |
| 20 | 乌埃斯卡 | 42 | 9/11/22 | 41/63 | -22 | DLDLL |
| 21 | 文化莱昂萨 | 42 | 9/10/23 | 39/68 | -29 | DLWLD |
| 22 | 萨拉戈萨 | 42 | 8/12/22 | 35/59 | -24 | LDLLL |
数据来自 AnySport 联赛积分榜端点。更新日期:2026/10/26
西班牙乙级联赛 2025-2026 赛季数据一览
下面每个数字都由 API 返回的原始比赛数据计算得出,而非人工录入。你可以基于同样的数据搭建看板、模型或编辑组件。
468已完成比赛
1,229总进球
2.63场均进球
208主胜
118平局
142客胜
44.4%主胜率
5最大分差
9单场最多进球
桑坦德竞技领头羊
最近更新:2026/10/26
22 个赛季的西班牙乙级联赛历史,随时可查
数据回溯至 2004-2005 赛季——历年冠军与不同夺冠球队、每一张最终积分榜都按赛季归档、可随时调用。一次回填历史,之后用同样的端点保持更新。这种深度正是数据提供商与比分板的区别。
| 赛季 | 球队 | 积分 | 战绩(场/胜/平/负) | 进球数据(进/失/净) |
|---|---|---|---|---|
| 2025-2026 | 桑坦德竞技 | 82 | 42/25/7/10 | 90/61/29 |
| 2024-2025 | 莱万特 | 79 | 42/22/13/7 | 69/42/27 |
| 2023-2024 | 莱加内斯 | 74 | 42/20/14/8 | 56/27/29 |
| 2022-2023 | 格拉纳达 | 75 | 42/22/9/11 | 55/30/25 |
| 2021-2022 | 阿尔梅里亚 | 81 | 42/24/9/9 | 68/35/33 |
| 2020-2021 | 西班牙人 | 82 | 42/24/10/8 | 71/28/43 |
| 2019-2020 | 乌埃斯卡 | 70 | 42/21/7/14 | 55/42/13 |
| 2018-2019 | 奥萨苏纳 | 87 | 42/26/9/7 | 59/35/24 |
| 2017-2018 | 乌埃斯卡 | 55 | 26/16/7/3 | 40/18/22 |
| 2016-2017 | 莱万特 | 84 | 42/25/9/8 | 57/32/25 |
| 2015-2016 | 阿拉维斯 | 75 | 42/21/12/9 | 49/35/14 |
| 2014-2015 | 贝蒂斯 | 84 | 42/25/9/8 | 73/40/33 |
| 2013-2014 | 埃瓦尔 | 71 | 42/19/14/9 | 49/28/21 |
| 2012-2013 | 埃尔切 | 82 | 42/23/13/6 | 54/27/27 |
| 2011-2012 | 拉科鲁尼亚体育 | 91 | 42/29/4/9 | 76/45/31 |
| 2010-2011 | 贝蒂斯 | 83 | 42/25/8/9 | 85/44/41 |
| 2009-2010 | 皇家社会 | 74 | 42/20/14/8 | 53/37/16 |
| 2008-2009 | 赫雷斯 | 82 | 42/24/10/8 | 73/42/31 |
| 2007-2008 | 努曼西亚 | 77 | 42/22/11/9 | 59/38/21 |
| 2006-2007 | 巴利亚多利德 | 88 | 42/26/10/6 | 70/35/35 |
| 2005-2006 | 韦尔瓦体育 | 78 | 42/22/12/8 | 67/32/35 |
| 2004-2005 | 卡迪斯 | 76 | 42/21/13/8 | 68/30/38 |
常见问题
你们的 API 覆盖多少西班牙乙级联赛球队和球员?
我们的西班牙乙级联赛 API 覆盖 81 支球队,含完整阵容与球员资料,均可通过 /teams 与 /players 端点获取。
你们提供多少历史数据?
22 个赛季的积分榜,回溯至 2004-2005,每一张最终积分榜、冠军与赛季均已归档、可按赛季查询。
你们的 API 提供哪些实时足球数据?
实时比分、滚球赔率与比赛事件通过 REST 与 WebSocket 推送,可用同一套结构驱动实时组件与滚球产品。
免费试用是否包含西班牙乙级联赛的比赛数据?
包含。免费试用可访问西班牙乙级联赛的赛程、赛果、积分榜与球员数据,无需信用卡。