Season leaderboard
baseball_leaderboardRank baseball players by computed sabermetric metrics like FIP, K-BB%, and ISO, including stats not published by the source, for hitting and pitching leaderboards.
Instructions
Rank players by any computed metric, including ones the source does not publish (FIP, K-BB%, LOB%, ISO...).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| team | No | Only players whose team contains this text. | |
| group | No | 'hitting' or 'pitching'. | hitting |
| limit | No | Rows to return. | |
| format | No | 'markdown' (default) or 'json'. | markdown |
| league | No | Which league's data to use. | MLB |
| min_ip | No | Extra minimum IP filter (pitching). | |
| min_pa | No | Extra minimum PA filter (hitting). | |
| season | No | Season year. Default: current MLB season / latest KBO file. | |
| sort_by | Yes | Metric to rank by. Hitting: ops, obp, slg, avg, iso, babip, bb_pct, k_pct, bb_k, hr, hr_pct, sb, pa. Pitching: fip, era, era_minus_fip, whip, k_pct, bb_pct, k_minus_bb_pct, k9, bb9, hr9, babip, lob_pct, ip, so. | |
| ascending | No | Override sort direction. Default: best first (low ERA/FIP/WHIP, high OPS...). | |
| qualified | No | Only rate-qualified players (3.1 PA / 1.0 IP per team game). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |