NBA Odds API
Our NBA odds API delivers National Basketball Association odds, player props, status and results for every game from 25 bookmakers, 21 of them Australian. leagueID=NBA. Free tier available.
Whether you're building a betting app, an odds comparison tool or a pricing model, the NBA odds API gives you structured data in the SportsGameOdds v2 shape so you can move fast.
NBA Odds API Features
Every endpoint is filterable, so you pull exactly the markets you need. Coverage spans 2 teams and 1 event currently carried, with 36 market families.
Available NBA betting markets include:
- Head to head / moneylines (2-way and 3-way markets)
- Lines, spreads and handicaps
- Totals (over/under)
- Alternative lines
- Player props and game props
- Period-specific markets (
1h,1q,2h,2q,3q,4q,reg)
All market data is pre-match, refreshed every ~2 minutes; see pricing for what each plan can see.
NBA Player Props API
Access 26 NBA player proposition markets through the same endpoint — Points / score, Assists, Blocks, Steals, Rebounds, First basket — for every player the books price. See the player prop odds API for the market list across every sport.
Filter by playerID, stat type or bookmaker to return only the props you need.
NBA Odds API with Results
SockOdds delivers NBA odds and event data together in one response — no need to stitch data from multiple sources. Each response includes:
- Upcoming NBA events with status flags
- Home and away team data with ids
- Players with production ids where present
- Full odds coverage: lines, totals, head to head, props and alternative lines
- Results and
scoringSupportedflags where the source grades
Line movement tracking is yours to build: every bookmaker entry carries lastUpdatedAt, and finished events are retained.
Quick start: your first NBA odds API call
Getting NBA odds takes a single HTTP request:
https://api.sockodds.com/v2/events?apiKey=YOUR_API_KEY&oddsAvailable=true&leagueID=NBA&limit=10This returns all available markets — lines, totals, head to head and props — for upcoming NBA events.
To narrow to a specific market, use the oddID parameter, with PLAYER_ID standing for every player:
https://api.sockodds.com/v2/events?apiKey=YOUR_API_KEY&oddsAvailable=true&leagueID=NBA&oddID=points-PLAYER_ID-game-ou-over&includeOpposingOdds=trueOddIDs follow the format {statID}-{statEntityID}-{periodID}-{betTypeID}-{sideID}, where the entity is a player for props and home, away or all for team and game markets.
Tips to keep responses fast:
- Add
bookmakerID=betdeluxe,sportsbetto limit to the bookmakers you care about - Use
includeOpposingOdds=trueso you only need to specify one side of a market - Keep your
oddIDlist tight — only request markets you're actively using
What a NBA response looks like
Every event returns an odds object keyed by oddID. Here's a real market from the feed with the bookmaker list cut to two books:
{
"eventID": "nba_2026-06-13_new_york_knicks_at_san_antonio_spurs",
"leagueID": "NBA",
"odds": {
"points-all-game-eo-odd": {
"oddID": "points-all-game-eo-odd",
"opposingOddID": "points-all-game-eo-even",
"marketName": "Odd/Even Total Points",
"statID": "points",
"statEntityID": "all",
"periodID": "game",
"betTypeID": "eo",
"sideID": "odd",
"fairOdds": null,
"bookOdds": "-118",
"byBookmaker": {
"tab": {
"odds": "-118",
"available": true
},
"unibet": {
"odds": "-122",
"available": true
}
}
}
}
}Two things worth noting. Odds values are strings, not numbers, so -108 arrives as "-108" — that keeps the leading + intact on underdog prices — and every book also carries decimal, because Australian books quote decimal. bookOdds is the consensus with the vig left in; fairOdds is the de-vigged price on Base and above, null where it cannot be computed.
NBA Odds API Technical Specifications
API Architecture
- REST API — Simple HTTP endpoints with JSON responses, identical to the SportsGameOdds v2 paths
- Polling, not push — the feed refreshes every ~2 minutes;
/v2/stream/eventsis reserved and answers 501 rather than pretending - Rate limits — per-key, per-minute meters that bind under concurrency; plans sized to your usage
- Authentication — secure API key access via the
x-api-keyheader orapiKeyquery parameter
Data Update Speed
- Odds updates — every ~2 minutes across every bookmaker lane
- Event status —
statusflags andinfo.staletell you exactly how current a price is
Developer Resources
- Interactive documentation — live examples, copy-paste snippets and an AI (vibe coding) context
- SDKs & libraries — the SportsGameOdds SDKs for TypeScript, Python, Ruby, Go and Java work unchanged with the base URL pointed here
- Postman collection — pre-built requests ready to run
- Support — email support on every plan, priority on paid plans
NBA betting market coverage in the SockOdds API, by category
| Market category | Example markets | Markets | Availability | Typical bookmakers |
|---|---|---|---|---|
| Full game lines | Points / score O/U, Points / score line, Points / score 1X2, Points / score | 13 oddIDs | Pre-match | BetFocus, MintBet, Dabble, Picklebet, BetDeluxe, BetRight |
| Period markets | Points / score O/U, Points / score 1X2, Points / score line, Points / score | 74 oddIDs | Pre-match | BetDeluxe, Neds, TABtouch, Unibet, TAB, Sportsbet |
| Team & game specials | Points / score, First to 15, First to 20, First to 25 | 12 oddIDs | Pre-match | BetFocus, MintBet, BetDeluxe, PointsBet, Sportsbet, TAB |
| Player props | Points / score O/U, Assists O/U, Blocks O/U, Steals O/U, Rebounds O/U, Double-double yes/no, Triple-double yes/no | 24 oddIDs | Pre-match | Sportsbet, Ladbrokes, Neds, BetDeluxe, BetFocus, MintBet |
| Scorer props | First basket yes/no | 2 oddIDs | Pre-match | BetDeluxe |
See every NBA market with its exact oddID in the markets browser.
Use Cases
- Arbitrage & +EV tools — compare NBA odds across every Australian bookmaker to uncover arbitrage opportunities and positive expected value angles.
- Odds comparison platforms — display NBA odds from every book side by side for comprehensive line shopping.
- Pricing models & trading — use NBA market data as inputs for proprietary pricing algorithms and betting strategies.
- Sports analytics & research — examine NBA line movements and betting-market patterns, and build predictive models on retained events.
- Betting automation — build systems that monitor NBA lines across bookmakers and trigger actions when your target odds appear.
- Sportsbook & fantasy apps — power your NBA product with reliable odds, status and bet-slip deeplinks.
NBA Odds API Documentation
Our interactive documentation covers everything you need to integrate NBA odds into your project:
- Full endpoint reference with parameters and response schemas
- Live request and response examples
- Code snippets in Python, JavaScript, Ruby, Go and Java
- Authentication setup and API key management
- Rate limiting and the
noticefield - Error handling and troubleshooting
For more on querying /v2/events with NBA-specific examples, see the API documentation.
Frequently asked questions
What NBA betting markets does the API cover?
125 distinct markets right now: Points / score, Assists, Blocks, First to 15, First to 20, First to 25, Steals, Rebounds and more — pre-match, across 25 bookmakers.
Does the API cover props, status and results in one feed?
Yes, from the same request. A single /v2/events call returns the game lines, the props, the event status and the results the source has, so there is no separate results API to reconcile. Each market carries scoringSupported and the event carries status.finalized.
How often is NBA odds data updated?
Every ~2 minutes across every bookmaker lane. Each bookmaker entry carries lastUpdatedAt.
Can I get historical NBA odds data?
Finished events are retained, so your archive starts when you start pulling. Opening and closing lines are not snapshotted yet.
Is there a free trial?
Yes — a free Lite key covers AFL and NRL; Base unlocks every league including NBA. Get a key →
Which bookmakers are included?
25 bookmakers price NBA, 21 of them Australian: BetDeluxe, Sportsbet, BetFocus, MintBet, Neds, TAB, TABtouch, Unibet and more.
Are live NBA odds available?
Event status is live; prices are pre-match first and refresh every ~2 minutes.
How are markets identified in the API?
Every market uses a structured oddID in the format {statID}-{statEntityID}-{periodID}-{betTypeID}-{sideID} — for example points-PLAYER_ID-game-ou-over. The same pattern lets you construct, filter and parse markets programmatically.
Can I compare bookmaker odds?
Yes — every market returns prices from every supporting bookmaker under one oddID, so lining up the best available price across BetDeluxe, Sportsbet, BetFocus, MintBet and the rest is straightforward.
Start building today
Free plan available. Set up in 5 minutes. Scale when you're ready.