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 the sportsbook odds archive since July 2020 (about 2,500 games a season, a median of 7 books in 2021 to 2023 and 8 since 2024).
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 November 22, 2026: finished regular-season and playoff games.
| Season | Games | Covered | Rows |
|---|---|---|---|
| 2026 | 2,469 | 100% | 19,730 |
| 2025 | 2,477 | 100% | 19,755 |
| 2024 | 2,472 | 100% | 22,201 |
| 2023 | 2,471 | 100% | 40,764 |
| 2022 | 2,470 | 100% | 42,103 |
| 2021 | 2,466 | 100% | 40,643 |
| 2020 | 951 | 100% | 11,661 |
| 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,466 | 98% | 9,632 |
How to get it
get_odds, 5 credits a call. A full 2026 season is 2,469 calls and 12,345 credits, which fits in one month of Pro ($49/mo). In Python, pip install fastballapi and set FASTBALLAPI_API_KEY.
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?
From July 2020 the sportsbook odds archive rows carry a separate opening and closing line per book. Daily-feed rows before 2024 are each book's final pregame line, stored as the close; that feed has opening and closing lines from 2024.
Do you have player props?
Yes, from May 2023: hits, home runs, total bases, RBI, pitcher strikeouts and pitcher outs, with get_player_props and get_prop_history. This page is moneylines, run lines and totals.
What it will not do
- The daily feed is mostly one book since 2024; the other books come from the sportsbook odds archive, 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.