swar/nba_api

An API Client package to access the APIs for NBA.com

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 52 minutes ago
Added to GitGenius on September 18th, 2026
Created on September 17th, 2018
Open Issues & Pull Requests: 112 (+0)
GitHub issues: Enabled
Number of forks: 721
Total Stargazers: 3,778 (+0)
Total Subscribers: 110 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 3.1 days
Mean response time: 42.0 days
90th percentile: 113.7 days
Tracked items: 159

Most active contributors

Sign in to see contributor activity.

How this project is maintained

About 12% of issues opened in the past year have never received a reply. 100% of open issues come from outside the core team, so the backlog reflects real-world use rather than internal planning. Work labelled "enhancement" is answered fastest, typically in about an hour, while "question" waits about 5 days. Only 55% of issues opened in the past year have been closed. Three people close 77% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 54
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 632 days
Stale 30+ days: 50
Stale 90+ days: 45

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • bug (48)
  • triage (35)
  • question (28)
  • endpoint: third-party issue (22)
  • enhancement (10)
  • not a bug (9)
  • documentation (3)
  • endpoint: new (2)

Most active issues this week

Detailed Description

nba_api is an API client package that provides Python access to the endpoints and data served by NBA.com.

The package solves the problem of programmatically accessing NBA statistics and live game data without having to reverse-engineer or manually construct requests to NBA.com's undocumented APIs. It wraps these endpoints in a Python interface and maintains extensive documentation about endpoint parameters and behavior, filling a gap left by NBA.com's lack of official API documentation. The tool handles HTTP requests through the requests library and supports options like proxy configuration, custom headers, and timeout settings.

The tool suits developers building basketball analytics projects, statistical analysis tools, or applications that need current NBA player stats, team data, or live game information. It works well in Jupyter Notebook environments for exploratory analysis and includes static data sets for frequently accessed player and team information to reduce unnecessary HTTP requests. The package requires Python 3.10 or later and depends on the requests and numpy libraries, with optional pandas support for DataFrame operations.

The project maintains active community engagement through a dedicated Slack workspace and Stack Overflow presence where users can ask questions and report issues. The maintainers actively track changes to NBA.com's endpoints and accept community reports of new, changed, or deprecated endpoints through GitHub issues. Documentation is extensive, covering endpoint analysis, usage examples, and practical Jupyter Notebook demonstrations of common tasks like retrieving game data and working with play-by-play information.