Shotcast

Method and data quality

Where the numbers come from

Match data comes from ESPN's public match-summary endpoints, which are unofficial and can change without notice. Shots on target, goals and assists are ESPN's own per-player match statistics, added up across the stored matches. Players are identified by ESPN athlete id, so two players with the same name stay separate. Per-90 rates use only matches where the player's minutes are known, and only for players with at least 900 minutes.

How it is checked

For every match, the shots parsed from the commentary are compared with ESPN's team totals. A match counts as reconciled when they agree exactly. Where ESPN's team totals are empty (some older seasons), the parsed shots are compared with the sum of ESPN's player statistics instead. Matches that do not reconcile are flagged and retried, never hidden.

CompetitionMatchesReconciledWith minutesStored range
AFC Champions League3232 (100.0%)162026-11-02 to 2026-11-25
Bundesliga1,7641,746 (99.0%)1,7532021-02-05 to 2026-11-29
Champions League843838 (99.4%)8252021-09-14 to 2026-11-25
European Championship5151 (100.0%)512024-06-14 to 2024-07-14
La Liga2,2102,193 (99.2%)2,2102021-02-01 to 2026-11-30
Ligue 11,9481,931 (99.1%)1,9342021-02-03 to 2026-11-29
MLS3,0782,991 (97.2%)3,0572021-04-17 to 2026-11-29
Premier League2,1952,120 (96.6%)2,1952021-02-02 to 2026-11-29
Saudi Pro League1,1860 (0.0%)1,1862023-01-05 to 2026-11-28
Serie A2,2122,180 (98.6%)2,1952021-02-05 to 2026-11-30
World Cup232195 (84.1%)1922018-06-14 to 2026-07-19

Last built 2026-12-01 04:36 UTC.

Expected goals (xG)

xG is the chance that a shot becomes a goal, estimated from where and how it was taken: distance and angle to goal, header or foot, and open play, penalty, free kick or corner. The outcome is never an input. It uses only shots with a usable location, and the xG shown for each shot comes from a model that never saw that match.

Tested the same way as the forecast: 4 successive periods (2024-07-08 to 2026-11-30), each predicted by a model trained only on earlier matches, on 148,658 shots of which 11.6% were goals. Lower log loss is better. The fuller model won 4 of 4 periods against a distance-only model and its gain stayed positive when whole matches were resampled, so it is used.

ModelLog lossBrierAUCPredicted goalsActual goals
Same chance for every shot0.35870.10250.49317,350.117,227
Distance to goal only0.33970.09840.67420,488.417,227
Logistic regression (distance, angle, body part, situation)0.31400.08980.75220,896.317,227
Gradient-boosted trees (same inputs) (used)0.30760.08890.76320,931.917,227

Does it say what it means? Shots grouped by predicted chance:

Said (avg chance)HappenedShots
2.1%2.4%19,408
4.3%3.8%33,109
7.9%7.0%25,735
14.6%12.0%38,269
27.3%20.2%24,365
61.7%53.6%7,772

Known limit. In this test the model predicts 22% more goals than happened, and the table above shows the same gap in every group. The test periods are later than the matches the model learned from, and their goal rate is lower, so a shot's xG runs high on average. Use xG to compare players with each other, not as an exact count of goals.

Player pages show non-penalty xG next to non-penalty goals, and xA, the xG of shots a player set up (only where ESPN names the assister). Neither includes shots without a location. xG here is not StatsBomb's or Opta's: it has no defender positions, pass type or goalkeeper position, so use it to compare shot quality, not as a verdict on a finisher.

Known limits

How it is built

A scheduled GitHub Actions job downloads new matches, parses them, checks them and writes one JSON file per match to Amazon S3. Another job rebuilds this site from those files and publishes it. Code, tests and design notes are in the GitHub repository.