Endpoint Playground
Returns ranked MLB stat splits across both leagues. `group` is required (`hitting`, `pitching`, `fielding`, `catching`, `running`, `game`, `team` or `streak`). `season` defaults to the current year and `stat_type` to `season`. Narrow with `league_id`, `team_id`, `position`, `player_pool`, and page with `limit` (1 to 100) and `offset` (0 to 10000).
14 Oct 2026: 40 splits; 7 fields had a value in every checked item.
Sample value profiles: position: Outfielder (17), First Base (6), Catcher (4) and 4 more; rank: 1 to 40, median 20.
curl 'https://api.crawlora.net/api/v1/mlb/league-stats?group=hitting&stat_type=projected&game_type=S&league_id=103&position=C&player_pool=QUALIFIED' \
-H "x-api-key: $CRAWLORA_API_KEY"| Parameter | Type | Required | Prefilled value | Description |
|---|---|---|---|---|
| season | integer | No | Four-digit season; defaults to current year | |
| group | string | Yes | hitting | Stat group |
| stat_type | string | No | projected | Stats API stat type; defaults to season |
| game_type | string | No | S | MLB game type |
| start_date | string | No | Start date for byDateRange stat types; requires end_date | |
| end_date | string | No | End date for byDateRange stat types; requires start_date | |
| opponent_team_id | string | No | Required by vsTeam stat types | |
| opponent_player_id | string | No | Required by vsPlayer stat types | |
| league_id | string | No | 103 | MLB league id |
| team_id | string | No | Optional MLB team id; discover current team ids with mlb_teams | |
| position | string | No | C | Hitter position; use only with group=hitting |
| player_pool | string | No | QUALIFIED | Qualified-player pool |
| limit | integer | No | Results to return (1-100) | |
| offset | integer | No | Zero-based result offset (0-10000) |
{
"code": 200,
"msg": "OK",
"data": {
"season": 2026,
"group": "hitting",
"type": "season",
"total": 10,
"limit": 10,
"offset": 0,
"splits": [
{
"rank": 1,
"player": {
"id": 592450,
"name": "Aaron Judge"
},
"stats": {
"homeRuns": 58
}
}
]
}
}The sample response, schema and code snippets below work without an account. Sending a live request needs an API key.