Sports coverage

MLB Odds API: live lines, one call.

Last updated 2026-07-04

Live MLB h2h (moneyline), spreads, and totals from multiple sportsbooks, normalized into one JSON response. Sport key: baseball_mlb.

MLB is one of the two free-tier sports, and the deepest summer market: full-season daily slates, batter and pitcher props on Business, and first-5-innings markets via /period-markets/.

What's covered

Marketsh2h (moneyline), spreads, and totals
PlansFree (moneylines) and every paid plan
Player propsServed via /props/ (Business)
Historical archiveSnapshots via /historical/odds (Business)
IntelligencePinnacle-anchored edges + fair odds (Business)
BooksUS retail plus UK, EU, and AU books where the sport is quoted; filter with regions= and bookmakers=

First call

curl "https://api.theoddsapi.com/odds/?sport_key=baseball_mlb" \
  -H "x-api-key: YOUR_API_KEY"

Returns upcoming and in-play MLB events with every tracked book's current prices. Free key in minutes, no credit card. Full parameters in the API reference.

Questions

How do I get MLB odds from an API?

Request https://api.theoddsapi.com/odds/?sport_key=baseball_mlb with your key in the x-api-key header. The response contains every tracked bookmaker's current h2h (moneyline), spreads, and totals prices for each upcoming MLB event, normalized into one JSON shape.

Which plan do I need for MLB?

MLB core odds are available on: Free (moneylines) and every paid plan. Player props, edge detection, fair odds, and the historical archive require Business.

All sports: coverage hub · Definitions: glossary · Do the math: calculators