NBA odds API
NBA odds API: real-time lines, player props, futures and in-play odds from every book that prices NBA, in one schema over REST and WebSocket.
The NBA is the busiest nightly odds market in American sports. From late October through mid-April there are games almost every night, each one priced by dozens of books before tip-off and repriced constantly once the ball goes up. Add a deep player props market and six DFS pick'em apps posting lines on the same players, and NBA odds data becomes one of the highest-volume feeds a sports product can consume.
Odds screens, props comparison tools, alert services, media sites and modeling teams all draw on it. The PreciseAPI NBA odds API returns moneylines, spreads and totals for the full game, first half and first quarter, alternate lines, team totals, player props and futures from 36 sources, normalized into one schema with stable team and player ids. Below is what the feed covers, how the NBA market behaves day to day, and working code to pull it.
What NBA markets does the API cover?
NBA main lines are defined for 7 periods: full_game (full game), 1h (1st half), 2h (2nd half), 1q (1st quarter), 2q (2nd quarter), 3q (3rd quarter) and 4q (4th quarter). NBA games are four 12-minute quarters, and books post separate first-half and first-quarter lines that move independently from the full game.
| Group | Market keys |
|---|---|
| Main lines | moneyline, spread, total |
| Alternate lines | alternate_spread, alternate_total, alternate_team_total |
| Team totals | team_total |
| Player props | player_points, player_rebounds, player_assists, player_threes, player_pra |
| Futures | outright (championship and MVP boards) |
NBA spreads, totals and moneylines work as they do in other sports: the moneyline is a price on the winner, the spread is a points handicap, and the total is a single over/under on combined points. Basketball scoring is frequent and in small increments, so NBA spreads do not cluster around a few key numbers the way football spreads do. Lines move in half-point steps with prices adjusting in between, and that makes alternate lines a natural fit for basketball screens.
NBA player props API
Player props are a large part of NBA betting, and /v1/props returns them from sportsbooks and DFS apps in one shape. Each prop market is one player and one stat, with a line, an over and an under. The five keys cover points, rebounds, assists, three-pointers made and points plus rebounds plus assists (player_pra). DFS sources include a variant field set to standard, goblin or demon, so a pick'em line can be compared with a sportsbook line of the same type.
Player ids are stable across books and seasons, and you can filter by player id or a name fragment with the player parameter. Props stay on the feed after tip-off for as long as each source keeps posting them, with in-play prices on the Syndicate plan. The props reference lists every parameter, and the player props glossary entry explains the market for non-bettors on your team.
NBA futures odds
/v1/futures?league=nba returns the championship board (fut_nba_championship) and the MVP board (fut_nba_mvp), each with every source's price for every entrant. Futures are open year-round and react to trades, injuries and the standings.
NBA prop keys
The catalog defines 42 player prop keys for the NBA. /v1/props returns one market per player and stat for the ones a sportsbook or DFS pick'em app has posted, so what a game carries varies:
| Market key | Stat |
|---|---|
player_points | Points |
player_rebounds | Rebounds |
player_assists | Assists |
player_threes | Threes made |
player_pra | Pts + Reb + Ast |
player_pts_reb | Pts + Reb |
player_pts_ast | Pts + Ast |
player_reb_ast | Reb + Ast |
player_blocks_steals | Blocks + Steals |
player_threes_attempted | Three-point attempts |
player_fantasy_score | Fantasy score |
player_blocks | Blocks |
player_steals | Steals |
player_turnovers | Turnovers |
player_fouls | Fouls |
player_minutes | Minutes |
player_double_double | Double-double |
player_triple_double | Triple-double |
player_twos_attempted | Two-point attempts |
player_twos_made | Two-pointers made |
player_fg_attempted | Field-goal attempts |
player_fg_made | Field goals made |
player_ft_attempted | Free-throw attempts |
player_ft_made | Free throws made |
player_points_protected | Points (participation protected) |
player_assists_protected | Assists (participation protected) |
player_rebounds_protected | Rebounds (participation protected) |
player_threes_protected | Threes made (participation protected) |
player_pra_protected | Pts + Reb + Ast (participation protected) |
player_pts_reb_protected | Pts + Reb (participation protected) |
player_pts_ast_protected | Pts + Ast (participation protected) |
player_reb_ast_protected | Reb + Ast (participation protected) |
player_double_double_kalshi_protected | Double Double (Kalshi protected) |
player_triple_double_kalshi_protected | Triple Double (Kalshi protected) |
player_threes_kalshi_protected | Threes (Kalshi protected) |
player_assists_kalshi_protected | Assists (Kalshi protected) |
player_blocks_kalshi_protected | Blocks (Kalshi protected) |
player_pra_kalshi_protected | Pra (Kalshi protected) |
player_points_kalshi_protected | Points (Kalshi protected) |
player_rebounds_kalshi_protected | Rebounds (Kalshi protected) |
player_steals_kalshi_protected | Steals (Kalshi protected) |
player_blocks_steals_kalshi_protected | Blocks Steals (Kalshi protected) |
Which sportsbooks price the NBA?
36 sources price the NBA:
| Group | Sources |
|---|---|
| Regulated US sportsbooks | FanDuel, DraftKings, BetMGM, Caesars, Fanatics, BetRivers, Hard Rock Bet, theScore Bet, BetParx, Circa |
| Sharp and offshore books | Pinnacle, BetOnline, Bovada, BookMaker, BetNow, BUSR, MyBookie, SportsBetting, Stake |
| Social and sweepstakes books | Rebet, Onyx Odds, Sportzino, Courtside |
| Exchanges | Novig, ProphetX, 4CX |
| Contract exchanges | Kalshi, Polymarket, Polymarket US, Fanatics Markets |
| DFS and pick'em apps | PrizePicks, Underdog, Sleeper, Dabble, Betr Picks, DraftKings Pick6 |
For game lines, many builders compare large retail books such as FanDuel with a low-margin reference like Pinnacle. Exchanges like Novig show order-book prices in the same structure, and DFS apps like Underdog appear in props responses next to sportsbook props for the same player.
How does the NBA betting market behave?
Three things shape NBA odds data more than anything else: the nightly schedule, player availability, and in-play speed.
The schedule is close to daily. Most nights have several games, and busy nights can have a dozen or more, with tip-offs staggered through the evening on the East Coast and continuing into late games out West. Lines for a given night are usually posted the day before or the morning of the game, which means your pipeline should always be ingesting the next slate while the current one plays out.
Player availability is the biggest driver of pre-game movement. The league requires teams to report injuries ahead of each game, and statuses are updated through game day. A star ruled out, a minutes restriction or a rest day on the second night of a back-to-back can move the spread, the total and dozens of props within minutes, often across every book. Late scratches close to tip-off are common enough that props tools need to handle markets disappearing as well as moving. When a book pulls a prop, it drops out of the response rather than lingering with a stale price.
In-play volume is high. Basketball has frequent scoring, and books reprice live spreads, totals and moneylines through every run, timeout and foul situation. Markets get suspended briefly around free throws and reviews. PreciseAPI excludes suspended markets by default and publishes in-play prices in under 500 ms, so a live NBA screen stays honest. Pre-match prices refresh every 1–2 seconds.
Period markets add another layer. First-quarter and first-half lines have their own lifecycle: they react to the same news as the full game, but they stop being relevant once their period is over. In stream deltas, markets that a book takes down arrive in the removed list, so your client should delete them rather than keep showing the last price. The same applies to full-game markets after the final buzzer.
The calendar also matters. The regular season runs 82 games from late October to mid-April, followed by the play-in tournament and the playoffs, with the Finals in June. Futures stay active through the draft and free agency in the summer, when there are no games to price.
For your architecture, that adds up to:
- A WebSocket connection from late afternoon through the last game each night, subscribed to main lines for
full_game,1hand1q. - Prop polling on a short interval in the hour before tip-off, when availability news lands. You can also stream props by adding
player_*keys to the subscription. - Webhooks on
line.movedif you only need to know about large moves rather than every tick.
How to use the NBA odds API
Authenticate with a bearer key against https://api.preciseapi.com. This request returns tonight's points props from one sportsbook and one DFS app:
curl "https://api.preciseapi.com/v1/props?league=nba&markets=player_points,player_pra&books=fanduel,prizepicks" \
-H "Authorization: Bearer $PRECISEAPI_KEY"
Each event in the response has a bookmakers array, and each prop market has a player object (id, name, team, position), a line and over/under outcomes. DFS markets also carry variant.
For real-time NBA odds, stream instead of polling (Syndicate plan). The NBA live odds API is a single WebSocket connection per app, not one per game. This Node example subscribes to NBA main lines for the full game, first half and first quarter, and checks sequence numbers so it knows when to resync:
import WebSocket from 'ws';
const ws = new WebSocket('wss://api.preciseapi.com/v1/stream', {
headers: { Authorization: `Bearer ${process.env.PRECISEAPI_KEY}` },
});
let lastSeq = 0;
ws.on('open', () => {
ws.send(JSON.stringify({
type: 'subscribe',
leagues: ['nba'],
markets: ['moneyline', 'spread', 'total'],
periods: ['full_game', '1h', '1q'],
}));
});
ws.on('message', (raw) => {
const msg = JSON.parse(raw);
const expected = msg.type === 'heartbeat' ? lastSeq : lastSeq + 1;
if (lastSeq && msg.seq !== expected) ws.send(JSON.stringify({ type: 'resync' }));
lastSeq = msg.seq;
if (msg.type === 'delta') {
for (const { event_id, book, market } of msg.changes) {
const prices = market.outcomes.map((o) => `${o.name} ${o.point ?? ''} ${o.price}`);
console.log(event_id, book, market.key, market.period, prices.join(' | '));
}
}
});
The stream starts with a snapshot in the same shape as /v1/odds, then sends only changed markets. Our post on real-time odds over WebSockets in Node covers reconnects and backoff in more detail. For movement after the fact, /v1/history returns the open, current value and every recorded change for main full-game markets.
What you can build with NBA odds data
- A nightly odds screen with full-game, first-half and first-quarter tabs, backed by the live odds API.
- Props comparison tools, built on the player props API, that place sportsbook props next to pick'em lines for the same player. The article on DFS pick'em lines vs sportsbook props explains how the two differ.
- Alert services that notify users when a player is ruled out and lines shift across books.
- Models and backtests that use opening and closing lines from history across a full season.
- Media widgets that show the current spread and MVP prices beside game coverage.
You can check NBA lines for free in the Sandbox chat or with your free API key. When you go to production, Edge adds 100,000 credits a month with futures and line history, Sharp adds unlimited credits, and Syndicate adds in-play odds and the WebSocket stream. The pricing page has the details.
NBA and team names are trademarks of their respective owners and are used here only to identify the data. PreciseAPI is not affiliated with or endorsed by the National Basketball Association.
Frequently asked questions
Is there a free NBA odds API?
You can try the data for free. The PreciseAPI Sandbox needs no card and includes 50 credits for the Sandbox chat in your dashboard, which answers plain-English questions about pre-game lines across every league, book and market, including NBA props. They also work on the API with your free key, at the same credit costs as paid plans. Get access to start asking about NBA lines.
How fast do NBA odds update?
In-play prices are delivered in under 500 ms and pre-match prices refresh every 1–2 seconds. On Syndicate, the WebSocket stream batches changes and pushes them as sequence-numbered deltas, so you only receive markets that moved.
Which books and markets does the NBA odds API include?
36 sources, including regulated US books, sharp and offshore books, betting exchanges, contract exchanges and DFS apps. Markets cover moneyline, spread and total for the full game, first half and first quarter, plus alternates, team totals, 42 player prop markets and championship and MVP futures.
Are NBA player props available live?
Yes, on the Syndicate plan, which adds in-play odds. Props stay on the feed after tip-off for as long as each source keeps posting them; a prop its source stops posting is suspended and hidden unless you pass include_suspended=true. Main lines for every period update in-play on Syndicate too.
Can I get NBA lines in decimal or probability format?
Yes. Add format=decimal or format=probability to any odds, props, futures or best-lines request. The default is American odds.
Does the NBA betting API include DFS pick'em lines?
Yes. PrizePicks, Underdog, Sleeper and three other DFS apps are returned through /v1/props in the same shape as sportsbook props, with a variant field that marks standard, goblin and demon lines.