Skip to main content

Soccer (all) — Football-Data.co.uk CSV archive (football-data.co.uk)

sportsdataverse.soccer — 3 endpoints.

football_data_extra_league​

All seasons of one 'extra' league (BRA, ARG, USA, ...).

Endpoint URL: GET https://www.football-data.co.uk/new/{country}.csv

Valid URL: https://www.football-data.co.uk/new/BRA.csv

API ParameterPythonPatternRequiredNullableDescription
countrycountryYThree-letter country code of an 'extra' league, e.g. BRA (Brazil); ARG, AUT, CHN, DNK, FIN, IRL, JPN, MEX, NOR, POL, ROU, RUS, SWE, SWZ, USA per new_leagues.php.

Returns​

return_parsed=True (default) — a tidy polars.DataFrame with the columns below; pass return_as_pandas=True for a pandas.DataFrame.

col_nametypedescription
countryString
leagueString
seasonInt64
dateStringMatch Date (dd/mm/yy)
timeStringTime of match kick off (from 2019-20)
homeString
awayString
hgInt64Full Time Home Team Goals
agInt64Full Time Away Team Goals
resStringFull Time Result (H=Home Win, D=Draw, A=Away Win)
pschFloat64Closing Pinnacle home win odds (closing odds, from 2012-13)
pscdFloat64Closing Pinnacle draw odds (closing odds, from 2012-13)
pscaFloat64Closing Pinnacle away win odds (closing odds, from 2012-13)
max_chFloat64Closing Market maximum home win odds (closing odds, from 2019-20)
max_cdFloat64Closing Market maximum draw win odds (closing odds, from 2019-20)
max_caFloat64Closing Market maximum away win odds (closing odds, from 2019-20)
avg_chFloat64Closing Market average home win odds (closing odds, from 2019-20)
avg_cdFloat64Closing Market average draw win odds (closing odds, from 2019-20)
avg_caFloat64Closing Market average away win odds (closing odds, from 2019-20)
bfechStringClosing Betfair Exchange home win odds (closing odds, from 2019-20)
bfecdStringClosing Betfair Exchange draw odds (closing odds, from 2019-20)
bfecaStringClosing Betfair Exchange away win odds (closing odds, from 2019-20)
b365_chStringClosing Bet365 home win odds (closing odds, from 2019-20)
b365_cdStringClosing Bet365 draw odds (closing odds, from 2019-20)
b365_caStringClosing Bet365 away win odds (closing odds, from 2019-20)

return_parsed=False — the raw CSV response body (str).

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist. Football-data.co.uk answered 404 (no file for that season or division).
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help.
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty.

Example​

football_data_extra_league(country='BRA')

football_data_fixtures​

Upcoming fixtures with odds.

Endpoint URL: GET https://www.football-data.co.uk/fixtures.csv

Valid URL: https://www.football-data.co.uk/fixtures.csv

API ParameterPythonPatternRequiredNullableDescription

Returns​

return_parsed=True (default) — a tidy polars.DataFrame with the columns below; pass return_as_pandas=True for a pandas.DataFrame.

