mlb_player_stats
Retrieve a player's MLB stats by type (season, career, year-by-year, game log) and category (hitting, pitching, fielding). Specify player ID, season, and category to get structured splits with team and league details.
Instructions
One player's stats — by type (season / career / yearByYear / gameLog) and group (hitting/pitching/fielding).
Returns: {stats:[{type, group, splits:[{season, stat:{...}, team, league}]}]}
Auth: none needed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| group | No | hitting | pitching | fielding. | hitting |
| stats | No | season | career | yearByYear | gameLog | statSplits. | season |
| season | No | Season year (for season/gameLog types). | |
| personId | Yes | Player id. Required — part of the URL path. |