Get live MLB scores

GET/v1/mlb/scores/live

Real-time scores with inning, count, baserunners, and last pitch detail.

Code samples

# 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"
  }]
}

Query parameters

ParameterTypeRequiredDescription
teamstringNoFilter by team (e.g. LAD)
sincestringNoISO 8601 timestamp

Response

{
  "games": [{
    "game_id": "746521",
    "status": "in_progress",
    "inning": 9, "half": "top",
    "count": { "balls": 1, "strikes": 2 },
    "baserunners": { "first": "judge-aaron", "second": null, "third": null },
    "home": { "team": "NYY", "score": 3 },
    "away": { "team": "LAD", "score": 5 }
  }]
}

Error responses

StatusCodeDescription
401unauthorizedMissing or invalid API key
403tier_insufficientYour plan tier doesn't include this resource
429rate_limitedExceeded rate limit; honor Retry-After
500internal_errorServer error; retry with exponential backoff