Note: Support NBA API version 3 added in nba_api
package. This package switch to public archive.
nba_apiv3
is an API Client for www.nba.com
. This package intends to make the APIs of NBA.com easily accessible and provide extensive documentation about them.
nba_apiv3
is fork nba_api
package and contains only endpoints that work with API version 3.
nba_apiv3
contains two endpoints, which not work in nba_api
:
nba_apiv3
requires Python 3.7+ along with the requests
and numpy
packages. While pandas
is not required, it is required to work with Pandas DataFrames.
pip install nba_apiv3
from nba_apiv3.stats.endpoints import boxscorematchupsv3
matchups = boxscorematchupsv3.BoxScoreMatchupsV3(game_id='0021700807')
## players stats
matchups.get_data_frames()[0]
See Contributing to the NBA_APIV3 for complete details.
Encounter a bug, report a bug.
The nba_apiv3
package is Open Source with an MIT License.
NBA.com has a Terms of Use regarding the use of the NBA’s digital platforms.