Players
Player season statistics
GET/v2/players/{id}/statisticsAll plans
The player’s season statistics in one league: totals and averages (goals, minutes, averageRating, expected goals, passes, duels, …).
Keys follow the match statistics’ vocabulary (totalShots, shotsOnGoal, passes, averageRating, goalInvolvements, minutesPerGoal — absent with no goals —, kilometersCovered = metersCovered / 1000, …).
Parameters
id
our numeric id (positive integer)
league
a league id from /v2/players/{id}/seasons
season
a season id from /v2/leagues/{id}/seasons
type
one of the season’s types from /seasons (overall | home | away | regularSeason | playoffs); default: the season’s own — overall, else regularSeason
Response
- data
PlayerStatistics- meta
- league, season, type (the one used)
- errors
- 400 bad_request — missing league or season, type not one of overall, home, away, regularSeason, playoffs404 no_data — the source has no statistics for that player, league, season and type (404 not_found: an id we never issued)404 not_found — season is not one of this league’s seasons (the message names the parameter; list them with /v2/leagues/{id}/seasons)
Every /v2 call can also answer the common errors.
$ curl -H "Authorization: Bearer sk_live_…" \ "https://api.sportsapi.app/v2/players/{id}/statistics?league=…&season=…"
Example
{ "data": { "team": { "id": 4438, "name": "Manchester City", "slug": "manchester-city", "shortName": "Man City", "code": "MCI", "image": "…" }, "statistics": { "appearances": 7, "minutesPlayed": 620, "goals": 8, "assists": 0, "averageRating": 7.93, "totalShots": 27, "shotsOnGoal": 13, "expectedAssists": 0.91, … } }, "meta": { "league": 195828, "season": 200386, "type": "overall" } }