get_leaders
5 creditsStats + aggregationPOST /v1/get_leaders
Season leaders among qualified batters and pitchers
Use it when you want who leads a stat among qualified players: OPS or RE24 for hitters, ERA or K/9 for pitchers.
Parameters
statenum: avg | obp | slg | ops | hr | re24 | bb_pct | k_pct | era | whip | so | k_per_9 | bb_per_9requiredseasonnumber | stringoptional- Season (a year, e.g. 2025; default: the latest).
min_paintegeroptional- Override the plate-appearance minimum.
min_ipintegeroptional- Override the innings minimum.
limitintegeroptional
Notes
- Over MCP, ask for it in plain English and the client calls
get_leadersitself. Point any MCP client athttps://mcp.fastballapi.com/mcp?key=YOUR_API_KEY. - Each call costs 5 credits, taken before it runs and refunded if the server errors.
- Not the call you need? Find the right call by what you are trying to answer.
Request
curl -X POST https://mcp.fastballapi.com/v1/get_leaders \
-H "Content-Type: application/json" \
-H "x-api-key: YOUR_API_KEY" \
-d '{
"stat": "ops",
"season": 2024,
"limit": 3
}'Response
json
{
"stat": "ops",
"season": 2024,
"qualifier": "502 plate appearances",
"leaders": [
{
"player_id": "33192",
"name": "Aaron Judge",
"team": "NYY",
"pa": 704,
"avg": 0.322,
"obp": 0.458,
"slg": 0.701,
"ops": 1.159,
"k_pct": 0.243,
"bb_pct": 0.189,
"hr": 58,
"re24": 98.7
},
{
"player_id": "39832",
"name": "Shohei Ohtani",
"team": "LAD",
"pa": 730,
"avg": 0.31,
"obp": 0.391,
"slg": 0.647,
"ops": 1.038,
"k_pct": 0.221,
"bb_pct": 0.111,
"hr": 54,
"re24": 77.4
},
{
"player_id": "36969",
"name": "Juan Soto",
"team": "NYM",
"pa": 713,
"avg": 0.288,
"obp": 0.419,
"slg": 0.569,
"ops": 0.989,
"k_pct": 0.167,
"bb_pct": 0.181,
"hr": 41,
"re24": 73.9
}
],
"count": 3
}Response fields
statstringseasonnumberqualifierstringleaders[]array- List of objects
leaders[].player_idstringleaders[].namestringleaders[].teamstringleaders[].panumberleaders[].avgnumberleaders[].obpnumberleaders[].slgnumberleaders[].opsnumberleaders[].k_pctnumberleaders[].bb_pctnumberleaders[].hrnumberleaders[].re24numbercountnumber
Related endpoints
get_player5 cr
Takes the player_id this one returns.
Season batting (AVG, OBP, SLG, OPS, RE24) and pitching (ERA, WHIP, K/9)
get_player_games5 cr
Takes the player_id this one returns.
A player's full batting and pitching game log
list_teams1 cr
Filters by the same season.
Team ids, abbreviations and colours for a season
search_players1 cr
Filters by the same limit.
Find players by name
Try it
500 credits free on signup: 100 calls to get_leaders, and no card.