Skip to main content
POST
Get leaderboard

Request contract

  • Method and path: POST /apis/v1/baseballsavant-mlb-com/baseball-statcast/get-leaderboard
  • Availability: enabled
  • Request URL template: https://api.aisa.one/apis/v1/baseballsavant-mlb-com/baseball-statcast/get-leaderboard
Complete OpenAPI definition Effective request declaration (including authentication and referenced schemas):

Cost and request rules

Usage-based pricing. Default request estimate: $0.0005 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
board
string
required

Which leaderboard.

Provider reference: allowed values ["expected_statistics", "statcast", "sprint_speed", "outs_above_average", "pitch_arsenals"].

season
number
required

Season year. Statcast pitch tracking starts in 2015; the pitch-level search covers 2008 onward.

Provider reference: minimum 2008; maximum 2100.

cursor
string

Continuation cursor from a previous response's next_cursor; send it with the same other inputs to get the next page.

limit
number
default:50

Maximum rows per page (default 50, max 1000).

Provider reference: minimum 1; maximum 1000; default 50.

min
string

Qualification threshold as the site accepts it: q for qualified (default on expected_statistics, statcast, outs_above_average) or a number (plate appearances / batted balls / competitive runs / pitches; default 10 on sprint_speed, 100 on pitch_arsenals). Pattern: ^(q|[0-9]{1,5})$.

player_type
string
default:batter

batter (default) or pitcher; applies to expected_statistics and statcast only.

Provider reference: allowed values ["batter", "pitcher"]; default "batter".

Response

One Baseball Savant leaderboard as the site's CSV export (/leaderboard/{board}?...&csv=true): expected_statistics (xBA/xSLG/xwOBA, batters or pitchers), statcast (exit velocity and barrels, batters or pitchers), sprint_speed, outs_above_average (fielders) and pitch_arsenals (average velocity per pitch type, pitchers). All qualified rows are fetched and paged with limit/cursor; columns names the board-specific metric columns.

The response contains the tool result directly.

The provider identifies rows as the primary payload key.

These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.