MLB odds history
Each sportsbook's moneyline, run line and total for MLB games, with whether the favourite won and the total went over. Built for backtests. REST or MCP.
FastballAPI serves MLB betting lines by sportsbook: moneyline, run line and total, for 4 to 13 books per game from 2015 to 2023 (about 4 in 2015, 10 in 2016 and 2017, 7 to 8 in 2018 to 2020 and 12 in 2021 to 2023), and opening and closing lines from 2024, usually from one book (ESPN BET, later DraftKings).
get_odds returns every book for a game or a whole day, with implied probabilities and, for finished games, whether the favourite won and the total went over against the median close. The table below is read from the database.
Coverage by season
Counted from the database on October 8, 2026: finished regular-season and playoff games.
| Season | Games | Covered | Rows |
|---|---|---|---|
| 2026 | 2,448 | 100% | 2,448 |
| 2025 | 2,477 | 100% | 2,477 |
| 2024 | 2,472 | 99% | 5,781 |
| 2023 | 2,471 | 100% | 29,204 |
| 2022 | 2,470 | 100% | 30,710 |
| 2021 | 2,466 | 99% | 28,506 |
| 2020 | 951 | 99% | 7,182 |
| 2019 | 2,465 | 99% | 16,862 |
| 2018 | 2,449 | 92% | 15,245 |
| 2017 | 2,471 | 97% | 23,030 |
| 2016 | 2,464 | 97% | 23,244 |
| 2015 | 2,486 | 98% | 9,712 |
How to get it
get_odds, 5 credits a call. A full 2026 season is 2,448 calls and 12,240 credits, which fits in one month of Pro ($49/mo).
curl -X POST https://mcp.fastballapi.com/v1/get_odds \
-H "Content-Type: application/json" \
-H "x-api-key: YOUR_API_KEY" \
-d '{
"game_id": "401569531"
}'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.runs | |
| games[].home.hits | |
| games[].home.errors |
Every field and a real response: get_odds docs.
Questions
How far back do the MLB odds go?
The table shows the books per game for every season loaded.
Are these opening or closing lines?
Before 2024 the source keeps each book's final pregame line, which we store as the close. From 2024 there are separate opening and closing lines.
Do you have player props?
No. Moneylines, run lines and totals only.
What it will not do
- Since 2024 most games have one book.
- No player props or alternate lines.
Works with
Start with 500 free credits
No card. REST or MCP.