Spain Primera Soccer Data API
Integrate live scores, fixtures, standings, lineups, and odds for Spain Primera through one fast, reliable, developer-friendly REST & WebSocket API. 43 clubs, 22 seasons of history, one consistent JSON schema.
No credit card required
The same schema powers Spain Primera and 1,000+ competitions worldwide.
Access Full Data of Spain Primera Matches
Every Spain Primera match, table, and transfer flows through the same clean JSON — no scraping, no HTML parsing, no manual updates. Pick an endpoint, send one request, and get structured data you can ship straight into your product.
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
}
}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
}
}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
}
}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
}
}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
}
}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
}
}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
}
}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
}
}One Request, the Full Spain Primera Table
This isn't a screenshot. The standings below are served live from a single GET /standings call — the exact response your app receives. Positions, form, and goal difference update themselves; you never touch a spreadsheet.
| Position | Team | Played | W/D/L | Goals For / Against | Goal Difference | Form |
|---|---|---|---|---|---|---|
| 1 | Barcelona | 38 | 31/1/6 | 95/36 | 59 | |
| 2 | Real Madrid | 38 | 27/5/6 | 77/35 | 42 | |
| 3 | Villarreal | 38 | 22/6/10 | 72/46 | 26 | |
| 4 | Atl. Madrid | 38 | 21/6/11 | 62/44 | 18 | |
| 5 | Betis | 38 | 15/15/8 | 59/48 | 11 | |
| 6 | Celta Vigo | 38 | 14/12/12 | 53/48 | 5 | |
| 7 | Getafe | 38 | 15/6/17 | 32/38 | -6 | |
| 8 | Rayo Vallecano | 38 | 12/14/12 | 41/44 | -3 | |
| 9 | Valencia | 38 | 13/10/15 | 46/55 | -9 | |
| 10 | Real Sociedad | 38 | 11/13/14 | 59/61 | -2 | |
| 11 | Espanyol | 38 | 12/10/16 | 43/55 | -12 | |
| 12 | Ath Bilbao | 38 | 13/6/19 | 43/58 | -15 | |
| 13 | Sevilla | 38 | 12/7/19 | 46/60 | -14 | |
| 14 | Alaves | 38 | 11/10/17 | 44/56 | -12 | |
| 15 | Elche | 38 | 10/13/15 | 49/57 | -8 | |
| 16 | Levante | 38 | 11/9/18 | 47/61 | -14 | |
| 17 | Osasuna | 38 | 11/9/18 | 44/50 | -6 | |
| 18 | Mallorca | 38 | 11/9/18 | 47/57 | -10 | |
| 19 | Girona | 38 | 9/14/15 | 39/55 | -16 | |
| 20 | Oviedo | 38 | 6/11/21 | 26/60 | -34 |
Data comes from the AnySport league standing endpoint. Update date: 2026/10/27
Spain Primera Season 2025-2026, Quantified
Every figure below is computed from raw match data the API returns — not hand-entered. Build the same dashboards, betting models, or editorial widgets on top of the same numbers.
Last update: 2026/10/27
22 Seasons of Spain Primera History, Queryable
Coverage runs back to 2004-2005 — champions and distinct title-holders, every final table archived and addressable by season. Backfill your database once, then keep it current from the same endpoints. This depth is what separates a data provider from a scoreboard.
| Season | Team | Points | Match Record | Goal Statistics |
|---|---|---|---|---|
| 2025-2026 | Barcelona | 94 | 38/31/1/6 | 95/36/59 |
| 2024-2025 | Barcelona | 88 | 38/28/4/6 | 102/39/63 |
| 2023-2024 | Real Madrid | 95 | 38/29/8/1 | 87/26/61 |
| 2022-2023 | Barcelona | 88 | 38/28/4/6 | 70/20/50 |
| 2021-2022 | Real Madrid | 86 | 38/26/8/4 | 80/31/49 |
| 2020-2021 | Atl. Madrid | 86 | 38/26/8/4 | 67/25/42 |
| 2019-2020 | Real Madrid | 87 | 38/26/9/3 | 70/25/45 |
| 2018-2019 | Barcelona | 87 | 38/26/9/3 | 90/36/54 |
| 2017-2018 | Barcelona | 59 | 23/18/5/0 | 60/11/49 |
| 2016-2017 | Real Madrid | 93 | 38/29/6/3 | 106/41/65 |
| 2015-2016 | Barcelona | 91 | 38/29/4/5 | 112/29/83 |
| 2014-2015 | Barcelona | 94 | 38/30/4/4 | 110/21/89 |
| 2013-2014 | Atletico Madrid | 90 | 38/28/6/4 | 77/26/51 |
| 2012-2013 | Barcelona | 100 | 38/32/4/2 | 115/40/75 |
| 2011-2012 | Real Madrid | 100 | 38/32/4/2 | 121/32/89 |
| 2010-2011 | Barcelona | 96 | 38/30/6/2 | 95/21/74 |
| 2009-2010 | Barcelona | 99 | 38/31/6/1 | 98/24/74 |
| 2008-2009 | Barcelona | 87 | 38/27/6/5 | 105/35/70 |
| 2007-2008 | Real Madrid | 85 | 38/27/4/7 | 84/36/48 |
| 2006-2007 | Real Madrid | 76 | 38/23/7/8 | 66/40/26 |
| 2005-2006 | Barcelona | 82 | 38/25/7/6 | 80/35/45 |
| 2004-2005 | Barcelona | 84 | 38/25/9/4 | 73/29/44 |