Developers · API Reference
API v1

Data API · Players

Get player statistics in a competition

GET/api/v1/datas/player-stats/{player_id}/{competition_id}

Returns competition, player and statistics objects.

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.

Path parameters

ParameterTypeRequiredDescription
player_id integer Required Player ID Minimum 1.
competition_id integer Required Competition ID Minimum 1.

Query parameters

ParameterTypeRequiredDescription
format string Required Response format. Allowed: json, csv, xml.
lang string Optional Language code. Default: en. Maximum 10 characters.
version integer Optional Statistics version. Minimum 1.
case string Optional JSON response key style. Default: camelCase. Allowed: camelCase, snake_case.

Response attributes

AttributeTypeDescription
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.
competition.providerIdstring|integer|nullProvider identifier.
competition.genderstringDerived competition gender.
playerobjectPlayer metadata.
player.idintegerPlayer ID.
player.namestring|nullGiven name.
player.surnamestring|nullFamily name.
player.middleNamestringMiddle name.
player.nicknamestringPlayer nickname.
player.birthDatestring|nullBirth date (YYYY-MM-DD).
player.heightinteger|nullHeight in centimeters.
player.weightnumber|nullWeight in kilograms.
player.legstring|nullPreferred foot.
player.genderstring|nullPlayer gender.
player.dateCreatestring|nullRecord creation date.
player.dateUpdatestring|nullRecord update date.
player.logostring|nullPlayer image URL.
player.countryIdinteger|nullPrimary nationality ID.
player.countryNamestring|nullPrimary nationality name.
player.position1string|nullPrimary position.
player.position2string|nullSecondary position.
player.position3string|nullThird position.
player.providerIdstring|nullProvider identifier.
statisticsarrayStatistics for the player by season.
statistics[].seasonstring|nullSeason label.
statistics[].generalobjectGeneral season totals.
statistics[].general.{statistic}number|string|nullA general statistic keyed by its source name.
statistics[].paramsobjectDetailed statistics keyed by their source name.
statistics[].params.{statistic}number|string|nullA detailed statistic keyed by its source name.