Baseball

Baseball Odds API

Real-time baseball odds across 14 leagues — MLB, Japan's NPB, Korea's KBO, the Mexican and Caribbean winter leagues and more. Moneylines, run lines, batter and pitcher props and inning-by-inning markets from 85+ sportsbooks, with scores and results included on every plan.

Baseball is the deepest league catalogue we carry outside soccer. Most odds APIs stop at MLB. Ours runs from the 162-game MLB season through Japan's NPB and Korea's KBO, the Mexican and Caribbean winter leagues, the World Baseball Classic and Minor League Baseball — which means your product can stay live nearly year-round rather than going dark every October.

Baseball Odds API Features

One request returns a game's entire odds tree. There is no separate props endpoint, no per-bookmaker stitching, and no second integration needed to settle bets afterwards.

Available baseball betting markets include:

  • Moneylines and regulation 3-way markets
  • Run lines (the 1.5-run spread) and alternate lines
  • Totals (over/under runs), team totals, and even/odd
  • Batter props — hits, home runs, total bases, RBIs, runs, stolen bases, walks
  • Pitcher props — strikeouts, outs recorded, earned runs, hits allowed, pitches thrown
  • Home run markets — anytime, first, and player over/under
  • First 5 innings (F5), F3 and F7 markets, plus individual innings

Market depth is greatest on MLB, where the full batter and pitcher prop catalogue is posted daily. NPB, KBO and the winter leagues reliably carry core markets — moneyline, run line and total — with props where individual sportsbooks price them.

Quick Start: Every Baseball League in One Call

Querying at the sport level means you do not have to enumerate 14 leagues. A single sportID=BASEBALL request spans all of them:

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

For a specific subset, leagueID accepts a comma-separated list — useful in the northern winter, when MLB is dark but the Caribbean leagues are in season:

https://api.sportsgameodds.com/v2/events?apiKey=YOUR_API_KEY&leagueID=LIDOM,LVBP,LMP&oddsAvailable=true&limit=10

Note that leagueID takes precedence — if you send both sportID and leagueID, the league filter is used and the sport filter is ignored. Use one or the other.

To narrow to a single market, add oddIDs. This returns hits over/unders for every batter on the slate:

https://api.sportsgameodds.com/v2/events?apiKey=YOUR_API_KEY&sportID=BASEBALL&oddsAvailable=true&oddIDs=batting_hits-PLAYER_ID-game-ou-over,batting_hits-PLAYER_ID-game-ou-under

Common baseball oddID patterns:

  • Batter hits over/under: batting_hits-PLAYER_ID-game-ou-over
  • Total bases: batting_totalBases-PLAYER_ID-game-ou-over
  • Pitcher strikeouts: pitching_strikeouts-PLAYER_ID-game-ou-over
  • First 5 innings total: use the 1h period code

OddIDs follow the format {statID}-{statEntityID}-{periodID}-{betTypeID}-{sideID}. The full list is in the stats reference, and markets & coverage shows which books support what.

Try it Out

See live odds for an upcoming game

SportsGameOdds API
GEThttps://api.sportsgameodds.com/v2/events

Request Parameters

leagueID=NFL

Only NBA games

oddsAvailable=true

Only games with available odds

includeAltLines=false

Don't return alt-lines

limit=1

Number of games to return

Baseball Leagues We Cover

North America

  • MLB — all 30 teams across the 162-game regular season, postseason and World Series, with the deepest prop catalogue of any baseball league.
  • Minor League Baseball — Single-A and higher levels, where books price them.

Asia

  • NPB — Nippon Professional Baseball, Japan's top flight.
  • KBO — the Korean Baseball Organization.
  • CPBL — the Chinese Professional Baseball League in Taiwan.

Latin America and the Caribbean

  • LMB — Liga Mexicana de Béisbol, the Mexican summer league.
  • LMP — Liga Mexicana del Pacífico, the Mexican winter league.
  • LIDOM — the Dominican winter league.
  • LVBP — the Venezuelan winter league.
  • LBPRC — Liga de Béisbol Profesional Roberto Clemente, Puerto Rico.

International

  • WBC — the World Baseball Classic.

Baseball Player Props

Baseball props split cleanly between batters and pitchers, and we carry both in depth. On the batting side: hits, total bases, home runs, RBIs, runs, singles, doubles, triples, walks, stolen bases, strikeouts, hits + runs + RBIs, first home run and fantasy score. On the pitching side: strikeouts, outs recorded, earned runs, hits allowed, walks, pitches thrown and pitching win.

Props come back in the same response as the game lines and are identified by a single field, so filtering to only props — or excluding them — is one check. See the baseball player prop odds API for the complete market list by sport.

Baseball Odds API with Results

