get_leaders
Read-only
Use for a season's leaders among qualified players: batting avg, obp, slg, ops, hr, re24, bb_pct, k_pct (3.1 plate appearances per team game) or pitching era, whip, so, k_per_9, bb_per_9 (1 inning per team game). Costs 5 credits.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stat | Yes | ||
| limit | No | ||
| league | No | League. Defaults to mlb. One of: mlb, ncaabase. | |
| min_ip | No | Override the innings minimum. | |
| min_pa | No | Override the plate-appearance minimum. | |
| season | No | Season (a year, e.g. 2025; default: the latest). |
Output Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stat | Yes | ||
| count | Yes | ||
| season | Yes | ||
| leaders | Yes | ||
| qualifier | Yes |