Best NBA and basketball APIs in 2026

NBA data ranges from free box scores to official play-by-play with tracking. We compared the basketball APIs on stats depth, live speed, history, odds and props, and price.

  • 8APIs ranked
  • 8with a free tier or trial
  • 6publish their prices
  • Nov 2026prices checked on vendor sites

Key takeaways

  • BALLDONTLIE for builders, Sportradar for operators — Indie apps and AI projects start on BALLDONTLIE; sportsbooks and broadcasters need Sportradar's official feed.
  • Free NBA stats are deep but unofficial — nba_api exposes NBA.com tracking data for free, but it is not licensed and breaks without warning.

The 8 best NBA APIs compared

How we ranked. Stats depth (box scores, play-by-play, tracking), live latency, history, odds and props, pricing transparency and free access. Checked on each provider's site, 22 November 2026.

#APIBest forCoverageFree tier / trialPaid from
1 BALLDONTLIESelf-serve Best overall NBA API for developers NBA since 1946, WNBA, NCAA, EuroLeague, Liga ACB5 requests/min (teams, players, games)$9.99/mo per league (ALL-STAR)
2 SportradarEnterprise Best official NBA data NBA, WNBA, G League, NCAA, global basketball30-day trial: 1,000 requests per 30 days at 1 request/secondQuote only
3 SportsDataIOSelf-serve + sales Best for NBA fantasy and betting apps NBA, WNBA, NCAA basketballFree trial with scrambled data, no card; Discovery Lab gives last season freeDiscovery Lab for personal use; commercial by quote
4 API-Football (API-Sports)Self-serve Best budget NBA API API-NBA and API-Basketball (global leagues)100 requests/day, all endpoints and competitions, no card$19/mo (Pro, 7,500 requests/day)
5 MySportsFeedsSelf-serve Best budget NBA feed with clear pricing NBAFree trial on request; personal use from $5/mo$25–49/mo per league (commercial, non-live)
6 nba_api (NBA.com stats)Free / open data Best free NBA stats depth NBA.com stats endpoints: box scores, play-by-play, shot chartsFreeFree
7 HighlightlySelf-serve Best NBA API with highlights NBA and NCAAB100 requests/day per sport, no card$5.99/mo
8 Entity SportSelf-serve Best for fantasy apps outside the US NBAFree development token with past competitions$150/mo (Cricket Starter)

The 8 picks reviewed

1

BALLDONTLIE

Best overall NBA API for developers

Visit site ↗

Clean NBA data back to 1946, odds and props, webhooks and an MCP server. ALL-STAR is $9.99 a month, GOAT $39.99 for every endpoint at 600 requests a minute.

Started as a free NBA API and grew into a 40+ API platform. Paid tiers are per league: ALL-STAR $9.99 (60 requests/min), GOAT $39.99 (600 requests/min), or ALL-ACCESS at $299.99 for every league. It is the most AI-agent-friendly API here, with an MCP server and full OpenAPI specs.

Coverage
NBA since 1946, WNBA, NCAA, EuroLeague, Liga ACB
Free tier / trial
5 requests/min (teams, players, games)
Paid from
$9.99/mo per league (ALL-STAR)
Delivery
REST JSON, webhooks, MCP server, OpenAPI specs
Model
Self-serve
Based in
USA

Strengths

  • Cheap, clean NBA data back to 1946
  • MCP server and OpenAPI specs make AI-built apps easy
  • Webhooks for live events instead of polling

Watch-outs

  • Per-league pricing adds up for multi-sport apps
  • Free tier is very limited (5 requests/min, three endpoints)
  • 7-day trial needs a payment method
2

Sportradar

Best official NBA data

Visit site ↗

Official NBA data partner with push feeds, Synergy and images. The enterprise choice; trial with production data for 30 days.

The largest sports data company and an official data partner of leagues including the NBA, NHL and MLB. Its developer portal lets anyone start a 30-day trial with production data at low rate limits, then pricing goes through sales. It now ships an MCP server for AI agents.

Coverage
NBA, WNBA, G League, NCAA, global basketball
Free tier / trial
30-day trial: 1,000 requests per 30 days at 1 request/second
Paid from
Quote only
Delivery
REST JSON/XML, push feeds, MCP server
Model
Enterprise
Based in
St. Gallen, Switzerland

Strengths

  • Official league data and the widest coverage on the market
  • Trial uses real production data, not samples
  • Push feeds, images, probabilities and betting products under one roof

Watch-outs

  • No published pricing; budgets typically start well above self-serve APIs
  • Some products (push feeds, live odds, Statcast) are not available on trial
  • Contracts and approval steps slow down small teams
3

SportsDataIO

Best for NBA fantasy and betting apps

Visit site ↗

Projections, DFS slates, injuries and odds alongside stats. Free scrambled trial, commercial by quote.

US-focused provider behind many fantasy and betting apps. The free trial returns scrambled but structurally real data so you can build against it. Discovery Lab sells real data for personal projects; commercial feeds need a sales conversation.

Coverage
NBA, WNBA, NCAA basketball
Free tier / trial
Free trial with scrambled data, no card; Discovery Lab gives last season free
Paid from
Discovery Lab for personal use; commercial by quote
Delivery
REST JSON/XML
Model
Self-serve + sales
Based in
Minneapolis, USA

