MLB API endpoint
Use Crawlora's Baseball Savant Batted Ball Profile API to extract supported public MLB data as structured JSON. This page includes request parameters, cURL examples, response schema, error behavior, credit cost, and a Playground link for testing before integration.
/mlb/statcast-batted-ballReturns the Batted Ball Profile table for batters, batting teams, pitchers, pitching teams, or league totals. Supports first-party season, game type, split, team, date, side, hand, pitch type, event threshold, and split-group threshold filters. The All-Star A game type is accepted by the live page query although its checkbox is hidden. Sorting and pagination are local. The league-average reference row is returned separately when requested; CSV and visualization controls are outside this JSON contract. Developers commonly use this endpoint for data enrichment, monitoring, research dashboards, internal automation, and agent-native workflows that need repeatable structured public web data. Authentication uses the documented Crawlora headers, and usage is metered with the credit cost shown on this page.
Request parameters are generated from the active endpoint catalog. Required values must be sent before Crawlora can call the upstream public web data source.
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| type | string | No | Row type Allowed values: batter, batting-team, pitcher, pitching-team, league | ||
| seasons | array | No | One or more seasons | ||
| game_types | array | No | One or more game type codes | ||
| splits | array | No | One or more split dimensions | ||
| min | string | No | Minimum batted-ball events Allowed values: q, 1, 5, 10, 25, 50, 100, 200, 500, 1000 | ||
| min_split | string | No | Minimum rows per split group Allowed values: 1, 5, 10, 25, 50, 100, 200, 500, 1000 | ||
| split_year | string | No | Split seasons into separate rows Allowed values: 1, 0 | ||
| teams | array | No | One or more MLB team ids | ||
| date_start | string | No | YYYY-MM-DD date range start (2015-04-05 through today) | ||
| date_end | string | No | YYYY-MM-DD date range end (2015-04-05 through today) | ||
| bat_side | string | No | Batter side Allowed values: L, R | ||
| pitch_hand | string | No | Pitcher throwing hand Allowed values: L, R | ||
| pitch_types | array | No | One or more pitch type codes | ||
| include_league_average | boolean | No | Include the first-party league-average reference row | ||
| sort | string | No | Local table sort field Allowed values: name, team_name, num_bbe, gb_rate, air_rate, fb_rate, ld_rate, pu_rate, pull_rate, straight_rate, oppo_rate, pull_gb_rate, straight_gb_rate, oppo_gb_rate, pull_air_rate, straight_air_rate, oppo_air_rate | ||
| sort_dir | string | No | Sort direction Allowed values: asc, desc | ||
| limit | integer | No | Rows per page (1-500) Minimum: 1. Maximum: 500. | ||
| offset | integer | No | Zero-based row offset Minimum: 0. Maximum: 10000. | ||
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/mlb/statcast-batted-ball?type=batter&min=q&min_split=1&split_year=1&bat_side=L&pitch_hand=L&include_league_average=true&sort=name&sort_dir=asc&limit=10" \ -H "x-api-key: $CRAWLORA_API_KEY"
Send your scraping API key in the x-api-key header. Use the console API Keys page to rotate or select the active key.
Endpoint usage is metered in credits. The plan prices, included credits, limits, and overage rates below match the active backend billing configuration.
| Plan | Price | Included credits | Daily cap | Rate limit | Overage |
|---|---|---|---|---|---|
| Free | $0/mo | 2,000 | 500 daily credits | 5/min | No overage |
| Starter | $9/mo | 20,000 | 5,000 daily credits | 15/min | $0.75/1,000 overage credits when enabled |
| Growth | $29/mo | 100,000 | 25,000 daily credits | 45/min | $0.45/1,000 overage credits when enabled |
| Pro | $79/mo | 400,000 | No daily cap | 120/min | $0.30/1,000 overage credits |
| Business | $199/mo | 1,200,000 | No daily cap | 300/min | $0.20/1,000 overage credits |
| Enterprise | $499/mo | 5,000,000 | No daily cap | 1,000/min | $0.12/1,000 overage credits |
This endpoint is executed through Crawlora's managed scraping infrastructure.
Example response: ```json { "code": 200, "data": { "board": "batted-ball", "type": "batter", "seasons": ["2026"], "game_types": ["R"], "min": "q", "total": 346, "rows": [{"name": "Rojas, Miguel", "team_name": "Dodgers", "num_bbe": 207, "pull_air_rate": 0.169}] } } ```
Crawlora does not silently return bad data when the upstream page cannot be used.
| Status | Common failure case |
|---|---|
| 400 | Invalid input or missing required parameter |
| 429 | Plan or endpoint rate limit exceeded |
| 500 | Internal execution error |
| 502 | Upstream platform failed, returned unusable HTML, or served a challenge page that could not be resolved |
When possible, Crawlora returns structured error context so your integration can retry, back off, or inspect the request.
| Status | Description | Schema |
|---|---|---|
| 400 | Bad Request | #/definitions/app.Response |
| 404 | Not Found | #/definitions/app.Response |
| 503 | Service Unavailable | #/definitions/app.Response |
{
"code": 200,
"data": {
"board": "batted-ball",
"type": "batter",
"seasons": [
"2026"
],
"game_types": [
"R"
],
"min": "q",
"total": 346,
"rows": [
{
"name": "Rojas, Miguel",
"team_name": "Dodgers",
"num_bbe": 207,
"pull_air_rate": 0.169
}
]
}
}Request schema
No body schema
Response schema
#/definitions/mlb.statcastBattedBallResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| board | string | No | batted-ball | |||
| game_types | array | No | R | |||
| league_average | array | No | ||||
| min | string | No | q | |||
| min_split | string | No | 1 | |||
| rows | array | No | ||||
| seasons | array | No | 2026 | |||
| show_league_average | boolean | No | true | |||
| total | integer | No | 346 | |||
| type | string | No | batter |
Use environment variables for secrets and keep Crawlora API keys server-side.
curl -X GET "https://api.crawlora.net/api/v1/mlb/statcast-batted-ball?type=batter&min=q&min_split=1&split_year=1&bat_side=L&pitch_hand=L&include_league_average=true&sort=name&sort_dir=asc&limit=10" \
-H "x-api-key: $CRAWLORA_API_KEY"Crawlora is designed for responsible structured public web data workflows. Customers are responsible for using Crawlora in compliance with applicable laws, third-party rights, target-platform rules, and Crawlora terms.
Read Crawlora terms