col_nametypedescription
divStringLeague Division
dateStringMatch Date (dd/mm/yy)
timeStringTime of match kick off (from 2019-20)
home_teamStringHome Team
away_teamStringAway Team
refereeStringMatch Referee (from 2000-01, results-only files before)
b365_hFloat64Bet365 home win odds (from 2002-03)
b365_dFloat64Bet365 draw odds (from 2002-03)
b365_aFloat64Bet365 away win odds (from 2002-03)
bfdhFloat64Betfred home win odds (from 2025-26)
bfddFloat64Betfred draw odds (from 2025-26)
bfdaFloat64Betfred away win odds (from 2025-26)
bvhFloat64Betvictor home win odds
bvdFloat64Betvictor draw odds
bvaFloat64Betvictor away win odds
bwhFloat64Bet&Win home win odds
bwdFloat64Bet&Win draw odds
bwaFloat64Bet&Win away win odds
pphFloat64Paddy Power home win odds
ppdFloat64Paddy Power draw odds
ppaFloat64Paddy Power away win odds
skbhFloat64
skbdFloat64
skbaFloat64
max_hFloat64Market maximum home win odds (from 2005-06, as Betbrain Bb* averages until 2018-19 and under the Max/Avg names from 2019-20)
max_dFloat64Market maximum draw win odds (from 2005-06, as Betbrain Bb* averages until 2018-19 and under the Max/Avg names from 2019-20)
max_aFloat64Market maximum away win odds (from 2005-06, as Betbrain Bb* averages until 2018-19 and under the Max/Avg names from 2019-20)
avg_hFloat64Market average home win odds (from 2005-06, as Betbrain Bb* averages until 2018-19 and under the Max/Avg names from 2019-20)
avg_dFloat64Market average draw win odds (from 2005-06, as Betbrain Bb* averages until 2018-19 and under the Max/Avg names from 2019-20)
avg_aFloat64Market average away win odds (from 2005-06, as Betbrain Bb* averages until 2018-19 and under the Max/Avg names from 2019-20)
bfehFloat64Betfair Exchange home win odds (from 2024-25)
bfedFloat64Betfair Exchange draw odds (from 2024-25)
bfeaFloat64Betfair Exchange away win odds (from 2024-25)
b365>2.5Float64Bet365 over 2.5 goals (from 2002-03)
b365<2.5Float64Bet365 under 2.5 goals (from 2002-03)
max>2.5Float64Market maximum over 2.5 goals (from 2005-06, as Betbrain Bb* averages until 2018-19 and under the Max/Avg names from 2019-20)
max<2.5Float64Market maximum under 2.5 goals (from 2005-06, as Betbrain Bb* averages until 2018-19 and under the Max/Avg names from 2019-20)
avg>2.5Float64Market average over 2.5 goals (from 2005-06, as Betbrain Bb* averages until 2018-19 and under the Max/Avg names from 2019-20)
avg<2.5Float64Market average under 2.5 goals (from 2005-06, as Betbrain Bb* averages until 2018-19 and under the Max/Avg names from 2019-20)
bfe>2.5Float64
bfe<2.5Float64
a_hhFloat64Market size of handicap (home team) (since 2019/2020)
b365_ahhFloat64Bet365 Asian handicap home team odds (from 2002-03)
b365_ahaFloat64Bet365 Asian handicap away team odds (from 2002-03)
max_ahhFloat64Market maximum Asian handicap home team odds (from 2005-06, as Betbrain Bb* averages until 2018-19 and under the Max/Avg names from 2019-20)
max_ahaFloat64Market maximum Asian handicap away team odds (from 2005-06, as Betbrain Bb* averages until 2018-19 and under the Max/Avg names from 2019-20)
avg_ahhFloat64Market average Asian handicap home team odds (from 2005-06, as Betbrain Bb* averages until 2018-19 and under the Max/Avg names from 2019-20)
avg_ahaFloat64Market average Asian handicap away team odds (from 2005-06, as Betbrain Bb* averages until 2018-19 and under the Max/Avg names from 2019-20)
bfeahhFloat64
bfeahaFloat64
b365_chStringClosing Bet365 home win odds (closing odds, from 2019-20)
b365_cdStringClosing Bet365 draw odds (closing odds, from 2019-20)
b365_caStringClosing Bet365 away win odds (closing odds, from 2019-20)
bfdchStringClosing Betfred home win odds (closing odds, from 2019-20)
bfdcdStringClosing Betfred draw odds (closing odds, from 2019-20)
bfdcaStringClosing Betfred away win odds (closing odds, from 2019-20)
bvchStringClosing Betvictor home win odds (closing odds, from 2019-20)
bvcdStringClosing Betvictor draw odds (closing odds, from 2019-20)
bvcaStringClosing Betvictor away win odds (closing odds, from 2019-20)
bwchStringClosing Bet&Win home win odds (closing odds, from 2019-20)
bwcdStringClosing Bet&Win draw odds (closing odds, from 2019-20)
bwcaStringClosing Bet&Win away win odds (closing odds, from 2019-20)
ppchStringClosing Paddy Power home win odds
ppcdStringClosing Paddy Power draw odds
ppcaStringClosing Paddy Power away win odds
skbchString
skbcdString
skbcaString
max_chStringClosing Market maximum home win odds (closing odds, from 2019-20)
max_cdStringClosing Market maximum draw win odds (closing odds, from 2019-20)
max_caStringClosing Market maximum away win odds (closing odds, from 2019-20)
avg_chStringClosing Market average home win odds (closing odds, from 2019-20)
avg_cdStringClosing Market average draw win odds (closing odds, from 2019-20)
avg_caStringClosing Market average away win odds (closing odds, from 2019-20)
bfechStringClosing Betfair Exchange home win odds (closing odds, from 2019-20)
bfecdStringClosing Betfair Exchange draw odds (closing odds, from 2019-20)
bfecaStringClosing Betfair Exchange away win odds (closing odds, from 2019-20)
b365_c>2.5StringClosing Bet365 over 2.5 goals (closing odds, from 2019-20)
b365_c<2.5StringClosing Bet365 under 2.5 goals (closing odds, from 2019-20)
max_c>2.5StringClosing Market maximum over 2.5 goals (closing odds, from 2019-20)
max_c<2.5StringClosing Market maximum under 2.5 goals (closing odds, from 2019-20)
avg_c>2.5StringClosing Market average over 2.5 goals (closing odds, from 2019-20)
avg_c<2.5StringClosing Market average under 2.5 goals (closing odds, from 2019-20)
bfec>2.5String
bfec<2.5String
ah_chStringClosing Market size of handicap (home team) (since 2019/2020)
b365_cahhStringClosing Bet365 Asian handicap home team odds (closing odds, from 2019-20)
b365_cahaStringClosing Bet365 Asian handicap away team odds (closing odds, from 2019-20)
max_cahhStringClosing Market maximum Asian handicap home team odds (closing odds, from 2019-20)
max_cahaStringClosing Market maximum Asian handicap away team odds (closing odds, from 2019-20)
avg_cahhStringClosing Market average Asian handicap home team odds (closing odds, from 2019-20)
avg_cahaStringClosing Market average Asian handicap away team odds (closing odds, from 2019-20)
bfecahhString
bfecahaString

