mlb_team_stats
Get aggregate MLB team stats for a season, split by hitting, pitching, or fielding group and stat type.
Instructions
One team's aggregate stats — by season + group (hitting/pitching/fielding) and stat type.
Returns: {stats:[{type, group, splits:[{season, team, stat:{...}}]}]}
Auth: none needed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| group | No | hitting | pitching | fielding. | hitting |
| stats | No | season | career | yearByYear | ... | season |
| season | Yes | Season year. | |
| teamId | Yes | Team id. Required — part of the URL path. | |
| sportId | No | Sport id (1 = MLB). |