Skip to content
DFS Directory

nba_api

Open-source Python client for NBA.com stats and live data endpoints

About nba_api

nba_api is an MIT-licensed Python package that wraps NBA.com's stats endpoints for player, team, game and league data, plus its live feeds such as scoreboards and box scores. It is community-maintained on GitHub, where it has about 3.8k stars. The latest PyPI release is 1.11.4 (February 2026), and the repository was still getting commits in August 2026.

Features

  • NBA.com stats endpoints wrapper
  • Live scoreboard and box score data
  • Player career and game logs
  • Static player and team lookups
  • pip install from PyPI

Sports and sites covered

Sports

Works with

Not tied to a specific DFS site.

Pricing

Free

Open source (MIT)

Prices as listed on github.com when we checked. Confirm current pricing on their site.

Compare nba_api

Alternatives to nba_api

Compare all alternatives
  • Developer API for stats, odds and player props across 20+ leagues

    Data APINBAWNBANFLMLBNHL+8
    Free, or $9.99/mo
  • Budget sports stats API with live, historical and DFS slate feeds

    Data APINFLCFBNBACBBMLB+1DraftKings, FanDuel, Yahoo
    Free + paid plans
  • Low-latency odds and same-game-parlay API that includes PrizePicks and Splash lines

    Data APINFLCFBNBACBBWNBA+7PrizePicks, Splash Sports
    From $299/mo
  • Enterprise real-time odds feed from 200+ sportsbooks, DFS apps and prediction markets

    Data APINFLCFBNBACBBWNBA+12PrizePicks, Underdog, Sleeper, Betr
    Paid
  • Enterprise sports data, odds and AV feeds for sportsbooks, media and leagues

    Data APINFLCFBNBACBBWNBA+10
    Paid
  • Sports data API with stats, odds, projections and DFS salaries and slates

    Data APINFLCFBNBACBBWNBA+8
    Free, or $99/mo

Sources and corrections

Last checked Oct 3, 2026. We build every listing from the sources below and recheck them regularly. If something about nba_api has changed, let us know.