return_parsed=False — the raw CSV response body (str).

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist. Football-data.co.uk answered 404 (no file for that season or division).
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help.
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty.

Example​

football_data_fixtures()

football_data_league_season​

One league-season of results + closing odds (main leagues).

Endpoint URL: GET https://www.football-data.co.uk/mmz4281/{season}/{div}.csv

Valid URL: https://www.football-data.co.uk/mmz4281/2526/E0.csv

API ParameterPythonPatternRequiredNullableDescription
seasonseasonYTwo-digit start and end years of the season, e.g. 2526 for 2025/26 (files go back to 9394).
divdivYDivision code, e.g. E0 (Premier League); E1-E3, EC, SC0-SC3, D1, D2, I1, I2, SP1, SP2, F1, F2, N1, B1, P1, T1, G1 per matches.php.

Returns​

return_parsed=True (default) — a tidy polars.DataFrame with the columns below; pass return_as_pandas=True for a pandas.DataFrame.

col_nametypedescription
divStringLeague Division
dateStringMatch Date (dd/mm/yy)
timeStringTime of match kick off (from 2019-20)
home_teamStringHome Team
away_teamStringAway Team
fthgInt64Full Time Home Team Goals
ftagInt64Full Time Away Team Goals
ftrStringFull Time Result (H=Home Win, D=Draw, A=Away Win)
hthgInt64Half Time Home Team Goals
htagInt64Half Time Away Team Goals
htrStringHalf Time Result (H=Home Win, D=Draw, A=Away Win)
refereeStringMatch Referee (from 2000-01, results-only files before)
hsInt64Home Team Shots (from 2000-01, results-only files before)
asInt64Away Team Shots (from 2000-01, results-only files before)
hstInt64Home Team Shots on Target (from 2000-01, results-only files before)
astInt64Away Team Shots on Target (from 2000-01, results-only files before)
hfInt64Home Team Fouls Committed (from 2000-01, results-only files before)
afInt64Away Team Fouls Committed (from 2000-01, results-only files before)
hcInt64Home Team Corners (from 2000-01, results-only files before)
acInt64Away Team Corners (from 2000-01, results-only files before)
hyInt64Home Team Yellow Cards (from 2000-01, results-only files before)
ayInt64Away Team Yellow Cards (from 2000-01, results-only files before)
hrInt64Home Team Red Cards (from 2000-01, results-only files before)
arInt64Away Team Red Cards (from 2000-01, results-only files before)
b365_hFloat64Bet365 home win odds (from 2002-03)
b365_dFloat64Bet365 draw odds (from 2002-03)
b365_aFloat64Bet365 away win odds (from 2002-03)
bfdhFloat64Betfred home win odds (from 2025-26)
bfddFloat64Betfred draw odds (from 2025-26)
bfdaFloat64Betfred away win odds (from 2025-26)
bmgmhFloat64BetMGM home win odds
bmgmdFloat64BetMGM draw odds
bmgmaFloat64BetMGM away win odds
bvhFloat64Betvictor home win odds
bvdFloat64Betvictor draw odds
bvaFloat64Betvictor away win odds
bwhFloat64Bet&Win home win odds
bwdFloat64Bet&Win draw odds
bwaFloat64Bet&Win away win odds
clhFloat64Coral home win odds
cldFloat64Coral draw odds
claFloat64Coral away win odds
lbhFloat64Ladbrokes home win odds
lbdFloat64Ladbrokes draw odds
lbaFloat64Ladbrokes away win odds
pshFloat64Pinnacle home win odds (from 2012-13)
psdFloat64Pinnacle draw odds (from 2012-13)
psaFloat64Pinnacle away win odds (from 2012-13)
max_hFloat64Market maximum home win odds (from 2005-06, as Betbrain Bb* averages until 2018-19 and under the Max/Avg names from 2019-20)
max_dFloat64Market maximum draw win odds (from 2005-06, as Betbrain Bb* averages until 2018-19 and under the Max/Avg names from 2019-20)
max_aFloat64Market maximum away win odds (from 2005-06, as Betbrain Bb* averages until 2018-19 and under the Max/Avg names from 2019-20)
avg_hFloat64Market average home win odds (from 2005-06, as Betbrain Bb* averages until 2018-19 and under the Max/Avg names from 2019-20)
avg_dFloat64Market average draw win odds (from 2005-06, as Betbrain Bb* averages until 2018-19 and under the Max/Avg names from 2019-20)
avg_aFloat64Market average away win odds (from 2005-06, as Betbrain Bb* averages until 2018-19 and under the Max/Avg names from 2019-20)
bfehFloat64Betfair Exchange home win odds (from 2024-25)
bfedFloat64Betfair Exchange draw odds (from 2024-25)
bfeaFloat64Betfair Exchange away win odds (from 2024-25)
b365>2.5Float64Bet365 over 2.5 goals (from 2002-03)
b365<2.5Float64Bet365 under 2.5 goals (from 2002-03)
p>2.5Float64Pinnacle over 2.5 goals (from 2012-13)
p<2.5Float64Pinnacle under 2.5 goals (from 2012-13)
max>2.5Float64Market maximum over 2.5 goals (from 2005-06, as Betbrain Bb* averages until 2018-19 and under the Max/Avg names from 2019-20)
max<2.5Float64Market maximum under 2.5 goals (from 2005-06, as Betbrain Bb* averages until 2018-19 and under the Max/Avg names from 2019-20)
avg>2.5Float64Market average over 2.5 goals (from 2005-06, as Betbrain Bb* averages until 2018-19 and under the Max/Avg names from 2019-20)
avg<2.5Float64Market average under 2.5 goals (from 2005-06, as Betbrain Bb* averages until 2018-19 and under the Max/Avg names from 2019-20)
bfe>2.5Float64
bfe<2.5Float64
a_hhFloat64Market size of handicap (home team) (since 2019/2020)
b365_ahhFloat64Bet365 Asian handicap home team odds (from 2002-03)
b365_ahaFloat64Bet365 Asian handicap away team odds (from 2002-03)
pahhFloat64Pinnacle Asian handicap home team odds (from 2012-13)
pahaFloat64Pinnacle Asian handicap away team odds (from 2012-13)
max_ahhFloat64Market maximum Asian handicap home team odds (from 2005-06, as Betbrain Bb* averages until 2018-19 and under the Max/Avg names from 2019-20)
max_ahaFloat64Market maximum Asian handicap away team odds (from 2005-06, as Betbrain Bb* averages until 2018-19 and under the Max/Avg names from 2019-20)
avg_ahhFloat64Market average Asian handicap home team odds (from 2005-06, as Betbrain Bb* averages until 2018-19 and under the Max/Avg names from 2019-20)
avg_ahaFloat64Market average Asian handicap away team odds (from 2005-06, as Betbrain Bb* averages until 2018-19 and under the Max/Avg names from 2019-20)
bfeahhFloat64
bfeahaFloat64
b365_chFloat64Closing Bet365 home win odds (closing odds, from 2019-20)
b365_cdFloat64Closing Bet365 draw odds (closing odds, from 2019-20)
b365_caFloat64Closing Bet365 away win odds (closing odds, from 2019-20)
bfdchFloat64Closing Betfred home win odds (closing odds, from 2019-20)
bfdcdFloat64Closing Betfred draw odds (closing odds, from 2019-20)
bfdcaFloat64Closing Betfred away win odds (closing odds, from 2019-20)
bmgmchFloat64Closing BetMGM home win odds (closing odds, from 2019-20)
bmgmcdFloat64Closing BetMGM draw odds (closing odds, from 2019-20)
bmgmcaFloat64Closing BetMGM away win odds (closing odds, from 2019-20)
bvchFloat64Closing Betvictor home win odds (closing odds, from 2019-20)
bvcdFloat64Closing Betvictor draw odds (closing odds, from 2019-20)
bvcaFloat64Closing Betvictor away win odds (closing odds, from 2019-20)
bwchFloat64Closing Bet&Win home win odds (closing odds, from 2019-20)
bwcdFloat64Closing Bet&Win draw odds (closing odds, from 2019-20)
bwcaFloat64Closing Bet&Win away win odds (closing odds, from 2019-20)
clchFloat64Closing Coral home win odds (closing odds, from 2019-20)
clcdFloat64Closing Coral draw odds (closing odds, from 2019-20)
clcaFloat64Closing Coral away win odds (closing odds, from 2019-20)
lbchFloat64Closing Ladbrokes home win odds (closing odds, from 2019-20)
lbcdFloat64Closing Ladbrokes draw odds (closing odds, from 2019-20)
lbcaFloat64Closing Ladbrokes away win odds (closing odds, from 2019-20)
pschFloat64Closing Pinnacle home win odds (closing odds, from 2012-13)
pscdFloat64Closing Pinnacle draw odds (closing odds, from 2012-13)
pscaFloat64Closing Pinnacle away win odds (closing odds, from 2012-13)
max_chFloat64Closing Market maximum home win odds (closing odds, from 2019-20)
max_cdFloat64Closing Market maximum draw win odds (closing odds, from 2019-20)
max_caFloat64Closing Market maximum away win odds (closing odds, from 2019-20)
avg_chFloat64Closing Market average home win odds (closing odds, from 2019-20)
avg_cdFloat64Closing Market average draw win odds (closing odds, from 2019-20)
avg_caFloat64Closing Market average away win odds (closing odds, from 2019-20)
bfechFloat64Closing Betfair Exchange home win odds (closing odds, from 2019-20)
bfecdFloat64Closing Betfair Exchange draw odds (closing odds, from 2019-20)
bfecaFloat64Closing Betfair Exchange away win odds (closing odds, from 2019-20)
b365_c>2.5Float64Closing Bet365 over 2.5 goals (closing odds, from 2019-20)
b365_c<2.5Float64Closing Bet365 under 2.5 goals (closing odds, from 2019-20)
pc>2.5Float64Closing Pinnacle over 2.5 goals (closing odds, from 2019-20)
pc<2.5Float64Closing Pinnacle under 2.5 goals (closing odds, from 2019-20)
max_c>2.5Float64Closing Market maximum over 2.5 goals (closing odds, from 2019-20)
max_c<2.5Float64Closing Market maximum under 2.5 goals (closing odds, from 2019-20)
avg_c>2.5Float64Closing Market average over 2.5 goals (closing odds, from 2019-20)
avg_c<2.5Float64Closing Market average under 2.5 goals (closing odds, from 2019-20)
bfec>2.5Float64
bfec<2.5Float64
ah_chFloat64Closing Market size of handicap (home team) (since 2019/2020)
b365_cahhFloat64Closing Bet365 Asian handicap home team odds (closing odds, from 2019-20)
b365_cahaFloat64Closing Bet365 Asian handicap away team odds (closing odds, from 2019-20)
pcahhFloat64Closing Pinnacle Asian handicap home team odds (closing odds, from 2019-20)
pcahaFloat64Closing Pinnacle Asian handicap away team odds (closing odds, from 2019-20)
max_cahhFloat64Closing Market maximum Asian handicap home team odds (closing odds, from 2019-20)
max_cahaFloat64Closing Market maximum Asian handicap away team odds (closing odds, from 2019-20)
avg_cahhFloat64Closing Market average Asian handicap home team odds (closing odds, from 2019-20)
avg_cahaFloat64Closing Market average Asian handicap away team odds (closing odds, from 2019-20)
bfecahhFloat64
bfecahaFloat64

return_parsed=False — the raw CSV response body (str).

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist. Football-data.co.uk answered 404 (no file for that season or division).
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help.
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty.

Example​

football_data_league_season(div='E0', season='2526')