Endpoint Playground
Returns one MLB team's statistics. `team_id` and `group` (`hitting`, `pitching`, `fielding`, `catching`, `running`, `game`, `team` or `streak`) are required. `season` defaults to the current year and `stat_type` to `season`. Other `stat_type` values cover splits and logs. Use `start_date` with `end_date` for date ranges.
14 Oct 2026: 1 splits; 3 fields had a value in every checked item.
curl 'https://api.crawlora.net/api/v1/mlb/team-stats?team_id=147&group=hitting&stat_type=projected&game_type=S' \
-H "x-api-key: $CRAWLORA_API_KEY"| Parameter | Type | Required | Prefilled value | Description |
|---|---|---|---|---|
| team_id | string | Yes | 147 | Numeric MLB team id |
| season | integer | No | Four-digit season | |
| group | string | Yes | hitting | Statistics 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 |
{
"code": 200,
"msg": "OK",
"data": {
"season": 2026,
"group": "hitting",
"type": "season",
"total": 10,
"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.