Real-time MLB data — 30 teams, pitch-by-pitch coverage

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.

30 teams covered
2,430 regular-season games
Statcast on every pitch
<500ms live latency
# 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"
  }]
}
30
MLB teams
780k+
Pitches per season
148 yrs
Historical box scores
Statcast
On every pitch

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.

GET
/v1/mlb/scores/live
Live Scores
Real-time scores for every active MLB game with inning, count, baserunners, and last pitch detail.
GET
/v1/mlb/games/{id}/pitches
Pitch-by-Pitch
Every pitch with Statcast: velocity, spin rate, pitch type, release point, perceived velocity, and outcome.
GET
/v1/mlb/games/{id}/box-score
Box Score
Complete box score: batting line for every player, full pitching line, and team totals with run support.
GET
/v1/mlb/teams/{id}/lineup
Daily Lineups
Confirmed daily lineups posted 2–4 hours before first pitch with batting order, positions, and probable pitchers.
GET
/v1/mlb/players/{id}/stats
Player Stats
Career batting and pitching splits, situational stats, sabermetrics (wOBA, wRC+, xwOBA, FIP, SIERA) per season.
GET
/v1/mlb/standings
Standings
League, division, and Wild Card standings with magic numbers, run differential, and run-scored splits.
GET
/v1/mlb/schedule
Schedule
Full 162-game schedule plus spring training and playoffs with venue, probable pitchers, and broadcast info.
GET
/v1/mlb/statcast
Statcast Leaders
Statcast leaderboards: exit velocity, launch angle, hard-hit %, sprint speed, arm strength, and pop time.

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.

Request MLB API AccessView Documentation