Baseball Season Leaders
baseball_season_leadersTop players in one MLB season for one statistic, from the SABR Lahman Baseball Database. Batting stats: HR, AVG, RBI, R, H, SB, BB, SO, 2B, 3B (AVG = hits/at-bats, qualified at a simple AB>=100 floor -- NOT MLB's official plate-appearance qualifying rule, so this can include players who would not qualify for an official batting title). Pitching stats: W, ERA, SO_P, SV, L, WHIP (SO_P = pitcher strikeouts, to avoid colliding with batting SO; ERA and WHIP are qualified at a simple IPouts>=100 i.e. ~33 innings floor, also not the official rule). Pass stat exactly as listed (case-sensitive). Optionally scope to one league ("AL" or "NL"; pre-1901 leagues like "NA", "AA", "UA", "PL" also appear in the data). limit caps how many rows come back (default 10, max 50). An unrecognized stat name is refused with the list of valid ones, never an empty success.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stat | Yes | One of: HR, AVG, RBI, R, H, SB, BB, SO, 2B, 3B, W, ERA, SO_P, SV, L, WHIP. | |
| year | Yes | Season year, e.g. 1998. | |
| limit | No | Max rows to return, 1-50. Default 10. | |
| league | No | Optional: scope to one league code ("AL", "NL", or an historical league code). |