Baseball Odds API

Access baseball betting odds from 25 bookmakers through the SockOdds API. Get baseball odds for every game including head to head, lines, totals, player props and more — sportID=BASEBALL.

Baseball Odds API Features

Our baseball odds API is fully filterable, so you pull exactly the data you want — games, player props, teams or specific markets. Curate the feed to your needs with the same parameters SportsGameOdds developers already know.

276 distinct markets are priced across 1 league right now:

  • Head to head / moneylines (2-way and 3-way markets)
  • Lines, spreads and handicaps
  • Totals (over/under)
  • Alternative lines
  • Player props and game props
  • Period-specific markets (innings and first-five)

Baseball leagues

LeagueleagueIDEventsMarketsBookmakers
MLBMLB8527620

Baseball Player Props

Access 36 baseball player proposition markets — hits, home runs, RBIs, total bases, strikeouts, outs recorded and walks — pre-match across every game the Australian books price. See the player prop odds API for the full market list by sport and how to filter props in a single request.

Baseball API Odds with Results

SockOdds delivers baseball odds and event data in one configuration:

  • Upcoming games with status flags
  • Home and away teams with ids
  • Players with production ids where the source carries them
  • Baseball odds including lines, totals, head to head, player props and more
  • Results and grading flags where the source has them

Quick start: your first Baseball odds API call

https://api.sockodds.com/v2/events?apiKey=YOUR_API_KEY&oddsAvailable=true&sportID=BASEBALL&limit=10

Or one league at a time, which is faster:

https://api.sockodds.com/v2/events?apiKey=YOUR_API_KEY&oddsAvailable=true&leagueID=MLB&limit=10

Stats priced in baseball

statIDNameMarketsLevels
pointsPoints / score19,138all, team, player
batting_hitsHits4,992all, team, player
batting_homeRunsHome runs3,140player
batting_RBIRBIs3,026player
batting_totalBasesTotal bases3,008player
batting_doublesDoubles2,926player
batting_singlesSingles2,730player
batting_triplesTriples1,362player
batting_hits+runs+rbiHits + runs + RBIs966player
batting_strikeoutsBatter strikeouts888player
marginMargin850team
batting_stolenBasesStolen bases766player
batting_basesOnBallsWalks690player
pitching_strikeoutsPitcher strikeouts318player
pitching_outsOuts recorded262player
lastToScoreLast to score170team
firstToScoreFirst to score170team
pitching_hitsHits allowed108player
pitching_basesOnBallsWalks allowed76player
pitching_winPitcher win52player
pitching_earnedRunsEarned runs10player

Baseball Odds API Technical Specifications

API Architecture

  • REST API — Simple HTTP endpoints with JSON responses, identical to the SportsGameOdds v2 paths
  • Polling, not push — the feed refreshes every ~2 minutes; /v2/stream/events is reserved and answers 501 rather than pretending
  • Rate limits — per-key, per-minute meters that bind under concurrency; plans sized to your usage
  • Authentication — secure API key access via the x-api-key header or apiKey query parameter

Data Update Speed

  • Odds updates — every ~2 minutes across every bookmaker lane
  • Event statusstatus flags and info.stale tell you exactly how current a price is

Developer Resources

Baseball market coverage by category

Market categoryExample marketsMarketsAvailabilityTypical bookmakers
Full game linesPoints / score O/U, Points / score line, Points / score 1X2, Points / score16 oddIDsPre-matchBetFocus, MintBet, Dabble, Picklebet, BetDeluxe, BetRight
Period marketsPoints / score O/U, Points / score 1X2, Points / score line, Points / score, Points / score yes/no, Hits O/U170 oddIDsPre-matchSportsbet, Neds, BetFocus, BetDeluxe, MintBet, Unibet
Score & margin specialsFirst to score, Margin, Points / score, Last to score26 oddIDsPre-matchTAB, Sportsbet, BetRight, Picklebet, BetDeluxe, BetFocus
Team & game specialsPoints / score22 oddIDsPre-matchNeds, TAB, BetFocus, MintBet, PointsBet, BetDeluxe
Team & innings marketsHits O/U6 oddIDsPre-match
Player propsPoints / score O/U, RBIs O/U, Hits O/U, Doubles O/U, Singles O/U, Home runs O/U, Total bases O/U36 oddIDsPre-matchDabble, Neds, ProphetX, Unibet, Sportsbet, PointsBet

Use Cases for Baseball API Data

  • Arbitrage & +EV tools — compare baseball odds across every Australian bookmaker to uncover arbitrage opportunities and positive expected value angles.
  • Odds comparison platforms — display baseball odds from every book side by side for comprehensive line shopping.
  • Pricing models & trading — use baseball market data as inputs for proprietary pricing algorithms and betting strategies.
  • Sports analytics & research — examine baseball line movements and betting-market patterns, and build predictive models on retained events.
  • Betting automation — build systems that monitor baseball lines across bookmakers and trigger actions when your target odds appear.
  • Sportsbook & fantasy apps — power your baseball product with reliable odds, status and bet-slip deeplinks.

Baseball Odds API Documentation

Our interactive documentation covers everything you need to integrate Baseball odds into your project:

  • Full endpoint reference with parameters and response schemas
  • Live request and response examples
  • Code snippets in Python, JavaScript, Ruby, Go and Java
  • Authentication setup and API key management
  • Rate limiting and the notice field
  • Error handling and troubleshooting

View documentation

Start building today

Free plan available. Set up in 5 minutes. Scale when you're ready.