League: Baseball
MLB odds API
MLB is in the free Developer plan in season, which reads every book on sockodds.com's list but bet365; Pro and Business add bet365. The books price the head to head, the line and the total, for the whole game and over the first five innings, with alternate lines where a book hangs them. Player props: hits, total bases, home runs, runs and RBIs for batters; strikeouts and outs for pitchers. Each price carries the time it was seen, and one over ten minutes old is withheld, never served as current. The season runs from late March to the World Series, which can run into early November.
Key mlb, from plan Developer. Filter with league=mlb; /v1/markets?league=mlb lists every market it can carry; every league and its key. Fast Odds API answers at https://api.sockodds.com/v1; send your key as a Bearer token. For every market type defined for MLB, each with its key, sides and periods, and the plans that include it, see SockOdds' MLB odds API page.
Joining your data
Look a game up by ESPN's event id
Already keyed on ESPN's event ids for MLB games? GET /v1/events/lookup?source=espn&ref=<ESPN event id> finds our event; a 404 means none of our events carries that id. Up to 100 ids go in one call as refs: the answer keeps the order you sent and leaves out any id with no match. Merged events resolve to the event they were merged into. The lookup takes official ids only: a bookmaker's own listing id finds nothing.
The contract names ESPN's event id as a source but not its leagues. SockOdds confirmed on 15 Oct 2026 that it covers MLB; the others are WTA Tour, ATP Tour, UEFA Champions League, MLS, Ligue 1, Bundesliga, Serie A, La Liga, English Premier League, NHL, NCAAF, NFL, Men's college basketball, WNBA, NBL and NBA.
In code
The best price on every MLB outcome
One request to /v1/odds with league=mlb returns the games in the window with every market and every bookmaker your plan covers. Each outcome's prices come best first, so the first entry is the top price and the book quoting it. Name the markets you show to keep the response small.
Big leagues come back in pages: follow links.next until it is null. Each plan meters credits, with a league's featured markets at a credit apiece for each region, counted once a page of up to 25 games.
curl -G https://api.sockodds.com/v1/odds \
-d league=mlb \
-d markets=winner,handicap,total_runs \
-H "Authorization: Bearer $SOCKODDS_KEY"
import os
import requests
resp = requests.get(
"https://api.sockodds.com/v1/odds",
params={"league": "mlb", "markets": "winner,handicap,total_runs"},
headers={"Authorization": f"Bearer {os.environ['SOCKODDS_KEY']}"},
timeout=20,
)
resp.raise_for_status()
for event in resp.json()["data"]:
for market in event["markets"]:
who = (market["subject"] or {}).get("name", "") # the player on a prop; empty on a game market
for outcome in market["outcomes"]:
if not outcome["prices"]:
continue # no book is pricing this outcome right now
best = outcome["prices"][0] # prices come best first, so [0] is the top price and its book
print(event["name"], market["key"], who, outcome["name"], outcome["line"], best["decimal_odds"], best["bookmaker"])
One request, GET /v1/odds?league=mlb&limit=100, on a Pro key, which sees every bookmaker on every league, read 15 Oct 2026. On that date MLB was in its postseason, when only the playoff teams play. The window is the API's default: games from two days before the read onward. A page of 100 is a floor, so a count can say at least.
Bookmakers with a price on at least one MLB game that day, with the games each priced: Polymarket (6), Kalshi (3), Bally Bet (1), BearBet (1), BetMGM (1), BetRivers (1), CashCage (1), Dabble (1), DraftKings (1), FanDuel (1), Hard Rock Bet (1), Mintbet (1), ProphetX (1), Sportsbet (1), Unibet (1) and four other books.
The kinds of market priced that day: handicap, player_earned_runs_allowed_over_under, player_hits_allowed_over_under, player_hits_over_under, player_home_runs_anytime, player_outs_recorded_over_under, player_runs_batted_in_over_under, player_runs_over_under, player_strikeouts_over_under, player_strikeouts_thrown_over_under, player_total_bases_over_under, team_runs_over_under, total_runs, winner.
Bookmakers pricing MLB player props that day, with the prop markets each priced: BetMGM (113), Hard Rock Bet (81), Sportsbet (79), ProphetX (75), Dabble (71), Bally Bet (61), Unibet (61), FanDuel (54) and three other books.
Measured, 15 Oct 2026
What the read found on MLB
- 6 of the 11 games the read listed carried a price; the other 5 were listed with no market (the file does not record which had started). Each counts once in a read like this one, priced or not.
- Props that name a player came in ten kinds,
player_earned_runs_allowed_over_under,player_hits_allowed_over_under,player_hits_over_under,player_home_runs_anytime,player_outs_recorded_over_under,player_runs_batted_in_over_under,player_runs_over_under,player_strikeouts_over_under,player_strikeouts_thrown_over_underandplayer_total_bases_over_under. - The books on all 6 were Polymarket: one of 19.
- Six of the 19 are on sockodds.com's list of 30 Australian bookmakers and the Betfair Exchange (list read 25 Nov 2026). Exchange on it: ProphetX (1). Prediction markets: Kalshi (3) and Polymarket (6).
- Kinds with a single book on them that day: BetMGM alone on
player_strikeouts_over_under.
The same read for every league, with a covered, partly or not verdict: leagues with Australian bookmaker odds, measured.
Who priced what
MLB, book by book
Who priced what on MLB on 15 Oct 2026: the books first, then the kinds of market and who carried each. A prop market here names a player as its subject; first and last scorer markets list the players as outcomes and count as kinds, not props.
| Book | From plan | Games priced | Prop markets | Kinds of market it priced |
|---|---|---|---|---|
| Polymarket | Developer | 6 | 0 | team_runs_over_under, total_runs and winner |
| Kalshi | Developer | 3 | 0 | winner |
| Bally Bet | Developer | 1 | 61 | handicap, player_hits_over_under, player_home_runs_anytime, player_runs_batted_in_over_under, player_runs_over_under, player_total_bases_over_under, team_runs_over_under, total_runs and winner |
| BearBet | Developer | 1 | 0 | total_runs and winner |
| BetMGM | Developer | 1 | 113 | handicap, player_earned_runs_allowed_over_under, player_hits_over_under, player_home_runs_anytime, player_outs_recorded_over_under, player_runs_batted_in_over_under, player_runs_over_under, player_strikeouts_over_under, player_strikeouts_thrown_over_under, player_total_bases_over_under, team_runs_over_under, total_runs and winner |
| BetRivers | Developer | 1 | 0 | winner |
| CashCage | Developer | 1 | 0 | winner |
| Dabble | Developer | 1 | 71 | handicap, player_hits_over_under, player_home_runs_anytime, player_runs_batted_in_over_under, player_runs_over_under, team_runs_over_under, total_runs and winner |
| DraftKings | Developer | 1 | 0 | total_runs and winner |
| FanDuel | Developer | 1 | 54 | player_hits_over_under, player_home_runs_anytime, player_runs_batted_in_over_under, total_runs and winner |
| Hard Rock Bet | Developer | 1 | 81 | handicap, player_earned_runs_allowed_over_under, player_hits_allowed_over_under, player_hits_over_under, player_home_runs_anytime, player_outs_recorded_over_under, player_runs_batted_in_over_under, player_runs_over_under, player_strikeouts_thrown_over_under, player_total_bases_over_under, team_runs_over_under, total_runs and winner |
| Mintbet | Developer | 1 | 0 | total_runs and winner |
| ProphetX | Developer | 1 | 75 | player_hits_allowed_over_under, player_hits_over_under, player_runs_batted_in_over_under, player_runs_over_under, player_strikeouts_thrown_over_under, player_total_bases_over_under and winner |
| Sportsbet | Developer | 1 | 79 | handicap, player_hits_over_under, player_home_runs_anytime, player_runs_batted_in_over_under, player_runs_over_under, player_strikeouts_thrown_over_under, player_total_bases_over_under, team_runs_over_under, total_runs and winner |
| Unibet | Developer | 1 | 61 | handicap, player_hits_over_under, player_home_runs_anytime, player_runs_batted_in_over_under, player_runs_over_under, player_total_bases_over_under, team_runs_over_under, total_runs and winner |
| four books sockodds.com does not list by name | Pro | 4 | 105 | not split by book |
| Kind of market | Books | Which books | Other baseball competitions that carried it |
|---|---|---|---|
winner | 18 | Bally Bet, BearBet, BetMGM, BetRivers, CashCage, Dabble, DraftKings, FanDuel, Hard Rock Bet, Kalshi, Mintbet, Polymarket, ProphetX, Sportsbet, Unibet and three books sockodds.com does not list by name | no other priced that day |
total_runs | 15 | Bally Bet, BearBet, BetMGM, Dabble, DraftKings, FanDuel, Hard Rock Bet, Mintbet, Polymarket, Sportsbet, Unibet and four books sockodds.com does not list by name | no other priced that day |
team_runs_over_under | 11 | Bally Bet, BetMGM, Dabble, Hard Rock Bet, Polymarket, Sportsbet, Unibet and four books sockodds.com does not list by name | no other priced that day |
handicap | 9 | Bally Bet, BetMGM, Dabble, Hard Rock Bet, Sportsbet, Unibet and three books sockodds.com does not list by name | no other priced that day |
player_hits_over_under | 9 | Bally Bet, BetMGM, Dabble, FanDuel, Hard Rock Bet, ProphetX, Sportsbet, Unibet and a book sockodds.com does not list by name | no other priced that day |
player_runs_batted_in_over_under | 9 | Bally Bet, BetMGM, Dabble, FanDuel, Hard Rock Bet, ProphetX, Sportsbet, Unibet and a book sockodds.com does not list by name | no other priced that day |
player_total_bases_over_under | 9 | Bally Bet, BetMGM, Hard Rock Bet, ProphetX, Sportsbet, Unibet and three books sockodds.com does not list by name | no other priced that day |
player_home_runs_anytime | 8 | Bally Bet, BetMGM, Dabble, FanDuel, Hard Rock Bet, Sportsbet, Unibet and a book sockodds.com does not list by name | no other priced that day |
player_runs_over_under | 8 | Bally Bet, BetMGM, Dabble, Hard Rock Bet, ProphetX, Sportsbet, Unibet and a book sockodds.com does not list by name | no other priced that day |
player_strikeouts_thrown_over_under | 5 | BetMGM, Hard Rock Bet, ProphetX, Sportsbet and a book sockodds.com does not list by name | no other priced that day |
player_hits_allowed_over_under | 3 | Hard Rock Bet, ProphetX and a book sockodds.com does not list by name | no other priced that day |
player_outs_recorded_over_under | 3 | BetMGM, Hard Rock Bet and a book sockodds.com does not list by name | no other priced that day |
player_earned_runs_allowed_over_under | 2 | BetMGM and Hard Rock Bet | no other priced that day |
player_strikeouts_over_under | 1 | BetMGM | no other priced that day |
Reading it
Markets, periods and sides in baseball
- winner
- The head to head, sides home and away.
- handicap
- The line. The two sides hold opposite figures: the home side at -6.5 against the away side at +6.5.
- total_runs
- The total, sides over and under, each outcome with its line. A different line is a different market, with different outcome IDs, so group by line before ranking prices.
- period
fullfor the whole game; this sport also carries the first five innings (innings_1_to_5).- subject
- Null on game markets. On a prop it names the player, with an ID and a name.
Settlement
How MLB games settle
/v1/results?league=mlb grades each finished game outcome by outcome on the same IDs as the prices: won, lost, void or dead_heat. Markets settle one at a time, each once official evidence covers every outcome in it, so a game's result can come back with settlement: partial while some of its markets wait.
Which markets a game carries is up to the books pricing it: /v1/markets?league=mlb lists what the league can carry, and the odds response what is open now.
Questions
MLB and the API
What to build with it: odds comparison, arbitrage, betting and tipping apps and backtesting, each with code in the v1 shape.
Is MLB on the free plan?
Yes, in season: it is in the Developer plan, which costs nothing and asks for no card: the NBA, NBL, NFL and English Premier League, with the AFL, NRL and MLB in season, from every book on sockodds.com's list but bet365, within 1,000 credits a month.
Which bookmakers price MLB?
The free plan reads every book on sockodds.com's list but bet365, and so does Starter; Pro and Business add bet365. A book shows up on a game only once it prices it, so the measured list on this page is the answer for the date it names.
What is MLB's league key?
mlb. Pass it as league=mlb; a league key implies its sport, so it is the only filter needed to pick the competition. /v1/leagues returns the current list with each league's sport and region.
Are MLB player props included?
Yes, on every plan that includes MLB, from the same request as the game lines: hits, total bases, home runs, runs and RBIs for batters; strikeouts and outs for pitchers, wherever the books hang them. A prop is a market whose subject is the player.
Can I get MLB results from the feed?
Yes. /v1/results?league=mlb grades each finished game outcome by outcome, on the same IDs as the prices: won, lost, void or dead heat. An outcome that official evidence does not settle is never guessed: it stays out of the results.
Start now
Your first Australian price is one request away.
Free key, no card, AFL and NRL included. Keys are issued on sockodds.com.