
MLB odds API
Moneyline, run line and total prices for every MLB game as JSON. No book had a price at the latest read, and an empty answer costs no credit.
MLB schedule
| Team | |||
|---|---|---|---|
7:00 PM ET | |||
| -125 | -120 | -118 | |
| +105 | +100 | +108 | |
9:30 PM ET | |||
| -160 | -155 | -150 | |
| +135 | +130 | +138 | |
MLB request and response
curl -s "https://api.dino.markets/v2/odds?league=mlb&markets=moneyline,spread,total&limit=100" \ -H "Authorization: Bearer $DINO_API_KEY"
import json, os from urllib.request import Request, urlopen url = "https://api.dino.markets/v2/odds?league=mlb&markets=moneyline,spread,total&limit=100" request = Request(url, headers={"Authorization": f"Bearer {os.environ['DINO_API_KEY']}"}) with urlopen(request, timeout=30) as response: events = json.load(response)["events"] print(len(events), "games")
const url = "https://api.dino.markets/v2/odds?league=mlb&markets=moneyline,spread,total&limit=100"; const response = await fetch(url, { headers: { Authorization: `Bearer ${process.env.DINO_API_KEY}` }, }); if (!response.ok) throw new Error(`HTTP ${response.status}`); const { events } = await response.json(); console.log(events.length, "games");
package main import ( "encoding/json" "fmt" "log" "net/http" "os" ) func main() { req, err := http.NewRequest("GET", "https://api.dino.markets/v2/odds?league=mlb&markets=moneyline,spread,total&limit=100", nil) if err != nil { log.Fatal(err) } req.Header.Set("Authorization", "Bearer "+os.Getenv("DINO_API_KEY")) res, err := http.DefaultClient.Do(req) if err != nil { log.Fatal(err) } defer res.Body.Close() if res.StatusCode != 200 { log.Fatal(res.Status) } var body struct { Events []json.RawMessage `json:"events"` } if err := json.NewDecoder(res.Body).Decode(&body); err != nil { log.Fatal(err) } fmt.Println(len(body.Events), "games") }
// Extensions, then Apps Script. Add DINO_API_KEY under Project Settings, Script properties.
function odds() {
const url = "https://api.dino.markets/v2/odds?league=mlb&markets=moneyline,spread,total&limit=100";
const key = PropertiesService.getScriptProperties().getProperty("DINO_API_KEY");
const response = UrlFetchApp.fetch(url, { headers: { Authorization: "Bearer " + key } });
const rows = [["start_time", "book", "market", "outcome", "point", "price", "american"]];
JSON.parse(response.getContentText()).events.forEach((e) =>
e.books.forEach((b) => b.markets.forEach((m) => m.outcomes.forEach((o) =>
rows.push([e.start_time, b.name, m.key, o.name, o.point || "", o.price, o.american])))));
SpreadsheetApp.getActiveSheet().getRange(1, 1, rows.length, rows[0].length).setValues(rows);
}{
"as_of": "2026-11-27T04:57:10Z",
"events": [],
"next_cursor": null
}MLB odds by book
MLB odds questions
What are today's MLB odds?
No MLB lines are posted for the next seven days (read 27 Nov 2026 at 04:54 UTC). The MLB regular season runs from late March to late September, then the postseason in October.
Which books show MLB odds?
The games table has no prices at its latest read. No book had an MLB price in the read on 27 Nov 2026 at 04:57 UTC.
How do I get MLB odds as JSON?
Send the request above with your key. Get a free key for 1,000 credits a month.
How many credits does an MLB call cost?
A call that returns prices costs one credit, whatever the markets and books, with up to 100 games in it. The leagues list is free.
What fields does the MLB odds API return?
Each game has id, kind, sport, league, start_time, live, participants and books. A book has key, name and markets. A market has key, period, line, main, updated_at and outcomes, and an outcome has name, participant_id, side, point on the spread and total, price and american.
How many books have MLB run line and total prices?
No book had an MLB price in the read on 27 Nov 2026 at 04:57 UTC. The markets to ask for are moneyline, spread, total.
How fresh are the MLB odds?
The games table was last read on 27 Nov 2026 at 04:54 UTC. The response and the books were read on 27 Nov 2026 at 04:57 UTC. The page reads our API every 3 hours. The API itself reads most books every 30 to 60 seconds; Kambi books, Paddy Power and Smarkets every 1.5 to 2.5 minutes, and updated_at on each market is when we first saw its current prices.
What errors can an MLB call return?
400 invalid_request for a bad parameter, 401 unauthorized for a missing or wrong key, 404 not_found, 405 method_not_allowed, 429 rate_limited or quota_exceeded, 500 internal_error and 503 unavailable. Each error body has error, message and request_id, and an error costs no credit.
What are the limits on the MLB odds API?
limit takes 1 to 100 games a call and is 25 by default, and next_cursor gives the next page. event_ids takes up to 100 ids. The monthly credits are 1,000 on Free, 50,000 on Starter, 1,000,000 on Basic and 10,000,000 on Pro. A call over a key's rate limit answers 429 with Retry-After.
What is the difference between the run line and the moneyline?
The moneyline pays on who wins. The run line (spread) adds a line to one team's score before the bet is settled, so a favourite at -3.5 has to win by 4 or more. Each spread outcome carries the line as point.
Related pages
World Series winner odds API
NBA odds API
NFL odds API
NHL odds API
College football odds API
College basketball odds API
Premier League odds API
Champions League odds API
La Liga odds API
MLS odds API
Bundesliga odds API
Serie A odds API
Ligue 1 odds API
Championship odds API
Eredivisie odds API
Primeira Liga odds API
Europa League odds API
WNBA odds API
NRL odds API
AFL odds API
IPL odds API
Test cricket odds API
ODI odds API
Big Bash odds API
UFC odds API- Boxing odds API
Tennis odds API- All leagues
Start with a free key
1,000 credits a month, no card needed.