get_player
Read-only
Use for a player's season-by-season batting (AVG, OBP, SLG, OPS, HR, K%, BB%, RE24, from every plate appearance) and pitching (ERA, WHIP, K/9, BB/9). Costs 5 credits.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| league | No | League. Defaults to mlb. One of: mlb, ncaabase. | |
| player_id | Yes | ESPN athlete id, from search_players. |
Output Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | Yes | ||
| player | Yes | ||
| batting | Yes | ||
| pitching | Yes |