MLB data API

MLB odds, betting splits & baseball data API

Everything a baseball product needs each day: lines and public betting splits, probable starters, strikeout projections, and the injured list.

Get a free API keyRead the docs

MLB endpoints

Betting splits

Public bet % and money % on the spread, moneyline, and total for every game on the slate, with the current line.

GET https://api.playbook-api.com/v1/splits?league=MLB&api_key=YOUR_API_KEY

Game lines

Current spread, moneyline, and total for every upcoming game, with spread and over/under prices.

GET https://api.playbook-api.com/v1/lines?league=MLB&api_key=YOUR_API_KEY

Odds and game IDs

Upcoming games with Playbook game IDs, teams, and start times across sportsbooks.

GET https://api.playbook-api.com/v1/odds-games?league=MLB&api_key=YOUR_API_KEY

Player props

Main-line player props for one game, up to 5 markets per request: line plus over and under prices. Starter plan and up.

GET https://api.playbook-api.com/v1/player-props?league=MLB&gameId=GAME_ID&markets=pitcherStrikeouts&api_key=YOUR_API_KEY

Starting pitchers

Probable starters for each MLB game.

GET https://api.playbook-api.com/v1/mlb/starting-pitchers?api_key=YOUR_API_KEY

Strikeout predictor

Modeled strikeout projections for starting pitchers based on the opponent.

GET https://api.playbook-api.com/v1/mlb/strikeout-predictor?api_key=YOUR_API_KEY

Injury report

The latest injury report grouped by team: player, status, and injury.

GET https://api.playbook-api.com/v1/injuries?league=MLB&api_key=YOUR_API_KEY

Head-to-head

Recent meetings between two teams.

GET https://api.playbook-api.com/v1/head-to-head?league=MLB&teamA=NYY&teamB=BOS&api_key=YOUR_API_KEY

Recent form

Each team's last games with results and scores.

GET https://api.playbook-api.com/v1/recent-form?league=MLB&api_key=YOUR_API_KEY

Teams

Team metadata: names, abbreviations, and IDs used across the API.

GET https://api.playbook-api.com/v1/teams?league=MLB&api_key=YOUR_API_KEY

Season pitcher stats and ballpark weather are also available; see the docs.

MLB widgets

Embed MLB content with one script tag: Game header, Score strip, Score ticker, Last 5 form, Win probability, Player props, Injury report.

Build a MLB widget

Pricing

Start free with 500 API requests and 1,000 widget loads a month, no credit card required. Paid plans start at $39.99 a month. Compare plans.

Questions

Does the MLB injury data include the injured list?
Yes. It covers both the 60-day and the short-term (7-, 10-, and 15-day) injured lists.