Get ranked MLB league statistics
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).
Request
- Base URL: https://api.crawlora.net/api/v1
- URL: https://api.crawlora.net/api/v1/mlb/league-stats
- Auth: API key in header x-api-key
Query parameters
Four-digit season; defaults to current year
Stat group
Stats API stat type; defaults to season
MLB game type
Start date for byDateRange stat types; requires end_date
End date for byDateRange stat types; requires start_date
Required by vsTeam stat types
Required by vsPlayer stat types
MLB league id
Optional MLB team id; discover current team ids with mlb_teams
Hitter position; use only with group=hitting
Qualified-player pool
Results to return (1-100)
Zero-based result offset (0-10000)
Headers
API key required
Response
OK
Example response
{
"code": 200,
"msg": "OK"
}Changes
No recorded changes to this operation across all 2 revisions of this API.