Strengths

  • Excellent US coverage: projections, DFS slates, injuries, odds
  • Free trial covers all endpoints with realistic data shapes
  • Replay tool to test live workflows off-season

Watch-outs

  • Commercial pricing is not published
  • Trial data is scrambled, so it is not usable in production
  • Global football coverage is thinner than European specialists
4

API-Football (API-Sports)

Best budget NBA API

Visit site ↗

API-Sports runs separate NBA and global basketball APIs with the same free 100-requests-a-day model as API-Football.

The best-known budget sports API. Every plan, including the free one, includes all competitions and endpoints; you pay for request volume. Pro is $19 for 7,500 requests a day, Ultra $29 for 75,000, Mega $39 for 150,000. Live data refreshes every 15 seconds and pre-match and live odds are included.

Coverage
API-NBA and API-Basketball (global leagues)
Free tier / trial
100 requests/day, all endpoints and competitions, no card
Paid from
$19/mo (Pro, 7,500 requests/day)
Delivery
REST JSON, direct or via RapidAPI
Model
Self-serve
Based in
France

Strengths

  • Cheapest serious football API: $19 a month buys production-level volume
  • One account unlocks 12 API-Sports products
  • Odds, predictions and live data on every plan

Watch-outs

  • Data depth and accuracy trail premium feeds in lower leagues
  • Free plan only covers recent seasons
  • Each sport is a separate API and subscription
5

MySportsFeeds

Best budget NBA feed with clear pricing

Visit site ↗

NBA core feeds from $29 a month commercial, or $5 for personal use. Add box scores, DFS and odds as add-ons.

Budget US-league feeds with clear commercial pricing: NHL from $25, NBA $29, MLB $35, NFL $39 and NCAA $49 per month for core non-live feeds. Add-ons cover stats, box scores, DFS slates, odds and projections.

Coverage
NBA
Free tier / trial
Free trial on request; personal use from $5/mo
Paid from
$25–49/mo per league (commercial, non-live)
Delivery
REST JSON/XML/CSV
Model
Self-serve
Based in
Canada

Strengths

  • Published commercial prices per league
  • Personal-use pricing from $5 a month
  • Multi-league discounts up to 30%

Watch-outs

  • Only US leagues
  • Live and near-real-time access costs more than the base price
  • Two most recent seasons by default; history is extra
6

nba_api (NBA.com stats)

Best free NBA stats depth

Visit site ↗

Free Python access to NBA.com stats, shot charts and tracking. Unofficial and rate-limited by NBA.com.

Popular open-source Python client for the stats endpoints behind NBA.com. Great for analysis; not an official or supported API.

Coverage
NBA.com stats endpoints: box scores, play-by-play, shot charts
Free tier / trial
Free
Paid from
Free
Delivery
Python client for NBA.com endpoints
Model
Free / open data
Based in
Open source

Strengths

  • Deepest free NBA stats, including tracking data
  • Large community and examples

Watch-outs

  • Unofficial: endpoints change and requests get blocked
  • Not licensed for commercial redistribution
7

Highlightly

Best NBA API with highlights

Visit site ↗

Box scores plus highlight video links, free for 100 requests a day.

Low-cost sports API that bundles video highlight links with match data. Every sport has a free 100-request daily tier; paid plans start at $5.99 a month.

Coverage
NBA and NCAAB
Free tier / trial
100 requests/day per sport, no card
Paid from
$5.99/mo
Delivery
REST JSON, direct or via RapidAPI
Model
Self-serve
Based in
Not disclosed

Strengths

  • Video highlights plus stats in one subscription
  • Cheap entry point for many sports
  • Annual billing up to 40% off

Watch-outs

  • Smaller provider with less track record
  • Plan limits above the free tier are not clearly published
8

Entity Sport

Best for fantasy apps outside the US

Visit site ↗

NBA plan at $500 a month with 2 million calls, aimed at fantasy operators.

Cricket-first provider built for fantasy apps. Cricket plans run Starter $150 (internationals, 500K calls), Pro $250 (adds T20 and T10 leagues) and Elite $450 (adds List A and first-class, fantasy points and commentary).

Coverage
NBA
Free tier / trial
Free development token with past competitions
Paid from
$150/mo (Cricket Starter)
Delivery
REST JSON
Model
Self-serve
Based in
India

Strengths

  • Fantasy points API built in on higher tiers
  • Ball-by-ball commentary plans
  • Annual billing gives two months free

Watch-outs

  • Expensive for small apps compared with Sportmonks Cricket
  • Free token only covers past competitions

More sports API lists

Frequently asked questions

What is the best NBA API?

BALLDONTLIE is the best NBA API for most developers, with history back to 1946 and plans from $9.99 a month. Sportradar is the official NBA data partner for enterprise use.

Is there a free NBA API?

BALLDONTLIE has a free tier (teams, players, games at 5 requests a minute), API-Sports offers 100 free requests a day, and the open-source nba_api reads NBA.com stats for free.

Does the NBA have an official API?

The NBA does not offer a public developer API. Official data is licensed through Sportradar. NBA.com's stats endpoints are undocumented.

Prices exclude VAT and were checked on each provider's own website on 22 November 2026. Providers change plans often; confirm current terms before you buy. Corrections: [email protected].