Odds and results arrive in one unified response, so you can settle bets without adding a second data source. Each response includes:

  • Live and upcoming baseball games across every covered league
  • Home and away team data
  • Player statistics and box scores
  • Full odds coverage — run lines, totals, moneylines, player props and alternate lines
  • Final scores and settlement data

Line movement is tracked throughout, which matters more in baseball than most sports: totals and moneylines move sharply the moment starting pitchers are confirmed and lineup cards are posted.

Baseball Odds API Technical Specifications

API Architecture

  • REST API — standard HTTP endpoints returning clean JSON
  • WebSocket feeds — real-time push updates on the All-Star plan, no polling required
  • Rate limits — scalable plans matched to your usage volume
  • Authentication — secure API key access

Data Update Speed

  • Odds updates — sub-minute refresh on the Pro plan; Rookie and the free Amateur tier refresh on a longer interval. See pricing for the frequency on each tier.
  • Live scores — updated in real time during games

Developer Resources

Use Cases for Baseball Odds Data

Odds Comparison Platforms — Show run lines, totals and moneylines from 85+ bookmakers side by side across a packed nightly board.

Arbitrage & +EV Tools — Baseball's long season and deep prop market produce a steady stream of pricing gaps, including on first-five-innings markets.

Prediction Market Arbitrage — Compare baseball prices on Kalshi and Polymarket against sportsbook odds across a high-volume schedule.

DFS & Lineup Tools — Batter and pitcher props map directly onto DFS scoring formats.

Sports Analytics & Research — Study how lines move on starting pitcher announcements, park factors and bullpen usage across a 2,430-game MLB season.

Betting Automation — Monitor baseball lines across bookmakers and trigger actions when your target price appears, on the full game, the run line or an F5 total.

Baseball Odds API Documentation

Our interactive documentation covers everything needed to integrate baseball odds:

  • Full endpoint reference with parameters and response schemas
  • Live request and response examples
  • Code snippets in Python, JavaScript and more
  • Authentication setup and API key management
  • Error handling and troubleshooting

For MLB-specific query examples, see the MLB odds API page and the MLB odds API guide, or start with the API basics.

Frequently Asked Questions

Which baseball leagues does the API cover?
Fourteen. MLB and Minor League Baseball in North America; NPB in Japan, the KBO in Korea and the CPBL in Taiwan; the Mexican summer and winter leagues (LMB and LMP); the Dominican, Venezuelan and Puerto Rican winter leagues (LIDOM, LVBP and LBPRC); and the World Baseball Classic. Market depth is greatest on MLB, with the other leagues reliably carrying core markets and props where books price them.
Can I get baseball odds outside the MLB season?
Yes, and this is a common reason teams choose us. The Caribbean and Mexican winter leagues — LIDOM, LVBP, LBPRC and LMP — run through the northern winter while MLB is dark, and NPB, the KBO and the CPBL run on their own calendars. Querying sportID=BASEBALL keeps your product live year-round rather than going quiet every October.
How do I get odds for every baseball league in one request?
Query at the sport level with sportID=BASEBALL and the response spans all covered leagues. For a subset, leagueID accepts a comma-separated list such as leagueID=LIDOM,LVBP,LMP. Sending both means the league filter wins and the sport filter is ignored.
What baseball player props are available?
On the batting side: hits, total bases, home runs, RBIs, runs, singles, doubles, triples, walks, stolen bases, strikeouts, hits + runs + RBIs, first home run and fantasy score. On the pitching side: strikeouts, outs recorded, earned runs, hits allowed, walks, pitches thrown and pitching win.
Does the API cover inning-by-inning markets?
Yes. Alongside full-game markets we carry first five innings (F5), F3 and F7 markets, and individual inning markets covering moneyline, spread, total, 3-way and any-runs.
How often do baseball odds update?
Update frequency depends on your plan. The Pro plan refreshes sub-minute, which matters in baseball because totals and moneylines move sharply once starting pitchers are confirmed. The Rookie and free Amateur plans refresh on a longer interval. Live scores update in real time on every plan.
Is there a free baseball odds API?
Yes. The free Amateur tier includes 2,500 objects a month with no credit card required, covering 8 leagues and 9 bookmakers — enough to build and test against real baseball data. The Rookie and Pro plans each add a 7-day trial.
How does object-based pricing work for baseball?
Each event counts as one object regardless of how many markets it returns. Ten MLB games count as 10 objects even if each returns hundreds of odds across batter props, pitcher props and inning markets. That makes a deep-market sport like baseball considerably cheaper here than on per-market billing.

Ready to get started?

Join thousands of developers building the next generation of sports and betting applications.

Baseball Leagues

Explore odds coverage for each baseball league we support: