Python Wrapper for NBA API
Created by Todd Roberts
Install from pip:
pip install pynbaapi
or
py -m pip install pynbaapi
See examples.py
in the examples
folder for some example uses.
There are other methods in the pynba.nba.NBA()
object, and the pynba.api.API()
object has a from_url
method that can be used to retrieve arbitrary URLs (as long as the response is in nested json format, which many of the NBA API endpoints are not).
I do not provide support related to NBA API. There is good documentation on the swar/nba_api repo, and this package was only created because the nba_api package does not (appear to) return API responses in recursive objects.
This package and its author are not affiliated with NBA or any NBA team. This API wrapper interfaces with NBA's API. Use of NBA data is subject to copyright by NBA.