mlb_player_stats
Retrieve a single player's MLB stats for hitting, pitching, or fielding as season, career, year-by-year, or game log splits. Provide the player ID to get structured results.
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. |