mlb_team_stats
Fetch MLB team aggregate stats for a given season, group (hitting, pitching, fielding), and stat type by team ID.
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). |