Skip to main content
Version: 0.1.5

SOCCER — 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
countrycharacter
leaguecharacter
seasoninteger
datecharacterMatch Date (dd/mm/yy)
timecharacterTime of match kick off
homecharacter
awaycharacter
hgintegerFull Time Home Team Goals
agintegerFull Time Away Team Goals
rescharacterFull Time Result (H=Home Win, D=Draw, A=Away Win)
pschnumericClosing Pinnacle home win odds
pscdnumericClosing Pinnacle draw odds
pscanumericClosing Pinnacle away win odds
max_chnumericClosing Market maximum home win odds
max_cdnumericClosing Market maximum draw win odds
max_canumericClosing Market maximum away win odds
avg_chnumericClosing Market average home win odds
avg_cdnumericClosing Market average draw win odds
avg_canumericClosing Market average away win odds
bfechcharacterClosing Betfair Exchange home win odds
bfecdcharacterClosing Betfair Exchange draw odds
bfecacharacterClosing Betfair Exchange away win odds
b365_chcharacterClosing Bet365 home win odds
b365_cdcharacterClosing Bet365 draw odds
b365_cacharacterClosing Bet365 away win odds

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

Example​

football_data_extra_league(country='BRA')

Last validated n/a.

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
divcharacterLeague Division
datecharacterMatch Date (dd/mm/yy)
timecharacterTime of match kick off
home_teamcharacterHome Team
away_teamcharacterAway Team
refereecharacterMatch Referee
b365_hnumericBet365 home win odds
b365_dnumericBet365 draw odds
b365_anumericBet365 away win odds
bfdhnumericBetfred home win odds
bfddnumericBetfred draw odds
bfdanumericBetfred away win odds
bvhnumericBetvictor home win odds
bvdnumericBetvictor draw odds
bvanumericBetvictor away win odds
bwhnumericBet&Win home win odds
bwdnumericBet&Win draw odds
bwanumericBet&Win away win odds
pphnumericPaddy Power home win odds
ppdnumericPaddy Power draw odds
ppanumericPaddy Power away win odds
skbhnumeric
skbdnumeric
skbanumeric
max_hnumericMarket maximum home win odds
max_dnumericMarket maximum draw win odds
max_anumericMarket maximum away win odds
avg_hnumericMarket average home win odds
avg_dnumericMarket average draw win odds
avg_anumericMarket average away win odds
bfehnumericBetfair Exchange home win odds
bfednumericBetfair Exchange draw odds
bfeanumericBetfair Exchange away win odds
b365>2.5numericBet365 over 2.5 goals
b365<2.5numericBet365 under 2.5 goals
max>2.5numericMarket maximum over 2.5 goals
max<2.5numericMarket maximum under 2.5 goals
avg>2.5numericMarket average over 2.5 goals
avg<2.5numericMarket average under 2.5 goals
bfe>2.5numeric
bfe<2.5numeric
a_hhnumericMarket size of handicap (home team) (since 2019/2020)
b365_ahhnumericBet365 Asian handicap home team odds
b365_ahanumericBet365 Asian handicap away team odds
max_ahhnumericMarket maximum Asian handicap home team odds
max_ahanumericMarket maximum Asian handicap away team odds
avg_ahhnumericMarket average Asian handicap home team odds
avg_ahanumericMarket average Asian handicap away team odds
bfeahhnumeric
bfeahanumeric
b365_chcharacterClosing Bet365 home win odds
b365_cdcharacterClosing Bet365 draw odds
b365_cacharacterClosing Bet365 away win odds
bfdchcharacterClosing Betfred home win odds
bfdcdcharacterClosing Betfred draw odds
bfdcacharacterClosing Betfred away win odds
bvchcharacterClosing Betvictor home win odds
bvcdcharacterClosing Betvictor draw odds
bvcacharacterClosing Betvictor away win odds
bwchcharacterClosing Bet&Win home win odds
bwcdcharacterClosing Bet&Win draw odds
bwcacharacterClosing Bet&Win away win odds
ppchcharacterClosing Paddy Power home win odds
ppcdcharacterClosing Paddy Power draw odds
ppcacharacterClosing Paddy Power away win odds
skbchcharacter
skbcdcharacter
skbcacharacter
max_chcharacterClosing Market maximum home win odds
max_cdcharacterClosing Market maximum draw win odds
max_cacharacterClosing Market maximum away win odds
avg_chcharacterClosing Market average home win odds
avg_cdcharacterClosing Market average draw win odds
avg_cacharacterClosing Market average away win odds
bfechcharacterClosing Betfair Exchange home win odds
bfecdcharacterClosing Betfair Exchange draw odds
bfecacharacterClosing Betfair Exchange away win odds
b365_c>2.5characterClosing Bet365 over 2.5 goals
b365_c<2.5characterClosing Bet365 under 2.5 goals
max_c>2.5characterClosing Market maximum over 2.5 goals
max_c<2.5characterClosing Market maximum under 2.5 goals
avg_c>2.5characterClosing Market average over 2.5 goals
avg_c<2.5characterClosing Market average under 2.5 goals
bfec>2.5character
bfec<2.5character
ah_chcharacterClosing Market size of handicap (home team) (since 2019/2020)
b365_cahhcharacterClosing Bet365 Asian handicap home team odds
b365_cahacharacterClosing Bet365 Asian handicap away team odds
max_cahhcharacterClosing Market maximum Asian handicap home team odds
max_cahacharacterClosing Market maximum Asian handicap away team odds
avg_cahhcharacterClosing Market average Asian handicap home team odds
avg_cahacharacterClosing Market average Asian handicap away team odds
bfecahhcharacter
bfecahacharacter

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

