basketballapi.net

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