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 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.

SeasonGamesCoveredRows
20262,469100%19,730
20252,477100%19,755
20242,472100%22,201
20232,471100%40,764
20222,470100%42,103
20212,466100%40,643
2020951100%11,661
20192,46599%16,862
20182,44992%15,245
20172,47197%23,030
20162,46497%23,244
20152,46698%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.