Teams

Team statistic ranks

GET/v2/teams/{id}/statistics/ranksAll plans

Where the team’s season statistics rank among its league’s teams: for each statistic its value, its place on the season total and its place per game (the NBA, the NFL and other leagues the source ranks).

The keys are those of /v2/teams/{id}/statistics (basketball: points, rebounds, fieldGoalPercentage, netRating, …).

Parameters

id
pathrequired
our numeric id (positive integer)
league
queryrequired
a league id (e.g. the team’s fixtures’ league)
season
queryrequired
a season id from /v2/leagues/{id}/seasons
type
query
overall | home | away | regularSeason | playoffs | mainDraw (a tennis tournament’s main draw, without qualifying). Default: the season’s own — overall where it has one (football), else regularSeason (NBA, NHL, …); a tennis tournament’s leaderboards (top-players, top-teams, top-performances) default to mainDraw where it has one, else overall; meta.type says which was used

Response

data
TeamStatisticRanks
meta
league, season, type (the one used)
errors
403 history_not_in_plan — a season before your plan’s history404 no_data — the source ranks no statistics for this team, league and season

Every /v2 call can also answer the common errors.

Try it →
$ curl -H "Authorization: Bearer sk_live_…" \
    "https://api.sportsapi.app/v2/teams/{id}/statistics/ranks?league=…&season=…"
Example
{ "data": { "teamCount": 30, "matches": 15, "ranks": { "points": { "value": 1642, "rank": 21, "rankPerGame": 25 }, "rebounds": { "value": 705, "rank": 9, "rankPerGame": 3 }, … } },
  "meta": { "league": 132, "season": 100772, "type": "regularSeason" } }