Basketball data API

Basketball API for Live Scores, Box Scores and Player Stats

A REST JSON API for the NBA, WNBA, EuroLeague, EuroCup, NCAA, G League, NBL and international tournaments. Scores, box scores, standings, rosters and season averages behind one API key.

14
Leagues & tournaments
1,800+
Teams
31,000+
Games
29,000+
Players
440,000+
Player box score lines
30,000+
Team box scores

What the basketball API returns

Every data type uses the same IDs, so a game links to its teams, players and league.

Live scores

Status, current period, game clock and points per quarter for every game on a date, with a dedicated endpoint for games in progress.

Schedules and results

Every game with tip-off time in UTC, venue, attendance, season and stage: preseason, regular season, play-in, playoffs and tournaments.

Box scores

Per-player lines with minutes, points, rebounds, assists, steals, blocks, turnovers, fouls, shooting splits and plus-minus, starters marked.

Team game stats

Field goals, three-pointers, free throws, rebounds, assists, turnovers, steals, blocks and fouls for both teams in a game.

Standings

Wins, losses, win percentage, games behind, home and away records, points for and against, last 10 and streak, by conference.

League leaders

Players ranked by points, rebounds, assists, steals, blocks and three-pointers per game, with a minimum games filter.

Players and season averages

Height, weight, birth date, position and jersey number, plus season averages and the last games for every player.

Teams and rosters

Team profiles with arena, colours and logo, current rosters and the full season schedule with results.

Head to head

Previous meetings between any two teams with scores and dates, for game previews.

Basketball API endpoints

All endpoints use GET under https://sportapi.ai/api/basketball and need the X-Api-Key header.

EndpointReturns
GET /basketball/games/date/{YYYY-MM-DD}All games on a date; optional tz and league filters
GET /basketball/games/liveGames in progress with period and clock
GET /basketball/games/{id}One game: score, periods, status, stage and venue
GET /basketball/games/{id}/playersBox score with per-player stat lines
GET /basketball/games/{id}/statsTeam statistics for both sides
GET /basketball/games/h2h/{team1}/{team2}Head-to-head history of two teams
GET /basketball/leaguesAll leagues and tournaments with current season
GET /basketball/leagues/{slug}League profile with seasons
GET /basketball/leagues/{slug}/gamesFinished or scheduled games of a league
GET /basketball/leagues/{slug}/leadersStat leaders per game for a season
GET /basketball/standings/{slug}Standings by conference or group
GET /basketball/teams/{id}Team profile (also /roster and /games)
GET /basketball/players/{id}Player profile with season averages and last games

Full reference with parameters →

Make your first request

Create a free account, generate a key in your dashboard and send it in the X-Api-Key header. Times are UTC in ISO 8601; pass tz to get a day in your own time zone.

  • JSON responses for every endpoint
  • API key in the X-Api-Key header
  • Live status with period and clock
  • The same structure for every league
Full API docs
RequestResponse
GET https://sportapi.ai/api/basketball/games/date/2026-10-21?tz=America/New_York
GET https://sportapi.ai/api/basketball/games/1472/players
GET https://sportapi.ai/api/basketball/standings/nba

X-Api-Key: YOUR_API_KEY

Works with any language

Plain HTTP and JSON, no SDK required.

⌨️cURL
🐘PHP
🟢Node.js
🐍Python
☕Java
💎Ruby
🦀Rust
🔷Go
Free basketball API plan

Start free, upgrade when you need more requests

Every plan includes all basketball and football endpoints and every league. The free plan gives you 2,000 requests a day with no credit card.

Paid plans raise the daily limit and add more API keys.

Create a free account
Requests per day, per plan
Free2,000
Starter10,000
Pro50,000
Business200,000

Basketball API pricing

One subscription covers basketball and football.

Free
Free
2,000 requests/day
  • All endpoints
  • Basketball and football
  • Live scores & box scores
  • Standings & player stats
  • 1 API key
Get started
Starter
$10/mo
10,000 requests/day
  • All endpoints
  • Basketball and football
  • Live scores & box scores
  • Standings & player stats
  • 1 API key
Subscribe
Business
$50/mo
200,000 requests/day
  • All endpoints
  • Basketball and football
  • Live scores & box scores
  • Standings & player stats
  • 10 API keys
Subscribe

About the SportAPI basketball API

The SportAPI basketball API gives developers scores, schedules, box scores, standings and player statistics for professional, college and international basketball. It uses the same API key, rate limits and JSON conventions as the football API, so one integration covers both sports.

Live scores and game data

The games endpoints return every game on a date with status, the current period and clock, the score and points per quarter. While games are on, scores are refreshed every 5 minutes. After the final buzzer each game gets a full box score: minutes, points, rebounds, assists, steals, blocks, turnovers, fouls, shooting splits and plus-minus for every player, plus team totals.

Standings, leaders and player stats

Standings include wins, losses, win percentage, games behind, home and away records, points for and against and the current streak, grouped by conference or group where the league uses them. League leaders rank players by points, rebounds, assists, steals, blocks or three-pointers. Player profiles combine bio data with season averages and the last games played.

Get started

Create a free account, copy your key from the dashboard and call the API from any language:

curl "https://sportapi.ai/api/basketball/games/live" \
  -H "X-Api-Key: YOUR_API_KEY"

Browse the basketball scores pages to see the data the API returns before writing any code.

What the basketball API does not include

SportAPI does not provide betting odds, play-by-play, shot charts or player tracking data. It provides scores, schedules, box scores, standings, rosters and statistics.

Basketball API frequently asked questions

Is there a free basketball API plan? −

Yes. The free plan costs $0 and allows 2,000 requests per day with one API key. It includes every basketball and football endpoint and every league. The limit resets daily at 00:00 UTC, and the API answers with HTTP 429 once it is reached.

Which basketball leagues does the API cover? +

The NBA, WNBA, NBA G League, NCAA men's and women's basketball, the EuroLeague, the EuroCup, the Australian NBL, NBA Summer League and the Olympic and FIBA women's World Cup tournaments. The /basketball/leagues endpoint lists every competition with its current season.

How fresh are live basketball scores? +

Scores of games in progress are refreshed every 5 minutes. Box scores and team statistics are completed shortly after the game ends, and standings are rebuilt every day.

Are box scores available for every game? +

Box scores are available for nearly every finished game in the covered leagues. The has_boxscore flag on each game tells you whether per-player stats exist before you request them.

Do I need a separate key for basketball and football? +

No. The same API key, plan and daily limit work for both sports. Basketball endpoints live under /api/basketball and football endpoints under /api.

How do I get games for my own time zone? +

Pass the tz parameter with an IANA zone name, for example ?tz=America/New_York or ?tz=Europe/Madrid, to the games by date endpoint. Start times are always returned in UTC.

Does the basketball API include odds or play-by-play? +

No. SportAPI does not provide betting odds, play-by-play, shot charts or tracking data. It provides scores, schedules, box scores, standings, rosters and player statistics.

Start building with the basketball API

Free plan with 2,000 requests a day. No credit card required.

Get your API key