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
| Parameter | Type | Required | Description |
|---|---|---|---|
team | string | No | Filter by team (e.g. LAD) |
since | string | No | ISO 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
| Status | Code | Description |
|---|---|---|
| 401 | unauthorized | Missing or invalid API key |
| 403 | tier_insufficient | Your plan tier doesn't include this resource |
| 429 | rate_limited | Exceeded rate limit; honor Retry-After |
| 500 | internal_error | Server error; retry with exponential backoff |