西班牙乙级B联赛足球数据 API
通过一套快速、稳定、对开发者友好的 REST 与 WebSocket API,接入西班牙乙级B联赛的实时比分、赛程、积分榜、阵容与赔率。240 家俱乐部、17 个赛季历史,统一的 JSON 结构。
无需信用卡
同一套数据结构支撑西班牙乙级B联赛及全球 1,000+ 项赛事。
获取西班牙乙级B联赛的完整数据
西班牙乙级B联赛的每一场比赛、每一张积分榜、每一笔转会都通过同一套整洁的 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_0240ab84234d496a9abcd26e6ec28c7d&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_0240ab84234d496a9abcd26e6ec28c7d', 'season': '2026/2027', 'lang': 'en'}
)
print(resp.json()){
"success": true,
"data": [
{
"match_id": "as_abf24f452f85498db9f73b5d462a655d",
"date": "2027-05-23",
"time": "15:00",
"status": "Not Started",
"league": "Segunda B",
"league_id": "asl_0240ab84234d496a9abcd26e6ec28c7d",
"season": "2026/2027",
"home": {
"name": "Arenas Getxo",
"team_id": "ast_a65e89210a9a46c2aad45c66254a1e13"
},
"away": {
"name": "Pontevedra",
"team_id": "ast_bdb4222387b440979fdd7fe83f335b89"
},
"ht_score": "-",
"venue": "Estadio Municipal de Fadura"
},
{
"match_id": "as_654fdcc07a5f43598fde487b3edf3545",
"date": "2027-05-23",
"time": "15:00",
"status": "Not Started",
"league": "Segunda B",
"league_id": "asl_0240ab84234d496a9abcd26e6ec28c7d",
"season": "2026/2027",
"home": {
"name": "Barakaldo",
"team_id": "ast_ac2816f29d484afbbb9b021976c8e289"
},
"away": {
"name": "Cacereno",
"team_id": "ast_df5907a130b84b7aabaffbf61b327d96"
},
"ht_score": "-",
"venue": "Campo de Lasesarre"
},
{
"match_id": "as_9f333ab50056465c8b3c115b0643edd2",
"date": "2027-05-23",
"time": "15:00",
"status": "Not Started",
"league": "Segunda B",
"league_id": "asl_0240ab84234d496a9abcd26e6ec28c7d",
"season": "2026/2027",
"home": {
"name": "CD Coria",
"team_id": "ast_f3e1eb3aeb8643b5a69924fca33a30ac"
},
"away": {
"name": "UD Ourense",
"team_id": "ast_311eba28f22a47d5a4f37a67dda8e310"
},
"ht_score": "-",
"venue": ""
}
],
"meta": {
"total": 10
}
}GET
https://data.anysport.io/v1/soccer/standings?league_id=asl_0240ab84234d496a9abcd26e6ec28c7d&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_0240ab84234d496a9abcd26e6ec28c7d', 'season': '2025-2026', 'lang': 'en'}
)
print(resp.json()){
"success": true,
"data": [
{
"position": 1,
"team_id": "ast_ed0d5daca6ae44598df1947b7f9d687e",
"team": "Tenerife",
"played": 38,
"wins": 22,
"draws": 10,
"losses": 6,
"goals_for": 62,
"goals_against": 24,
"goal_difference": 38,
"points": 76,
"form": "LWLWD"
},
{
"position": 2,
"team_id": "ast_b077682c11144f9ea32c3b5396a37e6c",
"team": "Celta Vigo B",
"played": 38,
"wins": 18,
"draws": 11,
"losses": 9,
"goals_for": 61,
"goals_against": 48,
"goal_difference": 13,
"points": 65,
"form": "DLWLD"
},
{
"position": 3,
"team_id": "ast_8592ad3556c34d988744d6b20602c3d9",
"team": "Zamora",
"played": 38,
"wins": 17,
"draws": 10,
"losses": 11,
"goals_for": 53,
"goals_against": 42,
"goal_difference": 11,
"points": 61,
"form": "LLWWW"
}
],
"meta": {
"total": 20
}
}GET
https://data.anysport.io/v1/soccer/topscorers?league_id=asl_30c1e028124f46529e230d780bbe0e9e&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_30c1e028124f46529e230d780bbe0e9e', 'season': '2025-2026', 'kind': 'goals', 'lang': 'en'}
)
print(resp.json()){
"success": true,
"data": [
{
"rank": 1,
"player_id": "asp_0fc5b0bbf9de418abd1ea1459081e326",
"player_name": "Harry Kane",
"team_id": "ast_dd1f5dc0480040f89a8992e6659671c3",
"team_name": "Bayern Munich",
"value": 36
},
{
"rank": 2,
"player_id": "asp_251cc25a651c4aabad97ab9d83776c92",
"player_name": "Deniz Undav",
"team_id": "ast_15c6fce8ebc446a0acb0013afecc9bc2",
"team_name": "Stuttgart",
"value": 19
},
{
"rank": 3,
"player_id": "asp_aa4271c8822a498a863e5c8fa42d7f04",
"player_name": "Serhou Guirassy",
"team_id": "ast_c4a3b3c90a89431ca93d828e19f20284",
"team_name": "Dortmund",
"value": 19
}
],
"meta": {
"total": 3
}
}GET
https://data.anysport.io/v1/soccer/teams?league_id=asl_0240ab84234d496a9abcd26e6ec28c7d&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_0240ab84234d496a9abcd26e6ec28c7d', 'season': '2026/2027', 'lang': 'en'}
)
print(resp.json()){
"success": true,
"data": [
{
"team_id": "ast_c18517b2b7634efe80fef5aeacf82a1e",
"name": "AD Merida",
"country": "Spain",
"venue": "Estadio Romano"
},
{
"team_id": "ast_b42c58be2ddf4aa08cbc715b2f479116",
"name": "Aguilas FC",
"country": "Spain",
"venue": "Estadio El Rubial"
},
{
"team_id": "ast_464144f29a6a4b48ab2de09a0eb6a8f6",
"name": "Alcorcon",
"country": "Spain",
"venue": "Estadio Santo Domingo"
}
],
"meta": {
"total": 40
}
}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_ed0d5daca6ae44598df1947b7f9d687e&league_id=asl_0240ab84234d496a9abcd26e6ec28c7d&lang=enimport requests
resp = requests.get(
'https://data.anysport.io/v1/soccer/players',
headers={'apikey': 'YOUR_API_KEY'},
params={'team_id': 'ast_ed0d5daca6ae44598df1947b7f9d687e', 'league_id': 'asl_0240ab84234d496a9abcd26e6ec28c7d', 'lang': 'en'}
)
print(resp.json()){
"success": true,
"data": [
{
"player_id": "asp_3de5047e7ce64314b692d44f08ae08d3",
"name": "Aitor Sanz",
"position": "M",
"number": "16",
"age": "41",
"team_id": "ast_ed0d5daca6ae44598df1947b7f9d687e",
"team_name": "Tenerife"
},
{
"player_id": "asp_514cf0239e084b08bf0ee2cd42bc63f7",
"name": "Alassan Manjam",
"position": "A",
"number": "20",
"age": "23",
"team_id": "ast_ed0d5daca6ae44598df1947b7f9d687e",
"team_name": "Tenerife"
},
{
"player_id": "asp_5a278313eb8e4fd2b64005bc006a620a",
"name": "Alejandro Padilla Hernandez",
"position": "G",
"number": "40",
"age": "22",
"team_id": "ast_ed0d5daca6ae44598df1947b7f9d687e",
"team_name": "Tenerife"
}
],
"meta": {
"total": 39
}
}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
}
}一次请求,获取完整的西班牙乙级B联赛积分榜
这不是截图。下面的积分榜由一次 GET /standings 请求实时返回——正是你的应用收到的响应。名次、近况、净胜球自动更新,你无需碰任何表格。
| 排名 | 球队 | 场次 | 胜/平/负 | 进球 / 失球 | 净胜球 | 近况 |
|---|---|---|---|---|---|---|
| 1 | 特内里费 | 38 | 22/10/6 | 62/24 | 38 | LWLWD |
| 2 | 塞尔塔维戈B | 38 | 18/11/9 | 61/48 | 13 | DLWLD |
| 3 | 萨莫拉 | 38 | 17/10/11 | 53/42 | 11 | LLWWW |
| 4 | 蓬费拉迪纳 | 38 | 17/9/12 | 43/33 | 10 | WWWLD |
| 5 | 皇家马德里B队 | 38 | 16/10/12 | 61/52 | 9 | DDLWW |
| 6 | 庞特维德拉 | 38 | 14/16/8 | 49/31 | 18 | DLWDD |
| 7 | 巴拉卡尔多 | 38 | 15/13/10 | 51/38 | 13 | DWWLW |
| 8 | 联合主义者 | 38 | 15/11/12 | 53/49 | 4 | WDWLD |
| 9 | 卢戈 | 38 | 13/14/11 | 36/40 | -4 | DWLWL |
| 10 | 梅里达 | 38 | 14/10/14 | 47/53 | -6 | WDLLL |
| 11 | 阿雷纳斯盖乔 | 38 | 15/7/16 | 46/55 | -9 | WDDLW |
| 12 | 费罗尔竞技俱乐部 | 38 | 13/10/15 | 41/47 | -6 | LDDDD |
| 13 | 毕尔巴鄂竞技B队 | 38 | 13/10/15 | 38/46 | -8 | LWLDD |
| 14 | 皇家阿维列斯 | 38 | 11/11/16 | 55/67 | -12 | DLLDD |
| 15 | 卡塞雷诺 | 38 | 10/14/14 | 42/49 | -7 | LWWWD |
| 16 | 塔拉维拉CF | 38 | 11/10/17 | 38/47 | -9 | WDLWL |
| 17 | 奥伦塞CF | 38 | 10/13/15 | 44/47 | -3 | WDLDL |
| 18 | 瓜达拉哈拉 | 38 | 10/11/17 | 44/58 | -14 | DLWDD |
| 19 | 奥萨苏纳B队 | 38 | 10/10/18 | 28/42 | -14 | LDWWW |
| 20 | 阿伦特罗 | 38 | 6/10/22 | 29/53 | -24 | DLLLL |
数据来自 AnySport 联赛积分榜端点。更新日期:2026/10/27
17 个赛季的西班牙乙级B联赛历史,随时可查
数据回溯至 2009-2010 赛季——历年冠军与不同夺冠球队、每一张最终积分榜都按赛季归档、可随时调用。一次回填历史,之后用同样的端点保持更新。这种深度正是数据提供商与比分板的区别。
| 赛季 | 球队 | 积分 | 战绩(场/胜/平/负) | 进球数据(进/失/净) |
|---|---|---|---|---|
| 2025-2026 | 特内里费 | 76 | 38/22/10/6 | 62/24/38 |
| 2024-2025 | 塞乌塔 | 67 | 38/17/16/5 | 46/35/11 |
| 2023-2024 | 拉科鲁尼亚体育 | 78 | 38/22/12/4 | 64/27/37 |
| 2022-2023 | 费罗尔竞技俱乐部 | 75 | 38/22/9/7 | 55/25/30 |
| 2021-2022 | 桑坦德竞技 | 82 | 38/25/7/6 | 61/31/30 |
| 2020-2021 | 皇家社会B队 | 40 | 20/12/4/4 | 35/16/19 |
| 2019-2020 | 巴利阿雷斯 | 58 | 28/18/4/6 | 44/22/22 |
| 2018-2019 | 富恩拉布拉达 | 71 | 38/20/11/7 | 49/21/28 |
| 2017-2018 | 富恩拉布拉达 | 51 | 25/15/6/4 | 44/19/25 |
| 2016-2017 | 阿尔巴塞特 | 69 | 38/20/9/9 | 64/36/28 |
| 2015-2016 | 桑坦德竞技 | 74 | 38/21/11/6 | 56/28/28 |
| 2014-2015 | 奥维多 | 80 | 38/24/8/6 | 77/31/46 |
| 2013-2014 | 桑坦德竞技 | 66 | 36/17/15/4 | 55/27/28 |
| 2012-2013 | 特内里费 | 73 | 38/20/13/5 | 62/28/34 |
| 2011-2012 | 皇家马德里B队 | 78 | 38/23/9/6 | 77/36/41 |
| 2010-2011 | 卢戈 | 75 | 38/22/9/7 | 64/39/25 |
| 2009-2010 | 阿尔科尔孔 | 73 | 38/21/10/7 | 50/30/20 |
常见问题
你们的 API 覆盖多少西班牙乙级B联赛球队和球员?
我们的西班牙乙级B联赛 API 覆盖 240 支球队,含完整阵容与球员资料,均可通过 /teams 与 /players 端点获取。
你们提供多少历史数据?
17 个赛季的积分榜,回溯至 2009-2010,每一张最终积分榜、冠军与赛季均已归档、可按赛季查询。
你们的 API 提供哪些实时足球数据?
实时比分、滚球赔率与比赛事件通过 REST 与 WebSocket 推送,可用同一套结构驱动实时组件与滚球产品。
免费试用是否包含西班牙乙级B联赛的比赛数据?
包含。免费试用可访问西班牙乙级B联赛的赛程、赛果、积分榜与球员数据,无需信用卡。