
Pull Your First Match Data with StatsBomb Open Data
Use statsbombpy to load free, event-level data for a real match, understand the events table, and summarize it - with the attribution StatsBomb's license requires.
Free event data from StatsBomb plus xG from Understat let you analyse matches like a pro - no paid feed required.
No tutorials match that filter.

Use statsbombpy to load free, event-level data for a real match, understand the events table, and summarize it - with the attribution StatsBomb's license requires.

Pull a season of Understat shot-level xG via its JSON endpoint, aggregate it to a team table, and compare an xG-based table against the real one.

Filter a match's passes from StatsBomb event data and draw them as arrows on a correctly-proportioned pitch using mplsoccer, with StatsBomb attribution.

Plot every shot from a real match on a pitch with mplsoccer, sizing each by its expected-goals value and highlighting goals - the single most useful soccer viz there is.

Collect every action a player took from StatsBomb event data and turn the locations into a smooth territory heatmap on the pitch, showing where they did their work.

Combine players' average positions with their pass combinations to draw a pass network - the chart that reveals a team's shape and its most important connections.