Players

Season rankings

GET/v2/players/{id}/statistics/rankingsPro + Business

Where the player ranks among the league’s players in one season, for every statistic: his figure, his place (players with the same figure share it), how many share it and how many are ranked. Pro and Business plans.

statistic uses the keys of /v2/players/{id}/statistics. An empty list where the source ranks none (minor leagues, other sports).

Parameters

id
pathrequired
our numeric id (positive integer)
league
queryrequired
a league id from /v2/players/{id}/seasons
season
queryrequired
a season id from /v2/leagues/{id}/seasons
type
query
statistics type, default overall

Response

data
PlayerStatRanking[]
meta
league, season, type, count
errors
403 history_not_in_plan — the season ended before your plan’s history404 not_found — season is not one of this league’s seasons

Every /v2 call can also answer the common errors.

Try it →
$ curl -H "Authorization: Bearer sk_live_…" \
    "https://api.sportsapi.app/v2/players/{id}/statistics/rankings?league=…&season=…"
Example
{ "data": [ { "statistic": "goals", "value": 3, "rank": 12, "tiedCount": 13, "playerCount": 454 },
    { "statistic": "expectedGoals", "value": 3.619, "rank": 9, "tiedCount": 1, "playerCount": 364 }, … ],
  "meta": { "league": 200001, "season": 200386, "type": "overall", "count": 79 } }