Football Charts

Python package · pandas · 0.2.0 on PyPI · MIT · no key needed to start

Python package for football results, xG and odds data: pip install footballcharts

footballcharts returns football (soccer) data as pandas DataFrames: results with half-time scores and goal minutes, league tables, goal timing, season projections and upcoming fixtures with model probabilities, for 98 leagues in 44 countries, lower divisions and five women's leagues included. On a paid plan it adds xG and per-match statistics, and the same API's CSV carries closing odds.

Install
pip install footballcharts
Try it without a key ↓footballcharts on PyPIThe REST API it reads →

1 · Your first DataFrame, without a key

Python: no key needed
from footballcharts import FootballCharts

fc = FootballCharts(leagues="ENG-Premier League", seasons=2025)  # the 2025-2026 season
schedule = fc.read_schedule()    # one row per match: score, half-time score, first-goal minute
table = fc.read_league_table()

upcoming = FootballCharts(leagues=["premier", "germany3", "wengland1"]).read_fixtures()
upcoming[["home_team", "away_team", "p_home", "p_draw", "p_away", "p_over_2_5"]]

Without a key you get 25 requests a day per IP address, for the current and the previous season. Each league and season you read is one request, and answers are cached for the life of the FootballCharts object. Leagues take a Football Charts key such as premier or germany3, a soccerdata-style id such as ENG-Championship, or a unique name; read_leagues() lists all 98.

2 · The 11 readers and what each returns

The readers of the footballcharts Python package and what each returns
ReaderRowsNeeds
read_leagues()Every league: key, name, country, the seasons held and its pageNo key
read_seasons()The seasons held for the chosen leaguesNo key
read_schedule(include_odds=False)Finished matches: date, kick-off (UTC), teams, score, half-time score, first-goal minute; home_xg, away_xg and optional closing odds on a paid planNo key
read_closing_odds()Market-average closing odds per finished match: 1X2, over/under 2.5 and 3.5, BTTS, half-time 1X2 and O/U 0.5/1.5, plus odds_timingA paid plan
read_football_data(include_fc_extras=True)Drop-in football-data.co.uk column schema (Div, Date, HomeTeam, AwayTeam, FTHG/FTAG/FTR, HS..AR, AvgH/D/A, Avg>2.5/<2.5, plus optional HomeXG/AwayXG)No key
read_team_match_stats()One row per team and match: goals for and against, xG and xG against, shots, shots on target, possession, passes, corners, offsides, fouls, cards, savesA paid plan
read_fixtures()The next few days with the model’s probabilities: home win, draw, away win, over/under goals, both teams to score, expected goalsNo key
read_league_table(view="classic")Standings; view="luck" adds expected points and position, view="goals" goal recordsNo key
read_goal_timing()When each team scores and concedes, in 15-minute periodsNo key
read_projection()The simulated final table: mean points, a points range, the chance of the title, a top-four place and relegationNo key
read_live()Matches in play: minute, score, half-time score and the pre-match probabilities, updated every 10 secondsA paid plan

In read_fixtures() the plain columns (p_home, p_draw, p_away, …) are the published model, the same numbers as the API's fixtures CSV, and model names it; dc_base_* columns hold the plain Dixon-Coles baseline. Every DataFrame carries df.attrs["attribution"] and df.attrs["source_url"].

3 · xG and match statistics

On a paid plan, 145,347 matches in 81 leagues carry team statistics, and 52,291 carry xG (64 leagues, from 2022 on), counted on 29 Nov 2026. The match statistics page lists them league by league.

Python: one row per team and match (paid plan)
from footballcharts import FootballCharts

fc = FootballCharts(leagues="cha", seasons="2025-2026", api_key="fc_your_key")  # a paid key
stats = fc.read_team_match_stats()    # one row per team and match
stats[["opponent", "venue", "goals_for", "goals_against", "xg", "xg_against", "shots", "corners"]]

4 · Closing odds with pandas

On a paid plan, read_closing_odds() and read_schedule(include_odds=True) return the market-average closing odds of each finished match: 17 columns covering 1X2, over/under 2.5 and 3.5, both teams to score and the half-time lines, for 243,864 matches:

Python: closing odds directly from footballcharts (paid plan)
from footballcharts import FootballCharts

fc = FootballCharts(leagues="E0", seasons="2425", api_key="fc_your_key")  # a paid key
odds = fc.read_closing_odds()
odds[["date", "home_team", "away_team",
      "odds_ft_1x2_home", "odds_ft_1x2_draw", "odds_ft_1x2_away",
      "odds_ft_ou_2_5_over"]].head()

