MLB Odds API

Real-time MLB moneyline, run line, total, and player-prop odds from every major US sportsbook — normalized to American odds and keyed to canonical game IDs.

Overview

The MoneyLine MLB odds API returns baseball game lines and player props in one normalized JSON shape. Instead of integrating a separate scraper for each sportsbook, you call one endpoint with league=mlb and get moneyline, run line (spread), and total markets back — every price already converted to American odds across every tracked source.

Every MLB game maps to a canonical eventId, and each event carries a summary object exposing no-vig fair odds, the best available price, and the consensus average per outcome. That lets you compare books, detect value, and surface the sharpest run line or total without building a normalization layer of your own.

Beyond game lines, the same canonical eventId keys a deep set of MLB player props — pitcher strikeouts, batter hits, total bases, RBIs, and home-run markets. Because props and game lines share the event ID, you can join a starting pitcher's strikeout prop to its game total or pull both for a matchup in a single pass, with no fuzzy name or game matching on your end.

Coverage spans the major US sportsbooks tracked across the platform, and a free tier covers both personal and commercial use with every endpoint included. The same MLB feed can power a best-line comparison screen, a prop-research tool joined to recent-form hit rates, or a model-training pipeline that ingests a stable JSON contract.

Get started

  1. 1

    Create a free account

    Sign up and grab an API key from the dashboard — no credit card required for the free tier.

  2. 2

    Call /v1/odds?league=mlb

    Pass the key as x-api-key and request /v1/odds with league=mlb to get live baseball lines back.

  3. 3

    Join the eventId to props

    Use the canonical eventId from each response to pull matching player props for that game.

Key features

MLB game lines

Moneyline, run line, and total for every MLB matchup across major US books in one normalized schema.

Player props

Pitcher strikeouts plus batter hits, total bases, RBIs, and home-run markets, normalized to American odds.

No-vig fair odds

Each MLB outcome includes fairOdds (no-vig), bestOdds (best available), and avgOdds (consensus) in the summary.

Canonical event IDs

Game lines and player props share one eventId so MLB odds, events, and props join cleanly across endpoints.

Hit rates

L5 / L10 / L25 / season hit rates for MLB props, computed from game logs and joined to active markets.

Line movement

Opening-to-current consensus snapshots per MLB market via the odds-history endpoint.

Supported leagues

MLB

Supported sportsbooks

DraftKingsFanDuelBetMGMCaesarsESPN BETFanaticsHard Rock BetBetRiversPinnaclebet365 (US)BovadaBetOnline.ag

Example request

GET /v1/odds — MLB total

Request

curl -H "x-api-key: $ML_API_KEY" \
  "https://mlapi.bet/v1/odds?league=mlb&market=total"

Response

{
  "success": true,
  "data": [
    {
      "eventId": "mlb-ev-455190",
      "leagueId": "mlb",
      "sport": "baseball",
      "bookmakers": [
        {
          "bookmakerId": "betmgm",
          "bookmakerName": "BetMGM",
          "sourceType": "sportsbook",
          "markets": [
            {
              "marketType": "total",
              "outcomes": [
                { "name": "Over", "point": 8.5, "price": -105 },
                { "name": "Under", "point": 8.5, "price": -115 }
              ]
            }
          ]
        }
      ]
    }
  ],
  "meta": { "count": 1, "page": 1 }
}

MLB markets

Market typeMarkets
Game linesMoneyline, run line, total
Player propsStrikeouts, hits, total bases, home runs

Use cases

MLB betting tools

Power MLB odds screens, run-line pages, and best-line tables from one normalized feed.

Prop research

Combine pitcher and batter props with L5 / L10 / L25 / season hit rates over recent windows.

Value & comparison

Compare each book against consensus fair odds to surface the best run-line and total prices.

Model pipelines

Feed no-vig MLB fair odds into total and run-line models via a stable JSON contract.

Odds widgets

Drive embeddable MLB odds rails from paginated, normalized responses.

Latency & performance

FAQ

What is an MLB odds API?

An MLB odds API delivers baseball betting lines — moneyline, run line, total, and player props — as structured JSON your app can consume, instead of scraping each sportsbook yourself.

Which MLB markets are available?

Game markets (moneyline, run line, total) and player props such as strikeouts, hits, total bases, RBIs, and home runs.

Do you provide MLB player-prop hit rates?

Yes — L5, L10, L25, and season hit rates are computed from game logs and joined to active props for in-window MLB events.

How fresh are MLB odds?

Odds update continuously; the line-history cadence tightens to roughly every 20 minutes inside three hours of first pitch.

What are no-vig fair odds?

Fair odds remove the sportsbook margin (vig) from a market so you can compare the true implied probability of each MLB outcome across books.

How do I get odds for one MLB game?

Call /v1/odds with league=mlb, then use the canonical eventId from the response to fetch that event and its player props.

Which sportsbooks are included?

Major US books including DraftKings, FanDuel, BetMGM, Caesars, ESPN BET, and more, each normalized to American odds.

Is there a free tier?

Yes — the free tier covers both personal and commercial use with every endpoint included. Paid plans add throughput.

Related

Pricing

Free

$0/mo

1K credits/mo

Starter

$29/mo

150K credits/mo

Pro

$149/mo

1.5M credits/mo

Business

$299/mo

5M credits/mo

Enterprise

Custom

Unlimited credits/mo

View full pricing →

Start building in minutes

Free tier to start, one API key, normalized responses across every league and sportsbook.