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.
| Season | Games | Covered | Rows |
|---|---|---|---|
| 2027 | 241 | 100% | 1,928 |
| 2026 | 1,321 | 100% | 10,561 |
| 2025 | 1,320 | 100% | 10,406 |
| 2024 | 1,318 | 100% | 19,568 |
| 2023 | 1,320 | 100% | 22,794 |
| 2022 | 1,323 | 100% | 21,712 |
| 2021 | 1,171 | 100% | 17,672 |
| 2020 | 1,143 | 100% | 8,483 |
| 2019 | 1,312 | 100% | 8,008 |
| 2018 | 1,312 | 100% | 7,780 |
| 2017 | 1,309 | 97% | 11,383 |
| 2016 | 1,316 | 100% | 8,120 |
| 2015 | 1,311 | 97% | 5,034 |
| 2014 | 1,319 | 100% | 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.