xGTables home

Understat data downloads

Understat’s expected goals data as plain CSV files, one set per league season: 45 seasons, 16,111 matches and 405,363 shots with coordinates. No scraper, account or API key needed.

Historical xG and shot locations from Understat. xGTables is an independent site and is not run by or affiliated with Understat. Different model from the current season — not directly comparable. If you publish work built on these files, credit Understat as the source of the figures.

Scripts can read the whole list from /history/index.json. File addresses follow /history/<league>/<start year>/<file>, with leagues epl, la-liga, serie-a, bundesliga and ligue-1.

xGTables is built by Neil Mac of Sharp Side Soccer, the soccer betting consultancy he runs with Will White.

Premier League

SeasonMatchesShotsFixturesStandingsPlayersShotsAppearancesDetails
2025/263809,524CSVCSVCSVCSVCSVZIP
2024/253809,878CSVCSVCSVCSVCSVZIP
2023/2438010,524CSVCSVCSVCSVCSVZIP
2022/233809,644CSVCSVCSVCSVCSVZIP
2021/223809,775CSVCSVCSVCSVCSVZIP
2020/213809,235CSVCSVCSVCSVCSVZIP
2019/203809,427CSVCSVCSVCSVCSVZIP
2018/193809,661CSVCSVCSVCSVCSVZIP
2017/183809,287CSVCSVCSVCSVCSVZIP

La Liga

SeasonMatchesShotsFixturesStandingsPlayersShotsAppearancesDetails
2025/263809,500CSVCSVCSVCSVCSVZIP
2024/253809,056CSVCSVCSVCSVCSVZIP
2023/243809,311CSVCSVCSVCSVCSVZIP
2022/233809,374CSVCSVCSVCSVCSVZIP
2021/223808,977CSVCSVCSVCSVCSVZIP
2020/213808,132CSVCSVCSVCSVCSVZIP
2019/203808,604CSVCSVCSVCSVCSVZIP
2018/193809,273CSVCSVCSVCSVCSVZIP
2017/183809,174CSVCSVCSVCSVCSVZIP

Serie A

SeasonMatchesShotsFixturesStandingsPlayersShotsAppearancesDetails
2025/263809,373CSVCSVCSVCSVCSVZIP
2024/253809,242CSVCSVCSVCSVCSVZIP
2023/243809,728CSVCSVCSVCSVCSVZIP
2022/233809,675CSVCSVCSVCSVCSVZIP
2021/223809,932CSVCSVCSVCSVCSVZIP
2020/213809,517CSVCSVCSVCSVCSVZIP
2019/2038010,898CSVCSVCSVCSVCSVZIP
2018/1938010,587CSVCSVCSVCSVCSVZIP
2017/183809,794CSVCSVCSVCSVCSVZIP

Bundesliga

SeasonMatchesShotsFixturesStandingsPlayersShotsAppearancesDetails
2025/263068,124CSVCSVCSVCSVCSVZIP
2024/253067,944CSVCSVCSVCSVCSVZIP
2023/243068,506CSVCSVCSVCSVCSVZIP
2022/233067,815CSVCSVCSVCSVCSVZIP
2021/223067,949CSVCSVCSVCSVCSVZIP
2020/213067,590CSVCSVCSVCSVCSVZIP
2019/203068,148CSVCSVCSVCSVCSVZIP
2018/193068,264CSVCSVCSVCSVCSVZIP
2017/183067,737CSVCSVCSVCSVCSVZIP

Ligue 1

SeasonMatchesShotsFixturesStandingsPlayersShotsAppearancesDetails
2025/263067,617CSVCSVCSVCSVCSVZIP
2024/253067,647CSVCSVCSVCSVCSVZIP
2023/243067,827CSVCSVCSVCSVCSVZIP
2022/233809,345CSVCSVCSVCSVCSVZIP
2021/223809,132CSVCSVCSVCSVCSVZIP
2020/213808,921CSVCSVCSVCSVCSVZIP
2019/202796,812CSVCSVCSVCSVCSVZIP
2018/193809,416CSVCSVCSVCSVCSVZIP
2017/183809,467CSVCSVCSVCSVCSVZIP

What is in each file

fixtures.csv, one row per match

fixture_id, understat_id
Match identifiers. understat_id is Understat’s own match number.
date, home, away, score
Match date, clubs and full-time score.
home_xg, away_xg
Team xG summed from the shots.
home_published_xg, away_published_xg
Team xG as Understat published it for the match.
home_win_probability, draw_probability, away_win_probability
Understat’s result probabilities, used for expected points.
totals_unreliable, xg_note, result_note
Flags and notes for the few matches with known problems.

shots.csv, one row per shot

shot_id, fixture_id, understat_id
Shot and match identifiers.
side, minute, player_id, player
h or a, the minute, and who took the shot.
result
Goal, SavedShot, MissedShots, BlockedShot, ShotOnPost or OwnGoal.
x, y
Location from 0 to 1. x runs towards the goal being attacked; y runs across the pitch.
understat_xg
Understat’s xG for the shot.
situation, shot_type, assisted_by, last_action
Open play or set piece, body part, the assisting player and the preceding action.

standings.csv, one row per club

played, won, drawn, lost, gf, ga, points
The league record.
xg, xga, xpts
Expected goals for and against, and expected points.
npxg, npxga
The same without penalties.
deep, deep_allowed
Passes completed within about 20 yards of goal, for and against.
ppda, ppda_allowed
Passes allowed per defensive action, a pressing measure.

players.csv, one row per player

player_id, player, club, position
Who, and where they played.
appearances, minutes, goals, assists, shots, key_passes
Season totals.
xg, xa, npxg, non_penalty_goals
Expected goals and assists, and the non-penalty versions.
xg_chain, xg_buildup
xG of possessions the player was involved in, with and without shots and key passes.

appearances.csv, one row per player per match

fixture_id, player_id, team_id, side
Which match and which side.
position, minutes, goals, own_goals, shots, key_passes, assists
The player’s match line.
xg, xa, xg_chain, xg_buildup
Expected figures for that match.
roster_in, roster_out
Substitution links: who the player replaced or was replaced by.

Known gaps

2026/27 data

Current-season downloads are on the data page and come from Sportmonks.