get_mlb_sabermetrics
Fetch sabermetric statistics, including WAR, for multiple MLB players in a specific season. Specify player IDs, season year, stat name, and group (hitting or pitching) to retrieve advanced baseball performance metrics.
Instructions
Get sabermetric statistics (including WAR) for multiple players for a specific season.
Args: player_ids (str): Comma-separated list of player IDs. season (int): Season year. stat_name (Optional[str]): Specific sabermetric stat to extract (e.g., 'war', 'woba', 'wRc'). group (str): Stat group ('hitting' or 'pitching').
Returns: dict: Sabermetric statistics.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
group | No | hitting | |
player_ids | Yes | ||
season | Yes | ||
stat_name | No |