BaseballData API
Data
Coverage
MLB seasons held129MLB 2026 games2,469Postseason line scores40WBC and Premier12 games242Czech box scores1,430
See all coverage
DocsPricingStatus

Documentation/Games

GET /v1/{league}/games/{id}/boxscore | Baseball Data API

Batting and pitching lines for both sides of one game, where held.
GEThttps://api.baseballapi.net/v1/{league}/games/{id}/boxscore

Try it

Run calls the API with your key.
// The answer appears here.

Returns

FieldWhat it holds
game_idstring: the game's id
awayobject: batting (player, order, position, substitute, pa, ab, r, h, doubles, triples, hr, rbi, bb, ibb, so, hbp, sh, sf, sb, cs, gidp) and pitching (player, started, outs, innings, bf, h, r, er, bb, ibb, so, hr, hbp, wp, bk, pitches, strikes, decision)
homeobject: the same for the home side
heldboolean: false when no box score is held for this game (the lists are then empty)

Example answer

The example is being collected; it appears here once the daily sample job has run.

Errors

Every endpoint can answer unauthorized, unknown_parameter, rate_limited, quota_exceeded and server_error, and not_found for an id or league that is not ours. See Errors.