How it is organized
The API has two tiers:- Per game. Each endpoint returns a whole game: events and segments a page at a time (a full match can have over 10,000 events), every player’s physical summary in one response. Optional filters narrow the result. Tracking is returned one period at a time.
- Across games. List Player Stats aggregates physical and event totals per player, grouped by game or season.
Key concepts
- Game: a match between two teams, with date, competition, pitch size, frame rate (
fps), roster and each team’s attacking direction per period. Each team has a stableteam_idand ateam_sideofhomeoraway. - Video: a video file uploaded to a game. A game can be one full-match video or several (the halves, or parts of the match).
- Run: one processing pass over a game’s videos. Every response includes the
run_idit came from. Re-processing a game creates a new run and replaces the game’s data. - Event: an action in the game with a start and an end, such as a pass, a high-speed run or a duel. See the event catalogue.
- Segment: a span of time, such as a phase of play, a team possession, a player possession or a key moment. Every event falls inside a phase of play and, when the ball is involved, a team possession and a player possession.
- Player:
player_ididentifies a roster entry in one game. It can be empty, or a placeholder such astrack_12, when a player isn’t identified. When it is linked to an Uplift athlete,athlete_idis included, so game data and capture data can be joined.
How the data fits together
A game is made up of periods and built from the videos you upload. Inside a period, everything shares one timeline,time_s:
- Tracking layers are the raw positions. Player positions and the ball cover every frame (the ball has gaps when it is not seen). 3D skeletons are run only for key players during key moments.
- Segments are spans of time. Phases of play and dead balls cover the whole period. Team possessions sit inside play. Player possessions sit inside team possessions, back to back: each runs from a player’s first touch until the next player’s.
- Events have a start and an end. A touch is a single frame, a pass runs from the touch that plays it until the ball reaches the next player, and a high-speed run lasts a few seconds. Each event needs a tracking layer:
position,ballorskeleton. It takes itsphaseand possession IDs from the segments it falls in. - Key moments are laid over the top. They list their events and pick the players whose skeletons are run.
One minute of period 1: tracking layers, segments and events on the same timeline.
Conventions
- Coordinates: pitch metres with the origin at the centre spot,
xalong the length andyacross;zis height for the ball. Event coordinates are turned so that the event’s team attacks towards positivex;attacking_sidesays which way that team was attacking on the pitch. Tracking stays on the fixed pitch, with each team’s attacking direction per period on the game. - Time:
periodis 1 or 2 for halves, 3 or 4 for extra time and 5 for a penalty shootout; a single video is period 1.time_sis seconds from the start of the period;frameis the video frame. - Frame rate: data is at the game’s frame rate, given in
fpson the game. - Naming: every field, parameter and value is
snake_case. - Paging: List Game Events and List Game Segments return the game a page at a time, with
limit(up to 2,000, default 1,000) andoffset;total_countis the number matching. Every page includesrun_id: if it changes between pages, the game was re-processed, so start again fromoffset=0. Physical summaries return the whole game, and tracking one period. List endpoints also uselimitandoffset: List Games returns up to 500 rows per page, List Player Stats up to 5,000. - Quality: every event and segment has a
confidencefrom 0 to 1, aconfidence_tier(high,mediumorlow), and thelayerit needs:position(player positions only),ball(the ball as well) orskeleton(3D body pose). - Formats: responses are JSON. Tracking is a zstd-compressed Parquet file.
Webhooks
Game data uses the existing webhooks:game.processing_completed: a run finished, the first time or after re-processing. The payload includesgame_idandrun_id.game.processing_failed: processing failed, with an error summary.