xG & xPTS Migration Guide · Official REST API, CSV & Google Sheets
Understat alternative for team & match xG, xPTS and clean CSV / API pipelines
- What Football Charts replaces: If Understat downtime or brittle scrapers (
understatapi,soccerdata, custom JS regex parsers) broke your club-level or match-level xG and expected-points (xPTS) workflow, we serve free web xG tables and 34 per-match stats columns (xG, shots, box shots, passes, corners, cards, fouls, saves) with xG and shot data for 66 leagues (recent seasons), including Championship, 2. Bundesliga, LaLiga2, Serie B, Eredivisie, Liga Portugal, Brazil, MLS and women's leagues, and results + goal minutes in 98 leagues viahttps://api.football-charts.com/api/v1, UTF-8 CSV and Google Sheets. - What we do NOT hold: We hold zero shot-location coordinates (no X/Y shot maps), zero player-level xG / xA / xGChain / xGBuildup, and no pre-2022 match xG (match xG starts in 2022; most leagues from 2023–24 onward, while results go back to 2020 across all 98 leagues). If you need individual shot coordinates or player scouting radars, use StatsBomb Open Data or Understat when it is online.
Side-by-side comparison for xG & xPTS modellers
| Capability | Football Charts | Understat (unofficial scraping) | FBref (post-Jan 2026) |
|---|---|---|---|
| Leagues with team & match xG | 66 leagues, recent seasons (Big 5 + 2nd tiers, Eredivisie, Portugal, Brazil, MLS & more) | 6 European top flights only (EPL, LaLiga, Bundesliga, Serie A, Ligue 1, RFPL) | Opta xG removed Jan 2026 |
| Expected points (xPTS) & chance-quality tables | Free daily web tables (/xg-tables) + ?view=luck JSON/CSV endpoint across 66 leagues | Web xPTS tables for 6 leagues (unavailable during site downtime) | No longer carries Opta xG/xPTS |
| Delivery & reliability | Official REST JSON & ?format=csv API (api.football-charts.com), Google Sheets =IMPORTDATA, hosted MCP — zero scraping | No official API; relies on parsing embedded JS blobs (breaks on site outages) | HTML table scraping; frequent HTTP 403 / Cloudflare blocks |
| Extra match statistics | 34 columns per match: shots, shots on target, box shots, possession, passes, corners, cards, fouls & saves (66 leagues, recent seasons) | Shots, xG, PPDA & deep completions (6 leagues) | Basic non-Opta match logs |
| Shot X/Y coordinates & player xG / xA | Not held (team & match grain only) | Yes — shot coordinates & player xG/xA/xGChain in 6 leagues | Basic non-Opta player stats |
| Historical depth | Match xG from 2022+ (most leagues 2023–24+); match results, HT scores & goal minutes back to 2020 across 98 leagues (44 countries) | Back to 2014/15 in 6 leagues | Long match history; Opta xG removed |
| Pricing | Free web /xg-tables + free 200/day key (current & previous season results/tables); €9/mo Personal or €49 one-off All-Seasons Pass (2020–2027) for full history + per-match xG exports | Free in browser; no paid API or SLA | Free in browser; automated scripts blocked |
Replace broken Understat scrapers in 3 lines of Python, R or Google Sheets
Swap fragile understatapi or soccerdata loops for a direct CSV or JSON request to api.football-charts.com:
import pandas as pd
# Paid key (Personal €9/mo or €49 All-Seasons Pass) includes home_xg, away_xg + 32 match stat columns
url = "https://api.football-charts.com/api/v1/leagues/premier/results/?format=csv&season=2025-2026"
df = pd.read_csv(url, storage_options={"Authorization": "Bearer fc_your_key"})
print(df[["date", "home_team", "away_team", "home_goals", "away_goals", "home_xg", "away_xg"]].head())import requests
r = requests.get(
"https://api.football-charts.com/api/v1/leagues/bundesliga/table/",
params={"view": "luck"},
headers={"Authorization": "Bearer fc_your_key"},
)
for row in r.json()["table"][:5]:
print(row["team"], row["points"], row.get("expected_points"))=IMPORTDATA("https://api.football-charts.com/api/v1/leagues/premier/table/?format=csv&key=YOUR_KEY")Want to browse chance quality in the browser first with no account? Open all 66 free league xG tables or grab the pre-wired Google Sheets & Excel model template.
Common questions when moving from Understat
- Does Football Charts have expected points (xPTS) like Understat?
- Yes. Every league with xG coverage publishes a daily web table on /xg-tables showing expected goals for/against, expected points and over/under-performance versus actual points. The same table is available via
GET /api/v1/leagues/<league>/table/?format=csv(theexpected_pointscolumn is included on every league, even on a free key). - Which leagues and seasons have per-match xG?
- We hold xG and shot data for 66 leagues (recent seasons), each with a live xG table: Europe's top five plus second tiers (Championship, 2. Bundesliga, LaLiga2, Serie B), Eredivisie, Liga Portugal, Brazil, MLS, Nordic leagues and women's leagues. Match xG begins in 2022 (most leagues from 2023–24 onward); full match results, half-time scores and exact goal minutes go back to 2020 across all 98 leagues.
- Can I pull shot maps (X/Y coordinates) or player xG/xA?
- No — Football Charts is strictly match- and team-level data (built for club ratings, Poisson / Dixon–Coles models, xG form and league projections). We do not store individual shot coordinates or player-level xG/xA.
- Do I also get historical bookmaker odds for backtesting?
- Bookmaker odds are sold separately as a clean CSV + Parquet download on /data (2020-21 to 2025-26, opening & closing odds across 98 leagues, 26 of 29 bookmakers named — 99.7% of price rows — joined to match stats and xG, with free sample zips).
Test a live download right now — get a free API key in 10 seconds
Create a free key below (200 calls/day, current + previous season), then click any league button underneath to verify the CSV columns before upgrading for full 2020–2027 history and per-match xG exports.
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 and per-match xG/stat 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 €9 / month cancel any time
€19 from 1 Dec 2026 · subscribe by 30 Nov and keep €9
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).