Player season stats
baseball_player_statsRetrieve a player's regular-season hitting or pitching line and sabermetric rates, including AVG, OBP, SLG, OPS, ERA, FIP, WHIP, K%, and BABIP.
Instructions
Get one player's regular-season line plus computed sabermetric rates.
Hitting returns AVG/OBP/SLG/OPS, ISO, BABIP, BB%, K%, BB/K. Pitching returns ERA, FIP, ERA-FIP, WHIP, K%, BB%, K-BB%, BABIP, LOB%, HR/9 (FIP uses a league constant computed from that season's league totals). Use baseball_pitcher_luck_check for an ERA-vs-FIP read.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| team | No | Optional team filter to disambiguate same-name players. | |
| group | No | 'hitting' or 'pitching'. | hitting |
| format | No | 'markdown' (default) or 'json'. | markdown |
| league | No | Which league's data to use. | MLB |
| player | Yes | MLB: English name or numeric MLB id. KBO: Korean name as in the CSV. | |
| season | No | Season year. Default: current MLB season / latest KBO file. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |