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
| Season | Matches | Shots | Fixtures | Standings | Players | Shots | Appearances | Details |
|---|---|---|---|---|---|---|---|---|
| 2025/26 | 380 | 9,524 | CSV | CSV | CSV | CSV | CSV | ZIP |
| 2024/25 | 380 | 9,878 | CSV | CSV | CSV | CSV | CSV | ZIP |
| 2023/24 | 380 | 10,524 | CSV | CSV | CSV | CSV | CSV | ZIP |
| 2022/23 | 380 | 9,644 | CSV | CSV | CSV | CSV | CSV | ZIP |
| 2021/22 | 380 | 9,775 | CSV | CSV | CSV | CSV | CSV | ZIP |
| 2020/21 | 380 | 9,235 | CSV | CSV | CSV | CSV | CSV | ZIP |
| 2019/20 | 380 | 9,427 | CSV | CSV | CSV | CSV | CSV | ZIP |
| 2018/19 | 380 | 9,661 | CSV | CSV | CSV | CSV | CSV | ZIP |
| 2017/18 | 380 | 9,287 | CSV | CSV | CSV | CSV | CSV | ZIP |
La Liga
| Season | Matches | Shots | Fixtures | Standings | Players | Shots | Appearances | Details |
|---|---|---|---|---|---|---|---|---|
| 2025/26 | 380 | 9,500 | CSV | CSV | CSV | CSV | CSV | ZIP |
| 2024/25 | 380 | 9,056 | CSV | CSV | CSV | CSV | CSV | ZIP |
| 2023/24 | 380 | 9,311 | CSV | CSV | CSV | CSV | CSV | ZIP |
| 2022/23 | 380 | 9,374 | CSV | CSV | CSV | CSV | CSV | ZIP |
| 2021/22 | 380 | 8,977 | CSV | CSV | CSV | CSV | CSV | ZIP |
| 2020/21 | 380 | 8,132 | CSV | CSV | CSV | CSV | CSV | ZIP |
| 2019/20 | 380 | 8,604 | CSV | CSV | CSV | CSV | CSV | ZIP |
| 2018/19 | 380 | 9,273 | CSV | CSV | CSV | CSV | CSV | ZIP |
| 2017/18 | 380 | 9,174 | CSV | CSV | CSV | CSV | CSV | ZIP |
Serie A
| Season | Matches | Shots | Fixtures | Standings | Players | Shots | Appearances | Details |
|---|---|---|---|---|---|---|---|---|
| 2025/26 | 380 | 9,373 | CSV | CSV | CSV | CSV | CSV | ZIP |
| 2024/25 | 380 | 9,242 | CSV | CSV | CSV | CSV | CSV | ZIP |
| 2023/24 | 380 | 9,728 | CSV | CSV | CSV | CSV | CSV | ZIP |
| 2022/23 | 380 | 9,675 | CSV | CSV | CSV | CSV | CSV | ZIP |
| 2021/22 | 380 | 9,932 | CSV | CSV | CSV | CSV | CSV | ZIP |
| 2020/21 | 380 | 9,517 | CSV | CSV | CSV | CSV | CSV | ZIP |
| 2019/20 | 380 | 10,898 | CSV | CSV | CSV | CSV | CSV | ZIP |
| 2018/19 | 380 | 10,587 | CSV | CSV | CSV | CSV | CSV | ZIP |
| 2017/18 | 380 | 9,794 | CSV | CSV | CSV | CSV | CSV | ZIP |
Bundesliga
| Season | Matches | Shots | Fixtures | Standings | Players | Shots | Appearances | Details |
|---|---|---|---|---|---|---|---|---|
| 2025/26 | 306 | 8,124 | CSV | CSV | CSV | CSV | CSV | ZIP |
| 2024/25 | 306 | 7,944 | CSV | CSV | CSV | CSV | CSV | ZIP |
| 2023/24 | 306 | 8,506 | CSV | CSV | CSV | CSV | CSV | ZIP |
| 2022/23 | 306 | 7,815 | CSV | CSV | CSV | CSV | CSV | ZIP |
| 2021/22 | 306 | 7,949 | CSV | CSV | CSV | CSV | CSV | ZIP |
| 2020/21 | 306 | 7,590 | CSV | CSV | CSV | CSV | CSV | ZIP |
| 2019/20 | 306 | 8,148 | CSV | CSV | CSV | CSV | CSV | ZIP |
| 2018/19 | 306 | 8,264 | CSV | CSV | CSV | CSV | CSV | ZIP |
| 2017/18 | 306 | 7,737 | CSV | CSV | CSV | CSV | CSV | ZIP |
Ligue 1
| Season | Matches | Shots | Fixtures | Standings | Players | Shots | Appearances | Details |
|---|---|---|---|---|---|---|---|---|
| 2025/26 | 306 | 7,617 | CSV | CSV | CSV | CSV | CSV | ZIP |
| 2024/25 | 306 | 7,647 | CSV | CSV | CSV | CSV | CSV | ZIP |
| 2023/24 | 306 | 7,827 | CSV | CSV | CSV | CSV | CSV | ZIP |
| 2022/23 | 380 | 9,345 | CSV | CSV | CSV | CSV | CSV | ZIP |
| 2021/22 | 380 | 9,132 | CSV | CSV | CSV | CSV | CSV | ZIP |
| 2020/21 | 380 | 8,921 | CSV | CSV | CSV | CSV | CSV | ZIP |
| 2019/20 | 279 | 6,812 | CSV | CSV | CSV | CSV | CSV | ZIP |
| 2018/19 | 380 | 9,416 | CSV | CSV | CSV | CSV | CSV | ZIP |
| 2017/18 | 380 | 9,467 | CSV | CSV | CSV | CSV | CSV | ZIP |
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
- Holstein Kiel v Bochum (Understat match 27930) has no shot map.
- Three match totals are flagged
totals_unreliable; their published team xG is left out of the tables. - The Champions League, Europa League and Conference League were never on Understat and are not in the archive.
2026/27 data
Current-season downloads are on the data page and come from Sportmonks.