Welcome to the NBA-API Documentation!

Usage 

Each endpoint while using this package requires either a Player ID e.g "Lebron James ID : 2544" or a Team ID e.g Golden State Warriors ID : 1610612744. An explanation of getting the IDs for usage in your project can be found on the static module page above.

Documentation for NBA-API Package 

This package is an API Client for www.nba.com

Description

Nba-API is a free tool that downloads statistics from The Official NBA stats page and makes them accessible to developers looking to create programs with such statistics. This tool was written with Python.

Nba-API is a wonderful resource for obtaining statistics on NBA teams, seasons, players, and games. This package includes methods for acquiring data for all of these categories in various formats. Each method has its own set of valid queries that the user can specify.

Statistics are helpful when trying to comprehend what is happening in the sport. They can also be utilized in projects involving machine learning and data analytics.

Installation 

This package must be installed before it can be used. 

To install:

pip install nba-api

Other Packages 

Some other Python packages that are used with the Nba-Api. 

Requests (Required)

pip install requests

Pandas (Optional)

pip install pandas

Authentication

No authentication is required for the usage of this package.

Note 

This package represents outstanding work by rforbes and swar. The GitHub repo can be found here.

This documentation was created by Ayomide Yissa


This is an ongoing project. Not all endpoints are documented yet.