RapidOddsAPIRapidOddsAPI
Home/Sports/MLB
Baseball · sport_id MLB

MLB Odds API

Real-time MLB odds from 100+ bookmakers in one REST and WebSocket API. Moneyline, run lines, totals, first-5-innings markets and full batter and pitcher props across all 162 games a team plays.

Get Your Free API KeyRead the Docs

MLB odds, one standardised feed

A long baseball season means a lot of markets to watch. RapidOddsAPI pulls live MLB prices from over 100 bookmakers into one standardised feed, covering the full daily slate so you can compare moneylines, run lines and totals across every book at once.

Baseball props go deep, and so do we. The feed carries batter markets like hits, home runs, RBIs and total bases, plus pitcher markets like strikeouts and outs recorded, alongside first-5-innings and first-inning lines that the sport is built around.

MLB markets refresh frequently as first pitch nears, with lineups and pitching matchups moving prices throughout the day.

MLB markets covered

Request any combination of markets in a single call. Not every market is offered by every bookmaker, so check the full coverage page for live availability.

Game Markets
head_to_headMoneyline / match winner
alternate_linesRun line / handicap
alternate_total_runsOver/under total runs
head_to_head_1st_5_inningsMoneyline, first 5 innings
+ first-inning lines & team totals
Batter & Pitcher Props
batter_hitsBatter hits
batter_home_runsBatter home runs
batter_total_basesBatter total bases
pitcher_strikeoutsPitcher strikeouts
pitcher_outsPitcher outs recorded
+ RBIs, runs, walks & milestone markets

This is a selection. MLB also includes additional player props and milestone markets. See full MLB coverage →

Fetch MLB odds

One endpoint, one request. Put MLB in the path and pass the market_type and bookmaker params you want (repeat each to request several):

curl "https://api.rapidoddsapi.com/sports/MLB/markets?\ api_key=your_api_key&\ market_type=head_to_head&\ bookmaker=DraftKings&bookmaker=BetMGM&bookmaker=Bovada"

Example MLB response

Standardised JSON. Team names, player names and market keys are normalised across every bookmaker, so prices are directly comparable:

{ "sport": "MLB", "games": [ { "game": { "commence_time": "2026-07-04T23:10:00", "home_team": "Los Angeles Dodgers", "away_team": "New York Yankees" }, "bookmakers": [ { "name": "DraftKings", "last_update": "2026-07-04T22:38:44", "markets": [ { "key": "head_to_head", "outcomes": [ { "name": "Los Angeles Dodgers", "price": 1.74 }, { "name": "New York Yankees", "price": 2.10 } ] }, { "key": "pitcher_strikeouts", "outcomes": [ { "name": "Over", "player_name": "Tyler Glasnow", "price": 1.88, "point": 7.5 }, { "name": "Under", "player_name": "Tyler Glasnow", "price": 1.92, "point": 7.5 } ] } ] }, { "name": "Bovada", "last_update": "2026-07-04T22:37:59", "markets": [ { "key": "batter_home_runs", "outcomes": [ { "name": "Over", "player_name": "Aaron Judge", "price": 3.40, "point": 0.5 }, { "name": "Under", "player_name": "Aaron Judge", "price": 1.30, "point": 0.5 } ] } ] } ] } ] }

Why RapidOddsAPI for MLB

  • 100+ bookmakers in a single feed, including the major sportsbooks
  • Standardised team names, player names and market keys, comparable out of the box
  • Real-time updates that tighten as game time approaches
  • REST for polling, WebSocket for live push (Pro and Elite plans)
  • Simple credit-based pricing: credits = market_types × ⌈bookmakers / 5⌉

Other sports

NFL Odds APINBA Odds APINHL Odds APIAFL Odds APINRL Odds APISoccer Odds API

Start building with MLB odds

Real-time, standardised MLB odds from 100+ bookmakers via REST and WebSocket. Start free with 250 credits, no credit card required.

Get Your Free API KeyView Full Coverage