PitchKit
API Reference@pitchkit/data-providersstatsbombFunctions

fetchCompetitions()

function fetchCompetitions(options?): Promise<StatsBombCompetition[]>;

Defined in: packages/data-providers/src/statsbomb/load.ts:93

Every competition-and-season pair available in open data (80 of them at the time of writing). Each row pairs a competition_id with a season_id; both are needed to list that season's matches.

Parameters

ParameterType
optionsStatsBombLoadOptions

Returns

Promise<StatsBombCompetition[]>

On this page