MLB data API for live scores, pitches & Statcast
Complete MLB coverage: live scores, pitch-by-pitch with Statcast metrics (velocity, spin, release point), box scores, lineups, standings, and schedule. Historical box scores from 1876 onward.
# Get pitch-by-pitch with Statcast metrics curl "https://api.sportapi.io/v1/mlb/games/746521/pitches" \ -H "Authorization: Bearer $API_KEY" { "pitches": [{ "pitcher": "degrom-jacob", "batter": "judge-aaron", "pitch_type": "FF", "velocity": 99.4, "spin_rate": 2487, "release": { "x": -1.8, "y": 6.1, "z": 5.9 }, "result": "swinging_strike", "count": "1-2" }] }
Every MLB data point, one API
Live scores, pitch-by-pitch with Statcast metrics, full box scores, daily lineups, standings, schedule, and Statcast leaders. Consistent JSON schema across every endpoint.
MLB API questions
What does the MLB data API cover?
All 30 MLB teams, every regular-season, postseason, and spring training game. Live scores, pitch-by-pitch with Statcast metrics, box scores, lineups, standings, schedule, and Statcast leaderboards. Minor-league coverage available on request.
How real-time is MLB pitch data?
Real-time tier publishes within 500ms of the pitch crossing the plate. Statcast metrics (velocity, spin) are available immediately. Standard tier is 1–3 seconds.
How far back does MLB historical data go?
Box scores and game data go back to the 1876 NL inaugural season. Play-by-play from 1974. Statcast metrics (velocity, spin, exit velo) from 2015 onward when MLB deployed the league-wide tracking system.
Do you support minor league and international leagues?
MiLB Triple-A, Double-A coverage on request. NPB (Japan), KBO (Korea), CPBL (Taiwan), and LMP available on enterprise tier with appropriate licensing.
Can I build a fantasy baseball app on this?
Yes — daily lineup confirmations, real-time stat updates, and full per-player splits make it ideal for season-long and DFS apps. The /players/{id}/stats endpoint includes all common fantasy categories.
Does the API include MLB betting data?
Yes, on the appropriately licensed tier. Run lines, totals, props (player strikeouts, home runs, total bases), and futures from major US and international sportsbooks.
Build with MLB data today
14-day free trial. No credit card required for evaluation. We'll provision your API key within one business day.