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
| Markets | h2h (moneyline), spreads, and totals |
| Plans | Free (moneylines) and every paid plan |
| Player props | Served via /props/ (Business) |
| Historical archive | Snapshots via /historical/odds (Business) |
| Intelligence | Pinnacle-anchored edges + fair odds (Business) |
| Books | US 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