The same prices are available on the CSV endpoint and in read_football_data(). Coverage market by market and the per-bookmaker archive: historical closing odds.

5 · Keys and limits

Daily limits and seasons of the footballcharts package by access level
AccessRequests a daySeasonsxG, statistics, odds, live scores
No key25 per IP addressThe current and the previous seasonNo
Free key200 per email address (100 until you confirm it)The current and the previous seasonNo
Personal plan5,000 per email addressEvery season back to 2015 (excl. 2019–20)Yes
Commercial plan25,000 per email addressEvery season back to 2015 (excl. 2019–20)Yes, for apps, sites, bots and channels
A free key from Python
from footballcharts import register_key
register_key("you@example.com", use="model")   # the key is in the answer and in your inbox

# then, once for every script:
# export FOOTBALLCHARTS_API_KEY=fc_...

The package reads the key from FOOTBALLCHARTS_API_KEY (or FC_API_KEY) or from api_key=. The same key works for the REST API and the MCP server, and their calls count together.

6 · Coming from soccerdata, FBref or football-data.co.uk

The readers follow soccerdata's conventions: matches indexed by league, season and game, with game as “YYYY-MM-DD Home-Away”; league ids like ENG-Premier League; and home_score, away_score, home_xg and away_xg. For existing football-data.co.uk pipelines, read_football_data("E0", "2425") accepts all 36 division codes and returns the exact Div/Date/HomeTeam/AwayTeam/FTHG/AvgH columns in one line:

Python: 1-line migration from soccerdata or football-data.co.uk
# from soccerdata / FBref
from footballcharts import FootballCharts
schedule = FootballCharts(leagues="ENG-Premier League", seasons="2025-2026").read_schedule()

# from football-data.co.uk (all 36 division codes E0, D1, SP1, BRA, ... + 62 extra leagues)
import footballcharts as fc
df = fc.read_football_data("E0", "2425")

What Football Charts holds that FBref shows, and what it does not: the FBref alternative page.

7 · What it does not do

8 · Optional: a free key for 200 requests a day

The same key as register_key() gives; no card is asked for.

9 · Questions people ask about this

Is there a Python package for football results, xG and odds data?
Yes: pip install footballcharts. It returns results with half-time scores and goal minutes, league tables, goal timing, season projections and upcoming fixtures with model probabilities as pandas DataFrames, for 98 leagues in 44 countries. A paid plan adds xG and per-match statistics, and the same API's results CSV adds market-average closing odds, which pandas reads directly.
Do I need an API key?
No. Without a key it reads 25 requests a day per IP address, for the current and the previous season. A free key, made from Python with register_key(), gives 200 a day. A paid plan gives every season back to 2015 (2019–20 excluded), xG, match statistics, closing odds and live scores.
How is it different from soccerdata?
soccerdata collects data from several public websites, FBref and Understat among them. footballcharts reads one documented API instead of web pages. Its readers keep soccerdata’s index and column names, so most code moves over by changing the reader.
Does it run in Jupyter and Google Colab?
Yes. It needs Python 3.9 or later with requests and pandas, so it runs in Jupyter, Colab and plain scripts alike. The client code is MIT-licensed.

Plans & one-off options — same API key, zero formula or code changes

Start with a free key in 10 seconds. Upgrading flips one flag on your existing key so historical ?season= calls, per-match xG/stat columns and closing-odds columns unlock immediately.

Free Key

€0no card

200 requests/day

  • • All 98 leagues (men's, lower tiers & women's)
  • • Current + previous season
  • • CSV, Google Sheets, REST JSON & MCP
  • • FT/HT scores, first-goal minute, tables & probabilities

All-Seasons Pass (2020–2027)

No subscription

€49one-off · active through July 2027

or €19 / month cancel any time

5,000 requests/day

  • • All 7 seasons (2020–2027) across all 98 leagues (full history + live 2026/27 updates)
  • • 34 per-match stat columns: xG and shot data for 66 leagues (recent seasons), plus box shots, passes & cards
  • • Single payment, zero auto-renewal
  • • Personal & academic/modelling use

Historical Odds Archive

€291 league · €199 all 98

Bulk CSV + Parquet download

  • • 2020-21 to 2025-26 opening & closing bookmaker odds
  • • 1X2, Asian handicap & Over/Under ladders, BTTS, CS
  • • 26 of 29 bookmakers named (99.7% of rows; no Pinnacle)
  • • Free Germany 2 & Estonia sample zips included

Building an app, site, bot or paid channel that other people use? See the Commercial API plan (€39/month, 25,000 requests/day).