Skip to content

Data

NBA odds history

Each sportsbook's moneyline, spread and total for NBA games from 2013-14, with results against the line. Built for backtests. REST or MCP.

DunkAPI serves NBA betting lines by sportsbook: moneyline, point spread and total for 4 to 12 books per regular-season game from 2013-14 to 2023-24 (10 to 12 from 2020-21), and from the July 2020 restart opening and closing lines from the sportsbook odds archive: 1,176 to 1,322 games a season, a median of 7 books in 2020-21 to 2022-23 and 8 since 2023-24 (among them DraftKings, FanDuel, BetMGM, ESPN BET and Pinnacle).

get_odds returns every book for a game or a whole day, with implied probabilities and, for finished games, whether the home side covered and the total went over against the median closing line. The table below is read from the database.

Coverage by season

Counted from the database on November 22, 2026: finished regular-season and playoff games.

SeasonGamesCoveredRows
2027241100%1,928
20261,321100%10,561
20251,320100%10,406
20241,318100%19,568
20231,320100%22,794
20221,323100%21,712
20211,171100%17,672
20201,143100%8,483
20191,312100%8,008
20181,312100%7,780
20171,30997%11,383
20161,316100%8,120
20151,31197%5,034
20141,319100%5,242

How to get it

get_odds, 5 credits a call. A full 2026 season is 1,321 calls and 6,605 credits, which fits in one month of Starter ($19/mo). In Python, pip install dunkapi and set DUNKAPI_API_KEY.

curl -X POST https://mcp.dunkapi.com/v1/get_odds \
  -H "Content-Type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  -d '{
  "game_id": "401705127"
}'

What comes back

games[]List of objects
games[].game_id
games[].season
games[].season_type
games[].date
games[].starts_at
games[].status
games[].home
games[].home.team_id
games[].home.abbrev
games[].home.name
games[].home.score
games[].away
games[].away.team_id

Every field and a real response: get_odds docs.

Questions

How far back do the NBA odds go?

Lines start in 2012-13 with a few books; from 2013-14 most regular-season games have 4 to 12, rising to 10 to 12 from 2020-21. The sportsbook odds archive adds opening and closing lines for nearly every game from the July 2020 restart. The table shows the count per season.

Are these opening or closing lines?

From the July 2020 restart the sportsbook odds archive rows carry a separate opening and closing line per book. Daily-feed rows before 2023-24 are each book's final pregame line, stored as the close; that feed has opening and closing lines from 2023-24.

Do you have player props?

Yes, from May 2023: points, rebounds, assists, threes, blocks, steals and points + rebounds + assists, with get_player_props and get_prop_history. This page is moneylines, spreads and totals.

Is it free?

Every account gets 500 free credits every month and no card. One game's lines are 5 credits, a whole day 10.

What it will not do

  • No lines before 2012-13.
  • The daily feed is one or two books a game since 2024-25; the other books come from the sportsbook odds archive, which holds opening and closing lines from July 2020.
  • No alternate lines. Player props are a separate dataset, from May 2023.

Works with

Start with 500 free credits every month

No card. REST or MCP.