Goals shown
Headers
Avg xG*
*of shots that scored — not his average xG per attempt
Body part
Competition
Season / date range
All time
Time-lapse
Speed8 goals/sec
Data
Expects a JSON array of goal objects, each with: location: [x,y], end_location: [x,y] or [x,y,z] (StatsBomb 120×80 pitch coords, goal at x=120), plus body_part ("Left Foot"/"Right Foot"/"Head"), and optionally technique, date, opponent, competition, minute, statsbomb_xg. This is exactly what fetch_messi_goals.py writes.
507 goals, StatsBomb open data (2004–2024). Coverage is league + CL (Barça era), Ligue 1 (PSG), and both World Cups — not a full career: most Copa América years, domestic/continental cups, and MLS aren't in StatsBomb's public release.
drag / one finger to rotate · scroll or pinch to zoom · tap a shot