Example​

football_data_fixtures()

Last validated n/a.

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
divcharacterLeague Division
datecharacterMatch Date (dd/mm/yy)
timecharacterTime of match kick off
home_teamcharacterHome Team
away_teamcharacterAway Team
fthgintegerFull Time Home Team Goals
ftagintegerFull Time Away Team Goals
ftrcharacterFull Time Result (H=Home Win, D=Draw, A=Away Win)
hthgintegerHalf Time Home Team Goals
htagintegerHalf Time Away Team Goals
htrcharacterHalf Time Result (H=Home Win, D=Draw, A=Away Win)
refereecharacterMatch Referee
hsintegerHome Team Shots
asintegerAway Team Shots
hstintegerHome Team Shots on Target
astintegerAway Team Shots on Target
hfintegerHome Team Fouls Committed
afintegerAway Team Fouls Committed
hcintegerHome Team Corners
acintegerAway Team Corners
hyintegerHome Team Yellow Cards
ayintegerAway Team Yellow Cards
hrintegerHome Team Red Cards
arintegerAway Team Red Cards
b365_hnumericBet365 home win odds
b365_dnumericBet365 draw odds
b365_anumericBet365 away win odds
bfdhnumericBetfred home win odds
bfddnumericBetfred draw odds
bfdanumericBetfred away win odds
bmgmhnumericBetMGM home win odds
bmgmdnumericBetMGM draw odds
bmgmanumericBetMGM away win odds
bvhnumericBetvictor home win odds
bvdnumericBetvictor draw odds
bvanumericBetvictor away win odds
bwhnumericBet&Win home win odds
bwdnumericBet&Win draw odds
bwanumericBet&Win away win odds
clhnumericCoral home win odds
cldnumericCoral draw odds
clanumericCoral away win odds
lbhnumericLadbrokes home win odds
lbdnumericLadbrokes draw odds
lbanumericLadbrokes away win odds
pshnumericPinnacle home win odds
psdnumericPinnacle draw odds
psanumericPinnacle away win odds
max_hnumericMarket maximum home win odds
max_dnumericMarket maximum draw win odds
max_anumericMarket maximum away win odds
avg_hnumericMarket average home win odds
avg_dnumericMarket average draw win odds
avg_anumericMarket average away win odds
bfehnumericBetfair Exchange home win odds
bfednumericBetfair Exchange draw odds
bfeanumericBetfair Exchange away win odds
b365>2.5numericBet365 over 2.5 goals
b365<2.5numericBet365 under 2.5 goals
p>2.5numericPinnacle over 2.5 goals
p<2.5numericPinnacle under 2.5 goals
max>2.5numericMarket maximum over 2.5 goals
max<2.5numericMarket maximum under 2.5 goals
avg>2.5numericMarket average over 2.5 goals
avg<2.5numericMarket average under 2.5 goals
bfe>2.5numeric
bfe<2.5numeric
a_hhnumericMarket size of handicap (home team) (since 2019/2020)
b365_ahhnumericBet365 Asian handicap home team odds
b365_ahanumericBet365 Asian handicap away team odds
pahhnumericPinnacle Asian handicap home team odds
pahanumericPinnacle Asian handicap away team odds
max_ahhnumericMarket maximum Asian handicap home team odds
max_ahanumericMarket maximum Asian handicap away team odds
avg_ahhnumericMarket average Asian handicap home team odds
avg_ahanumericMarket average Asian handicap away team odds
bfeahhnumeric
bfeahanumeric
b365_chnumericClosing Bet365 home win odds
b365_cdnumericClosing Bet365 draw odds
b365_canumericClosing Bet365 away win odds
bfdchnumericClosing Betfred home win odds
bfdcdnumericClosing Betfred draw odds
bfdcanumericClosing Betfred away win odds
bmgmchnumericClosing BetMGM home win odds
bmgmcdnumericClosing BetMGM draw odds
bmgmcanumericClosing BetMGM away win odds
bvchnumericClosing Betvictor home win odds
bvcdnumericClosing Betvictor draw odds
bvcanumericClosing Betvictor away win odds
bwchnumericClosing Bet&Win home win odds
bwcdnumericClosing Bet&Win draw odds
bwcanumericClosing Bet&Win away win odds
clchnumericClosing Coral home win odds
clcdnumericClosing Coral draw odds
clcanumericClosing Coral away win odds
lbchnumericClosing Ladbrokes home win odds
lbcdnumericClosing Ladbrokes draw odds
lbcanumericClosing Ladbrokes away win odds
pschnumericClosing Pinnacle home win odds
pscdnumericClosing Pinnacle draw odds
pscanumericClosing Pinnacle away win odds
max_chnumericClosing Market maximum home win odds
max_cdnumericClosing Market maximum draw win odds
max_canumericClosing Market maximum away win odds
avg_chnumericClosing Market average home win odds
avg_cdnumericClosing Market average draw win odds
avg_canumericClosing Market average away win odds
bfechnumericClosing Betfair Exchange home win odds
bfecdnumericClosing Betfair Exchange draw odds
bfecanumericClosing Betfair Exchange away win odds
b365_c>2.5numericClosing Bet365 over 2.5 goals
b365_c<2.5numericClosing Bet365 under 2.5 goals
pc>2.5numericClosing Pinnacle over 2.5 goals
pc<2.5numericClosing Pinnacle under 2.5 goals
max_c>2.5numericClosing Market maximum over 2.5 goals
max_c<2.5numericClosing Market maximum under 2.5 goals
avg_c>2.5numericClosing Market average over 2.5 goals
avg_c<2.5numericClosing Market average under 2.5 goals
bfec>2.5numeric
bfec<2.5numeric
ah_chnumericClosing Market size of handicap (home team) (since 2019/2020)
b365_cahhnumericClosing Bet365 Asian handicap home team odds
b365_cahanumericClosing Bet365 Asian handicap away team odds
pcahhnumericClosing Pinnacle Asian handicap home team odds
pcahanumericClosing Pinnacle Asian handicap away team odds
max_cahhnumericClosing Market maximum Asian handicap home team odds
max_cahanumericClosing Market maximum Asian handicap away team odds
avg_cahhnumericClosing Market average Asian handicap home team odds
avg_cahanumericClosing Market average Asian handicap away team odds
bfecahhnumeric
bfecahanumeric

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

Example​

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

Last validated n/a.