Teams
Team season statistics
GET/v2/teams/{id}/statisticsAll plans
The team’s season statistics in one league: totals and averages (goals scored and conceded, shots, possession, rating, clean sheets, …).
Keys follow the match statistics’ vocabulary (totalShots, shotsOnGoal, cornerKicks, passes, averageRating, …) with an Against twin for the opponents’ figures; a 0 matches beside non-zero counts is left out.
Parameters
id
our numeric id (positive integer)
league
a league id (e.g. the team’s fixtures’ league)
season
a season id from /v2/leagues/{id}/seasons
type
overall | home | away | regularSeason | playoffs. Default: the season’s own — overall where it has one (football), else regularSeason (NBA, NHL, …); meta.type says which was used
Response
- data
TeamSeasonStatistics- 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 team, 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/teams/{id}/statistics?league=…&season=…"
Example
{ "data": { "statistics": { "matches": 7, "goalsScored": 19, "goalsConceded": 7, "totalShots": 112, "averageBallPossession": 61.3, "averageRating": 7.02, "cleanSheets": 3, … } }, "meta": { "league": 195828, "season": 200386, "type": "overall" } }