Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Players statistics

Last but not least, you can retrieve player statistics. The fundamentals and steps are the same as for the team endpoint. First, you can use one of our players' endpoints. For example, the Player by ID endpoint:

How do I get season totals and per-game averages for shots and offsides?

Request the player’s season statistics with their detail values:

GET https://api.sportmonks.com/v3/football/players/8585?api_token={{apiToken}}&include=statistics.details&filters=playerStatisticSeasons:28275

Choose the record for the required season_id and team_id. Within details, match type_id: 42 is total shots, 41 shots off target, 86 shots on target, 51 offsides and 321 appearances. Read each total from value.total.

In the response checked on 15 October 2026, Callum McGregor (8585), Celtic (53), season 28275 had 11 total shots and 7 appearances: 11 / 7 = 1.5714…, or 1.57 shots per appearance. Type 51 was absent, so his offsides total and average are unavailable in this response—not a confirmed zero.

Calculate the rate only when the total exists and appearances is greater than zero. Use appearances from the same team/season record. This rate is per appearance, not per team fixture, per start or per 90 minutes. If a player has records for several teams, keep them separate or explicitly combine matching totals and appearances.

JavaScript example

response below is the parsed JSON from the request above. Missing totals and invalid denominators remain null.

function seasonAverages(player, seasonId, teamId) {
  const season = (player.statistics ?? []).find(
    row => row.season_id === seasonId && row.team_id === teamId
  );
  if (!season) return null;
  const totals = new Map((season.details ?? []).map(
    row => [row.type_id, row.value?.total]
  ));
  const total = id => {
    const value = totals.get(id);
    return typeof value === "number" && Number.isFinite(value) ? value : null;
  };
  const appearances = total(321);
  const perAppearance = id => {
    const value = total(id);
    return value !== null && appearances !== null && appearances > 0
      ? value / appearances : null;
  };
  return {
    player_id: player.id, season_id: seasonId, team_id: teamId,
    appearances,
    shots: { total: total(42), per_appearance: perAppearance(42) },
    offsides: { total: total(51), per_appearance: perAppearance(51) }
  };
}

const summary = seasonAverages(response.data, 28275, 53);
console.log(summary);

For the verified response, summary.shots.total is 11, summary.shots.per_appearance is about 1.57, and both offsides values are null. Round the rate for display after calculating it. For type names, consult the Player statistics types reference.

For a complete list of player season statistic type IDs with codes, developer names and descriptions, see the Player statistics types reference.

Let's say you want the statistics of James Tavernier (id 758). You can use the statistics include:

Now, just like in the previous section, you need to add details to retrieve the statistics values and type to retrieve the name of the statistics:

Please check the response carefully to see the correct values for the types.

Filtering player statistics

The API returns all the available season statistics for the requested player. Only interested in some of the seasons? You can use a filter to only retrieve stats for a specific season.

  1. Add the parameter &filters=

  2. Select the entity you want to filter on

  3. Select the field you want to filter on

  4. Fill in the IDs you're interested in

Let's say you're only interested in the statistics of the 2022/2023 season (id: 19735). This will result in the following steps:

  1. Add the parameter &filters=

  2. Select the entity you want to filter on: playerStatistic

  3. Select the field you want to filter on: Seasons

  4. Fill in the IDs you're interested in: 19735

Are you only interested in a specific statistic, like key passes? Add another filter to your request:

  1. Add the parameter &filters=

  2. Select the entity you want to filter on: playerStatisticDetail

  3. Select the field you want to filter on: Types

  4. Fill in the IDs you're interested in: 117 for key passes (find all player stat types in the Player Statistics Types Reference)

It's important to note that you can retrieve statistics from multiple entities. Therefore, you also need to specify for which entity you want to filter the statistics. You can do this by prefixing the filter with the entity's name. So in our case: playerStatisticDetail

Are you interested in player statistics for a specific fixture? Check our fixture statistics tutorial.

Interested in coaches and referees? You can use the same steps as for the player's statistics tutorial. Simply change the entity from players to referees or coaches and use the according endpoints.

Coach example:

https://api.sportmonks.com/v3/football/coaches/{ID}?api_token=YOUR_TOKEN&include=statistics.details.type

Referee example:

https://api.sportmonks.com/v3/football/referees/{ID}?api_token=YOUR_TOKEN&include=statistics.details.type

See also

Prerequisites

Reference

Last updated

Was this helpful?