Introduction to The Endpoint Section

As of the time of the time of writing, there are currently 135 different stats that this package can access from The NBA Website.

Each endpoint gives information about the data it returns, parameters that the endpoint takes and sample results.


Tip

To get all the arguments that an endpoint can return, use .expected_data.keys()

Example

from nba_api.stats.endpoints import commonplayerinfo
doncic_data = commonplayerinfo.CommonPlayerInfo(1629029)
doncic_data.expected_data.keys()

This returns all the arguments the commonplayerinfo endpoint can take.

dict_keys(['AvailableSeasons', 'CommonPlayerInfo', 'PlayerHeadlineStats'])