MLB API

All 30 MLB teams, every regular-season, postseason, and spring-training game. Live scores, pitch-by-pitch with Statcast, box scores, lineups, standings, schedule, and Statcast leaderboards.

Endpoints

MethodPathDescription
GET/v1/mlb/scores/liveLive scores with inning, count, and baserunners
GET/v1/mlb/games/{id}/pitchesEvery pitch with Statcast metrics
GET/v1/mlb/games/{id}/box-scoreComplete box score with sabermetrics
GET/v1/mlb/teams/{id}/lineupConfirmed daily lineups
GET/v1/mlb/statcastStatcast leaderboards

Data tiers

Every endpoint is available on real-time, standard, and delayed tiers. See data freshness for details.

ID formats

  • Team IDs: league-standard 3-letter abbreviations (LAL, BOS, GSW)
  • Player IDs: kebab-case slugs (lebron-james, jayson-tatum)
  • Game IDs: league-native format (NBA 0022500412, NFL 2024_09_KC_BUF, MLB 746521)