Documentation / Guides
Stats and comparisons
Leaders, head to head, team form and player splits, all worked out from the games.
What it covers
- Leaders: a season's leaders in one statistic, per game.
- Head to head: two teams' meetings, the record from the first team's side, home and away, average score and the last games.
- Team form: a team's last games with margin, pace and ratings.
- Player splits: a player's averages home and away, by result, month, opponent or starting role.
Every figure is worked out from the games we hold, so it is never older than the last result. These count regular-season and play-off games, never preseason or all-star. They are on Complete and up.
Common jobs
Top scorers this season
GET https://api.basketballapi.net/v1/stats/leaders?competition=cp_...
Before a meeting
GET https://api.basketballapi.net/v1/teams/{id}/head-to-head?opponent=tm_...
GET https://api.basketballapi.net/v1/teams/{id}/form?last=10 Endpoints in this guide
/v1/stats/leadersA season's leaders in one statistic, per game. Leave season out for the competition's latest season with box scores.
/v1/teams/{id}/head-to-headTwo teams' meetings: the record from the first team's side, home and away, average score and the last games.
/v1/teams/{id}/formA team's last games with margin, pace and ratings.
/v1/players/{id}/splitsA player's averages split home and away, by result, month, opponent or starting role.