Skip to content

Data

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.

SeasonGamesCoveredRows
20262,448100%2,448
20252,477100%2,477
20242,47299%5,781
20232,471100%29,204
20222,470100%30,710
20212,46699%28,506
202095199%7,182
20192,46599%16,862
20182,44992%15,245
20172,47197%23,030
20162,46497%23,244
20152,48698%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.