balldontlie (NBA)
NBA teams, players, games, and box-score stats going back to 1946. Ran fully open for years before adding mandatory free accounts in 2024 — still the most usable basketball API given stats.nba.com blocks datacenter IPs.
🟢 Online · 26 ms
100%
Free account key, 5 requests/minute; higher tiers paid
API key
Is balldontlie (NBA) down right now?
No — balldontlie (NBA) was up at our last check (Sun, 06 Dec 2026 00:41 UTC): HTTP 401 in 26 ms — an authentication challenge, which means the service is answering. It answered 100% of our hourly checks over the last 30 days.
We check every tracked API hourly from Cloudflare's network; this page is rebuilt every few hours. For the value right now, query the public JSON API or the MCP server.
Free alternatives (live ranking)
- TheSportsDB — 🟢 Online · Free test key for development; Patreon key required for production
- football-data.org — 🟢 Online · Free tier: 12 competitions, 10 calls/minute, free key
Compare balldontlie (NBA) with…
- balldontlie (NBA) vs TheSportsDB — Free test key for development; Patreon key required for production
- balldontlie (NBA) vs football-data.org — Free tier: 12 competitions, 10 calls/minute, free key
Paid alternatives
- balldontlie ALL-STAR — from $9.99/mo
Frequently Asked Questions
Does balldontlie (NBA) require an API key?
Yes, balldontlie (NBA) requires a free API key. You can sign up via https://docs.balldontlie.io/.
What is balldontlie (NBA)'s free tier?
Free account key, 5 requests/minute; higher tiers paid
Is balldontlie (NBA) down right now?
At our last check (Sun, 06 Dec 2026 00:41 UTC) balldontlie (NBA) was up, with HTTP 401 in 26 ms. We check it every hour, and it answered 100% of checks over the last 30 days.
Implementation notes
When to use balldontlie (NBA)
balldontlie is the most usable free NBA API: teams, players and games with data back to 1946, served as clean, consistently documented JSON. It ran fully open for years and added mandatory free accounts in 2024; today a free key gives you 5 requests per minute against the Teams, Players and Games endpoints only. Per-game player stats sit on the ALL-STAR tier, while box scores, season averages, standings, leaders and betting odds need GOAT. That makes the free tier right for schedule and results widgets, roster pages, an overnight game-log backfill or a teaching project, and wrong for anything that needs stats or live refresh. It matters because the obvious alternative is worse: stats.nba.com still serves JSON but blocks datacentre IP ranges, so code that works from your laptop fails in production. balldontlie runs APIs for other sports as well, but a paid tier bought for the NBA does not carry over to them.
Common pitfalls
- Send the key exactly as the docs show: Authorization: YOUR_KEY, with no Bearer prefix. Most HTTP clients and API tutorials default to Bearer tokens, so check the header your client actually sends before deciding the key itself is wrong.
- A 401 has two meanings. The docs use it both for a missing key and for an endpoint your tier cannot access, so a free key calling /stats (ALL-STAR) or box scores (GOAT) gets the same response as no key at all. Check the tier table before debugging authentication.
- Tutorials written before 2024 point at www.balldontlie.io/api/v1 with no key. That URL now returns the website's HTML 404 page, so JSON.parse throws on a leading angle bracket and the failure looks like a parsing bug. The current base is api.balldontlie.io/v1.
- Pagination is cursor-based. Responses carry meta.next_cursor, per_page defaults to 25 and caps at 100, and there is no page number to jump to. At 5 requests a minute a multi-season backfill is a long sequential job — run it on a schedule that resumes from the last stored cursor, never at request time.
- Seasons are named by their starting year, so seasons[]=2024 is the 2024-25 season. Array parameters use bracket syntax, which curl treats as a glob pattern unless you pass -g, so command-line experiments fail before a request is even sent.
Quick start (bash)
# the key goes in Authorization as-is - no Bearer prefix
curl -s -H 'Authorization: YOUR_KEY' 'https://api.balldontlie.io/v1/teams' | jq '.data[0]'
# -g stops curl globbing the [] params; season 2024 means 2024-25; follow meta.next_cursor to page
curl -s -g -H 'Authorization: YOUR_KEY' 'https://api.balldontlie.io/v1/games?seasons[]=2024&team_ids[]=14&per_page=100' | jq '.meta' Embed this badge
Add a live status badge to your README, docs, or website.
Markdown
[](https://freeapi.watch/balldontlie) HTML
<a href="https://freeapi.watch/balldontlie"><img src="https://api.freeapi.watch/badge/balldontlie.svg" alt="balldontlie (NBA) Status"/></a>