Matchflow Examples#

This section shows real-world examples of using MatchFlow to explore and analyze StatsBomb event data. Each recipe is a focused, end-to-end workflow: loading data, transforming it with Flow, and visualizing or exporting the results.

You’ll find patterns for:

  • Filtering and transforming events

  • Calculating per-player or per-team summaries

  • Visualizing shots, passes, and duels

  • Combining multiple matches

  • Building datasets for machine learning or reporting

These notebooks are designed to be simple, to give you a quick feel for how MatchFlow works.

Guide Index#

Section

Description

📍 Recipe: Statsbomb API Integration

Streaming data directly from the StatsBomb API

📍 Recipe: xG per Player in a Single Match

Grouping and aggregating stats

📍 Recipe: Shot Accuracy per Team

Using custom aggregation functions

📍 Recipe: Drawing a Pass Map

Accessing values in arrays

📍 Recipe: Cumulative xG by Time per Team

Calculating grouped cumulative stats

📍 Recipe: Touch Location Heatmap for a Player

Using a pipe to apply a custom function to the Flow