Developers · API Reference
API v1

Data API · Competitions

Get competition by query parameter

GET/api/v1/datas/competition

Returns one competition, its selected season and related teams.

Bearer authentication required · service: data_api

Reference only — this page never sends API requests or exposes token controls.

Response formats

When format is listed below, use json for the response documented here, or csv and xml for downloads. JSON uses camelCase by default; set case=snake_case when supported for legacy key names. Nested response fields use dot notation; [] denotes an array item and {key} a dynamic object key.

Query parameters

ParameterTypeRequiredDescription
competition_id integer Required Competition ID Minimum 1.
format string Required Response format. Allowed: json, csv, xml.
case string Optional JSON response key style. Default: camelCase. Allowed: camelCase, snake_case.

Response attributes

AttributeTypeDescription
seasonIdsinteger[]IDs of all accessible seasons in the competition.
seasonIds[]integerSeason ID.
competitionobjectCompetition metadata.
competition.idintegerCompetition ID.
competition.namestring|nullCompetition name.
competition.shortNamestring|nullCompetition short name.
competition.competitionFormatIdinteger|nullCompetition format ID.
competition.competitionFormatNamestring|nullCompetition format name.
competition.countryIdinteger|nullCountry ID.
competition.countryNamestring|nullCountry name.
competition.logostring|nullCompetition logo URL.
seasonobjectSelected season metadata.
season.idintegerSeason ID.
season.competitionIdinteger|nullCompetition ID.
season.yearSeasonIdinteger|nullYear-season ID.
season.titlestring|nullSeason title.
season.shortTitlestring|nullSeason short title.
season.dateStartstring|nullSeason start date (YYYY-MM-DD).
season.dateEndstring|nullSeason end date (YYYY-MM-DD).
teamsarrayTeams in the selected season.
teams[].teamIdintegerTeam ID.
teams[].teamNamestring|nullTeam name.