MLB game_player_pitching_stats API
game_player_pitching_stats
mlb.game_player_pitching_statsEach pitcher's box-score stat line for each MLB game — innings pitched, hits and runs allowed, earned runs, walks, strikeouts, home runs allowed, and pitches thrown.
GET/api/v1/mlb/game_player_pitching_statsList game_player_pitching_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_pitching_stats?game_id=1'Responses
200game_player_pitching_stats rows matching the declared filter set, wrapped in { game_player_pitching_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(68 fields)show schema ▸
| Field | Type | References | Description |
|---|---|---|---|
idkey | bigint | — | Primary Key |
game_id | bigint | — e.g. 64 | |
player_id | bigint | — e.g. 1382 | |
team_id | bigint | — e.g. 33 | |
air_outs | integer | — | — e.g. 0 |
babip | decimal | — | — e.g. 0.0000 |
balks | integer | — | — e.g. 0 |
balls | integer | — | — e.g. 0 |
balls_in_play | integer | — | — e.g. 0 |
batters_faced | integer | — | — e.g. 3 |
blown_save | integer | — | — e.g. 0 |
catchers_interference | integer | — | — e.g. 0 |
complete_games | integer | — | — e.g. 0 |
double_plays | integer | — | — e.g. 0 |
doubles_allowed | integer | — | — e.g. 0 |
earned_run_average | decimal | — | — e.g. 0.0000 |
earned_runs | integer | — | — e.g. 0 |
fip | decimal | — | — e.g. 3.1000 |
fly_outs | integer | — | — e.g. 0 |
games_finished | integer | — | — e.g. 0 |
games_pitched | integer | — | — e.g. 1 |
games_started | integer | — | — e.g. 0 |
grand_slams_allowed | integer | — | — e.g. 0 |
ground_into_double_play | integer | — | — e.g. 0 |
ground_outs | integer | — | — e.g. 0 |
hit_by_pitch | integer | — | — e.g. 0 |
hits_allowed | integer | — | — e.g. 0 |
hold | integer | — | — e.g. 0 |
home_runs_allowed | integer | — | — e.g. 0 |
home_runs_per_nine | decimal | — | — e.g. 0.0000 |
inherited_runners | integer | — | — e.g. 0 |
inherited_runners_scored | integer | — | — e.g. 0 |
inning_started | integer | — | — e.g. 0 |
innings_pitched | decimal | — | Innings pitched in MLB notation (6.2 = 6 and 2/3 innings) e.g. 1.0000 |
intentional_walks | integer | — | — e.g. 0 |
left_on_base | decimal | — | — e.g. 0.0000 |
line_outs | integer | — | — e.g. 0 |
loss | integer | — | — e.g. 0 |
no_hitters | integer | — | — e.g. 0 |
on_base_percentage | decimal | — | — e.g. 0.0000 |
on_base_plus_slugging | decimal | — | — e.g. 0.0000 |
outs | integer | — | — e.g. 3 |
perfect_games | integer | — | — e.g. 0 |
pickoffs | integer | — | — e.g. 0 |
pitches_thrown | integer | — | — e.g. 0 |
plate_appearances | integer | — | — e.g. 0 |
pop_outs | integer | — | — e.g. 0 |
quality_starts | integer | — | — e.g. 0 |
runs_allowed | integer | — | — e.g. 0 |
runs_scored_per_nine | decimal | — | — e.g. 0.0000 |
sacrifice_flies_allowed | integer | — | — e.g. 0 |
sacrifices_allowed | integer | — | — e.g. 0 |
save | integer | — | — e.g. 0 |
shutouts | integer | — | — e.g. 0 |
singles_allowed | integer | — | — e.g. 0 |
slugging_percentage | decimal | — | — e.g. 0.0000 |
strike_percentage | decimal | — | — e.g. 0.0000 |
strikeouts_per_nine | decimal | — | — e.g. 0.0000 |
strikeouts_pitched | integer | — | — e.g. 0 |
strikes | integer | — | — e.g. 0 |
total_bases_allowed | integer | — | — e.g. 0 |
triples_allowed | integer | — | — e.g. 0 |
walks_allowed | integer | — | — e.g. 0 |
walks_per_nine | decimal | — | — e.g. 0.0000 |
whip | decimal | — | — e.g. 0.0000 |
wild_pitches | integer | — | — e.g. 0 |
win | integer | — | — e.g. 0 |
woba | decimal | — | — e.g. 0.0000 |
GET/api/v1/mlb/game_player_pitching_stats/{id}Get a single game_player_pitching_stat by id
Parameters
idpathbigintrequiredPrimary key (id) of the game_player_pitching_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_pitching_stats/{pk_value}'Responses
200Single game_player_pitching_stat row.application/jsonshow example ▸
404Row not found.
Response Schema(68 fields)show schema ▸
| Field | Type | References | Description |
|---|---|---|---|
idkey | bigint | — | Primary Key |
game_id | bigint | — e.g. 64 | |
player_id | bigint | — e.g. 1382 | |
team_id | bigint | — e.g. 33 | |
air_outs | integer | — | — e.g. 0 |
babip | decimal | — | — e.g. 0.0000 |
balks | integer | — | — e.g. 0 |
balls | integer | — | — e.g. 0 |
balls_in_play | integer | — | — e.g. 0 |
batters_faced | integer | — | — e.g. 3 |
blown_save | integer | — | — e.g. 0 |
catchers_interference | integer | — | — e.g. 0 |
complete_games | integer | — | — e.g. 0 |
double_plays | integer | — | — e.g. 0 |
doubles_allowed | integer | — | — e.g. 0 |
earned_run_average | decimal | — | — e.g. 0.0000 |
earned_runs | integer | — | — e.g. 0 |
fip | decimal | — | — e.g. 3.1000 |
fly_outs | integer | — | — e.g. 0 |
games_finished | integer | — | — e.g. 0 |
games_pitched | integer | — | — e.g. 1 |
games_started | integer | — | — e.g. 0 |
grand_slams_allowed | integer | — | — e.g. 0 |
ground_into_double_play | integer | — | — e.g. 0 |
ground_outs | integer | — | — e.g. 0 |
hit_by_pitch | integer | — | — e.g. 0 |
hits_allowed | integer | — | — e.g. 0 |
hold | integer | — | — e.g. 0 |
home_runs_allowed | integer | — | — e.g. 0 |
home_runs_per_nine | decimal | — | — e.g. 0.0000 |
inherited_runners | integer | — | — e.g. 0 |
inherited_runners_scored | integer | — | — e.g. 0 |
inning_started | integer | — | — e.g. 0 |
innings_pitched | decimal | — | Innings pitched in MLB notation (6.2 = 6 and 2/3 innings) e.g. 1.0000 |
intentional_walks | integer | — | — e.g. 0 |
left_on_base | decimal | — | — e.g. 0.0000 |
line_outs | integer | — | — e.g. 0 |
loss | integer | — | — e.g. 0 |
no_hitters | integer | — | — e.g. 0 |
on_base_percentage | decimal | — | — e.g. 0.0000 |
on_base_plus_slugging | decimal | — | — e.g. 0.0000 |
outs | integer | — | — e.g. 3 |
perfect_games | integer | — | — e.g. 0 |
pickoffs | integer | — | — e.g. 0 |
pitches_thrown | integer | — | — e.g. 0 |
plate_appearances | integer | — | — e.g. 0 |
pop_outs | integer | — | — e.g. 0 |
quality_starts | integer | — | — e.g. 0 |
runs_allowed | integer | — | — e.g. 0 |
runs_scored_per_nine | decimal | — | — e.g. 0.0000 |
sacrifice_flies_allowed | integer | — | — e.g. 0 |
sacrifices_allowed | integer | — | — e.g. 0 |
save | integer | — | — e.g. 0 |
shutouts | integer | — | — e.g. 0 |
singles_allowed | integer | — | — e.g. 0 |
slugging_percentage | decimal | — | — e.g. 0.0000 |
strike_percentage | decimal | — | — e.g. 0.0000 |
strikeouts_per_nine | decimal | — | — e.g. 0.0000 |
strikeouts_pitched | integer | — | — e.g. 0 |
strikes | integer | — | — e.g. 0 |
total_bases_allowed | integer | — | — e.g. 0 |
triples_allowed | integer | — | — e.g. 0 |
walks_allowed | integer | — | — e.g. 0 |
walks_per_nine | decimal | — | — e.g. 0.0000 |
whip | decimal | — | — e.g. 0.0000 |
wild_pitches | integer | — | — e.g. 0 |
win | integer | — | — e.g. 0 |
woba | decimal | — | — e.g. 0.0000 |