MLB game_player_batter_stats API
game_player_batter_stats
mlb.game_player_batter_statsEach batter's box-score stat line for each MLB game — at-bats, hits, doubles, triples, home runs, RBIs, walks, strikeouts, stolen bases, and runs scored.
GET/api/v1/mlb/game_player_batter_statsList game_player_batter_stats for MLB
Requires one of:
game_id or player_id — requests satisfying none of these return 400.Parameters
game_idquerybigintoptionalFilter to a single game.
player_idquerybigintoptionalFilter to a single player.
limitqueryintegeroptionaldefault 50Page size. Defaults to 50; max 5000.
from_idquerybigintoptionalReturn rows with id strictly greater than this value; page using the previous response's `next_from_id`. Omit on the first page.
Restores the documented defaults (trial keys only accept the unchanged defaults).
Request
curl -sS --compressed \
-H 'Authorization: Bearer YOUR_API_KEY' \
'https://api.stat-api.com/api/v1/mlb/game_player_batter_stats?game_id=1'Responses
200game_player_batter_stats rows matching the declared filter set, wrapped in { game_player_batter_stats, limit, next_from_id }. next_from_id is the last row's id on a full page — pass it back via ?from_id= to walk the full result; null marks the terminal page.application/jsonshow example ▸
400No declared filter set was satisfied — response body matches MissingRequiredFiltersError; pick one combo from the accepted-sets hint and resend.
application/jsonResponse Schema(42 fields)show schema ▸
| Field | Type | References | Description |
|---|---|---|---|
idkey | bigint | — | Primary Key |
game_id | bigint | — e.g. 64 | |
player_id | bigint | — e.g. 604 | |
team_id | bigint | — e.g. 41 | |
air_outs | integer | — | — e.g. 0 |
at_bats | integer | — | — e.g. 3 |
at_bats_per_home_run | decimal | — | — e.g. 0.0000 |
babip | decimal | — | — e.g. 0.0000 |
balls_in_play | integer | — | — e.g. 0 |
batting_average | decimal | — | — e.g. 0.0000 |
catchers_interference | integer | — | — e.g. 0 |
caught_stealing | integer | — | — e.g. 0 |
double_plays | integer | — | — e.g. 0 |
doubles | integer | — | — e.g. 0 |
fly_outs | integer | — | — e.g. 0 |
ground_into_double_play | integer | — | — e.g. 0 |
ground_into_triple_play | integer | — | — e.g. 0 |
ground_outs | integer | — | — e.g. 0 |
hit_by_pitch | integer | — | — e.g. 0 |
hits | integer | — | — e.g. 0 |
home_runs | integer | — | — e.g. 0 |
intentional_walks | integer | — | — e.g. 0 |
isolated_power | decimal | — | — e.g. 0.0000 |
left_on_base | integer | — | — e.g. 0 |
line_outs | integer | — | — e.g. 0 |
on_base_percentage | decimal | — | — e.g. 0.0000 |
on_base_plus_slugging | decimal | — | — e.g. 0.0000 |
pickoffs | integer | — | — e.g. 0 |
plate_appearances | integer | — | — e.g. 4 |
pop_outs | integer | — | — e.g. 0 |
runs | integer | — | — e.g. 0 |
runs_batted_in | integer | — | — e.g. 0 |
sacrifice_flies | integer | — | — e.g. 0 |
sacrifices | integer | — | — e.g. 0 |
singles | integer | — | — e.g. 0 |
slugging_percentage | decimal | — | — e.g. 0.0000 |
stolen_bases | integer | — | — e.g. 0 |
strikeouts | integer | — | — e.g. 0 |
total_bases | integer | — | — e.g. 0 |
triples | integer | — | — e.g. 0 |
walks | integer | — | — e.g. 0 |
woba | decimal | — | — e.g. 0.0000 |
GET/api/v1/mlb/game_player_batter_stats/{id}Get a single game_player_batter_stat by id
Parameters
idpathbigintrequiredPrimary key (id) of the game_player_batter_stat row.
Restores the documented defaults (trial keys only accept the unchanged defaults).
Request
curl -sS --compressed \
-H 'Authorization: Bearer YOUR_API_KEY' \
'https://api.stat-api.com/api/v1/mlb/game_player_batter_stats/{pk_value}'Responses
200Single game_player_batter_stat row.application/jsonshow example ▸
404Row not found.
Response Schema(42 fields)show schema ▸
| Field | Type | References | Description |
|---|---|---|---|
idkey | bigint | — | Primary Key |
game_id | bigint | — e.g. 64 | |
player_id | bigint | — e.g. 604 | |
team_id | bigint | — e.g. 41 | |
air_outs | integer | — | — e.g. 0 |
at_bats | integer | — | — e.g. 3 |
at_bats_per_home_run | decimal | — | — e.g. 0.0000 |
babip | decimal | — | — e.g. 0.0000 |
balls_in_play | integer | — | — e.g. 0 |
batting_average | decimal | — | — e.g. 0.0000 |
catchers_interference | integer | — | — e.g. 0 |
caught_stealing | integer | — | — e.g. 0 |
double_plays | integer | — | — e.g. 0 |
doubles | integer | — | — e.g. 0 |
fly_outs | integer | — | — e.g. 0 |
ground_into_double_play | integer | — | — e.g. 0 |
ground_into_triple_play | integer | — | — e.g. 0 |
ground_outs | integer | — | — e.g. 0 |
hit_by_pitch | integer | — | — e.g. 0 |
hits | integer | — | — e.g. 0 |
home_runs | integer | — | — e.g. 0 |
intentional_walks | integer | — | — e.g. 0 |
isolated_power | decimal | — | — e.g. 0.0000 |
left_on_base | integer | — | — e.g. 0 |
line_outs | integer | — | — e.g. 0 |
on_base_percentage | decimal | — | — e.g. 0.0000 |
on_base_plus_slugging | decimal | — | — e.g. 0.0000 |
pickoffs | integer | — | — e.g. 0 |
plate_appearances | integer | — | — e.g. 4 |
pop_outs | integer | — | — e.g. 0 |
runs | integer | — | — e.g. 0 |
runs_batted_in | integer | — | — e.g. 0 |
sacrifice_flies | integer | — | — e.g. 0 |
sacrifices | integer | — | — e.g. 0 |
singles | integer | — | — e.g. 0 |
slugging_percentage | decimal | — | — e.g. 0.0000 |
stolen_bases | integer | — | — e.g. 0 |
strikeouts | integer | — | — e.g. 0 |
total_bases | integer | — | — e.g. 0 |
triples | integer | — | — e.g. 0 |
walks | integer | — | — e.g. 0 |
woba | decimal | — | — e.g. 0.0000 |