get_statcast_batter
Retrieve MLB Statcast batting data for a specific player within a defined date range using a MLBAM ID. Ideal for analyzing player performance metrics.
Instructions
Retrieve MLB Statcast data for a single batter over a date range.
Parameters
player_id : int MLBAM ID of the batter. start_date : str The start date in 'YYYY-MM-DD' format. Required. end_date : str The end date in 'YYYY-MM-DD' format. Required.
Returns
dict Dictionary with Statcast data for the batter. If the result is too large, returns an error message.
Notes
Data is sourced from MLB Statcast via pybaseball. See the official documentation for more details: https://github.com/jldbc/pybaseball/tree/master/docs
Input Schema
Name | Required | Description | Default |
---|---|---|---|
end_date | Yes | ||
player_id | Yes | ||
start_date | Yes |