mlb_team_stats
Retrieve MLB team season statistics by team ID and stat group, including hitting, pitching, fielding, running, and game splits for a chosen season.
Instructions
Get MLB team season statistics. Returns one team's season statistics. Group accepts every value returned by mlb_discovery.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| group | Yes | Statistics group | |
| season | No | Four-digit season | |
| team_id | Yes | Numeric MLB team id | |
| end_date | No | End date for byDateRange stat types; requires start_date | |
| game_type | No | MLB game type | |
| stat_type | No | Stats API stat type; defaults to season | |
| start_date | No | Start date for byDateRange stat types; requires end_date | |
| opponent_team_id | No | Required by vsTeam stat types | |
| opponent_player_id | No | Required by vsPlayer stat types |