{"slug": "nba-api", "name": "nba_api (NBA Stats)", "type": "open_api", "description": "MIT-licensed Python package wrapping many unofficial NBA.com stats endpoints, returning data for games, players and teams; not an official or hosted API.", "website": "https://github.com/swar/nba_api", "country": null, "sports": ["basketball"], "data_types": ["historical", "play-by-play", "player-stats", "scores", "standings", "stats"], "protocols": ["sdk-only"], "free_tier": true, "trial_days": null, "demo": null, "contact_sales_only": false, "min_price": null, "plans_count": 1, "commercial_use": null, "betting_use": null, "redistribution": null, "rights_basis": null, "customer_types": ["individual", "business"], "live_in_play": true, "sentiment": "mixed", "discussions": 80, "github_repos": 6296, "priority": 1.0, "logo": null, "logo_tone": null, "docs_url": "https://github.com/swar/nba_api", "pricing_url": null, "status_page_url": null, "founded_year": null, "product": {"name": "nba_api", "formats": ["json"], "auth_methods": ["none"], "sdk_languages": ["python"], "openapi_url": null, "history_depth": null, "update_frequency": null, "claimed_latency_ms": null}, "plans": [{"name": "Free (MIT)", "price": 0.0, "currency": "USD", "period": "month", "request_limit": null, "request_period": null, "is_free": true, "is_enterprise": false, "summary": "Open-source client; depends on NBA.com availability and terms", "source_url": "https://github.com/swar/nba_api", "verified_at": "2026-11-03"}], "access": {"restricted_countries": [], "available_only_in": null, "customer_types": ["individual", "business"], "kyc_required": false, "odds_regions": null, "bookmakers_count": null, "notes": "Open-source Python client for NBA.com endpoints; no account needed", "source_url": "https://github.com/swar/nba_api"}, "usage_rights": {"commercial_use": null, "betting_use": null, "redistribution": null, "storage": null, "attribution_required": null, "media_included": null, "terms_url": "https://github.com/swar/nba_api/blob/master/LICENSE", "source_url": "https://github.com/swar/nba_api/blob/master/LICENSE", "basis": null}, "data_source": {"official_partners": [], "collection_methods": ["scraped"], "source_url": "https://github.com/swar/nba_api"}, "support": {"sla_uptime": null, "channels": [], "sandbox": null, "changelog_url": null, "certifications": [], "payment_methods": [], "min_contract": null, "source_url": null}, "coverage": {"competitions_count": null, "key_leagues": ["NBA"], "womens": null, "live_in_play": true, "markets": [], "languages": [], "id_mapping": null, "source_url": "https://github.com/swar/nba_api"}, "community": {"summary": "Unofficial Python wrapper around NBA.com stats endpoints, widely used in Reddit data-viz posts, tutorials and many GitHub projects. Users like the clear docs and easy start, but report that NBA header changes break endpoints, timeouts occur, and 2025-26 pulls stopped working for some. Alternatives mentioned: balldontlie, API-Sports; commercial use raises legal questions.", "sentiment": "mixed", "topics": ["docs", "reliability", "free_tier", "legal", "alternatives"], "pros": ["Easy to use with good docs", "Large community and many projects built on it", "Free"], "cons": ["Breaks when NBA changes headers or blocks requests", "Bulk pulls are slow or time out", "Unofficial, so legal/commercial use is unclear"], "evidence": ["https://www.reddit.com/r/sportsanalytics/comments/ft7anu/", "https://www.reddit.com/r/sportsanalytics/comments/1pukhl9/", "https://github.com/YusufAlam1/BALL/issues/9", "https://www.reddit.com/r/nba/comments/13hk3et/", "https://www.reddit.com/r/nba/comments/9j2e05/"]}, "discussions_list": [{"platform": "reddit", "title": "Forthcoming changes to NBA API, according to @NBACouchside: \"so the @NBA is going to basically destroy public facing analytics with the restrictions they are working to implement on their data. PBPstats, probably going to break. RAPM based metrics, done. My own SPI? Done-zo.\"", "url": "https://www.reddit.com/r/nba/comments/16io7yr/", "date": "2023-09-14", "score": 712.0, "where": "r/nba"}, {"platform": "reddit", "title": "nba_api: An NBA API Client for Python", "url": "https://www.reddit.com/r/nba/comments/9j2e05/", "date": "2018-09-26", "score": 607.0, "where": "r/nba"}, {"platform": "reddit", "title": "[OC] I made a free NBA API with data from 1979-current", "url": "https://www.reddit.com/r/nba/comments/aljs2n/", "date": "2019-01-31", "score": 279.0, "where": "r/nba"}, {"platform": "reddit", "title": "nba_api: An NBA API Client for Python", "url": "https://www.reddit.com/r/Python/comments/9j2dxi/", "date": "2018-09-26", "score": 171.0, "where": "r/Python"}, {"platform": "reddit", "title": "nba_api: An NBA API Client for Python", "url": "https://www.reddit.com/r/nba/comments/bbzmsv/", "date": "2019-04-11", "score": 157.0, "where": "r/nba"}, {"platform": "reddit", "title": "nba_api: An NBA API Client for Python", "url": "https://www.reddit.com/r/fantasybball/comments/bbzp1s/", "date": "2019-04-11", "score": 110.0, "where": "r/fantasybball"}, {"platform": "reddit", "title": "nba_api: An NBA API Client for Python", "url": "https://www.reddit.com/r/sportsbook/comments/bbzooz/", "date": "2019-04-11", "score": 104.0, "where": "r/sportsbook"}, {"platform": "reddit", "title": "nba_api: Helping Deliver OC Material and NBA Stats Data Analysis with Python", "url": "https://www.reddit.com/r/fantasybball/comments/dvbyov/", "date": "2019-11-12", "score": 76.0, "where": "r/fantasybball"}, {"platform": "reddit", "title": "Trae Young's Stats with some Context to Previous All-Star Selections", "url": "https://www.reddit.com/r/nba/comments/f4xpjf/", "date": "2020-02-16", "score": 57.0, "where": "r/nba"}, {"platform": "reddit", "title": "nba_api: Helping Deliver OC Material and NBA Stats Data Analysis with Python", "url": "https://www.reddit.com/r/sportsbook/comments/dvbz1w/", "date": "2019-11-12", "score": 51.0, "where": "r/sportsbook"}, {"platform": "reddit", "title": "Stat Changes from Regular Season to Playoffs: 2022 - 2023 Season", "url": "https://www.reddit.com/r/nba/comments/14mpcgv/", "date": "2023-06-30", "score": 45.0, "where": "r/nba"}, {"platform": "reddit", "title": "[OC] Distribution of Average Lottery Pick Age in the Lottery Era (1985 - 2020)", "url": "https://www.reddit.com/r/nba/comments/k0f5vc/", "date": "2020-11-24", "score": 40.0, "where": "r/nba"}], "repos": [{"platform": "github", "title": "Hiflylabs/awesome-dbt", "url": "https://github.com/Hiflylabs/awesome-dbt", "date": "2026-11-02", "score": 1746.0, "where": null}, {"platform": "github", "title": "bttmly/nba", "url": "https://github.com/bttmly/nba", "date": "2023-07-11", "score": 735.0, "where": null}, {"platform": "github", "title": "bradleyfay/py-Goldsberry", "url": "https://github.com/bradleyfay/py-Goldsberry", "date": "2025-11-13", "score": 269.0, "where": null}, {"platform": "github", "title": "machina-sports/sports-skills", "url": "https://github.com/machina-sports/sports-skills", "date": "2026-11-02", "score": 262.0, "where": null}, {"platform": "github", "title": "shufinskiy/nba_data", "url": "https://github.com/shufinskiy/nba_data", "date": "2026-07-17", "score": 248.0, "where": null}, {"platform": "github", "title": "ynnadkrap/balldontlie", "url": "https://github.com/ynnadkrap/balldontlie", "date": "2024-02-11", "score": 223.0, "where": null}], "videos": [{"title": "How to Use nba_api for Analyzing Player Steals in NBA Seasons", "url": "https://www.youtube.com/watch?v=_WPUTZYVU2k", "channel": "vlogize", "date": "2025-04-07"}, {"title": "🏀 Learn How to Build an NBA Statistics Tracker in Python!", "url": "https://www.youtube.com/watch?v=dbIzRitMhsE", "channel": "DarkCodeYT", "date": "2024-11-19"}, {"title": "How to Access NBA Stats Play-by-Play Data with the \"Unofficial\" NBA API", "url": "https://www.youtube.com/watch?v=odCb5jczq9Y", "channel": "Learn With Jabe", "date": "2021-08-10"}, {"title": "SIMPLE NBA API DASHBOARD USING PYTHON | Pandas | Plotly Dash | Jupyter Dash | nba_api", "url": "https://www.youtube.com/watch?v=MkPk6EHDZ7A", "channel": "Alex Visbal", "date": "2021-07-24"}, {"title": "How to Scrape NBA Data Using the nba_api Python Module", "url": "https://www.youtube.com/watch?v=NCyPY-jfb3I", "channel": "Ken Jee", "date": "2019-12-23"}], "notes": "Client library for undocumented NBA.com endpoints; no hosted service. The 130+ endpoint count from batch hint not verified.", "checked_at": "2026-11-03", "alternatives": ["dunkapi", "nba-stats", "sportradar", "fastballapi", "nhl-web-api"], "fit": {"best_for": "Python developers who want a free wrapper around NBA.com stats endpoints for games, players, teams and play-by-play.", "not_for": "Production services needing guarantees or clear data rights; it is an unofficial client with no hosted service and no stated rights to the NBA data.", "use_cases": ["NBA stats analysis in Python", "Player and team dashboards", "Historical NBA research"], "limitations": ["Python client only, no hosted API", "Wraps undocumented NBA.com endpoints", "MIT licence covers code only, not the data", "Basketball (NBA) only"], "source_urls": ["https://github.com/swar/nba_api"]}, "score": {"overall": 63, "popularity": 62, "community": 49, "transparency": 75, "developer": 70, "confidence": "high", "reliability_flags": ["Bulk pulls are slow or time out"], "rank": 12}}