MLB API endpoint
Use Crawlora's MLB Statcast Pitch Timer Infractions 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-pitch-timerReturns the Pitch Timer Infractions table for pitchers, batters, catchers, teams, or opposing teams. Filters for type, season, minimum pitches, and zero-infraction rows are upstream-backed; entity search, table sorting, and pagination are applied locally. The chart ordering is included as view metadata; the endpoint returns table rows, not the SVG chart. 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 | Entity group Allowed values: Pit, Bat, Cat, Team, Opp | ||
| season | string | No | Season Allowed values: 2023, 2024, 2025, 2026 | ||
| min_pitches | string | No | Minimum pitches Allowed values: 1, 5, 25, 50, 100, 250, 500, 1000 | ||
| include_zeroes | string | No | Include entities without infractions Allowed values: 0, 1 | ||
| q | string | No | Local case-insensitive entity-name substring filter | ||
| chart_sort | string | No | Chart ordering metadata Allowed values: violating, violated, net, ballsAgainst, ballsFor, strikesAgainst, strikesFor, division | ||
| sort | string | No | Local table sort field Allowed values: entity_name, N_pitches, N_time_violations, N_pitcher_pitch_timer, N_batter_pitch_timer, N_batter_timeout, N_catcher_pitch_timer, N_defensive_shift, 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: 5000. | ||
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/mlb/statcast-pitch-timer?type=Pit&season=2023&min_pitches=1&include_zeroes=0&q=coffee&chart_sort=violating&sort=entity_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.
Rows preserve first-party values: `year`, `entity_code`, `entity_id`, `entity_name`, `N_pitches`, `N_batter_pitch_timer`, `N_batter_timeout`, `N_catcher_pitch_timer`, `N_defensive_shift`, `N_pitcher_pitch_timer`, `N_time_violations`, and `rate`. The upstream page also exposes a CSV download and a D3/SVG chart; neither is returned as a separate representation here. Example response: ```json {"code":0,"data":{"board":"pitch-timer-infractions","type":"Team","season":"2026","min_pitches":"1","include_zeroes":false,"chart_sort":"violating","total":1,"sort":"N_time_violations","sort_dir":"desc","offset":0,"limit":1,"rows":[{"entity_code":"Team","entity_id":110,"entity_name":"Orioles","N_pitches":47876,"N_time_violations":20,"rate":2393.8}]}} ```
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": 0,
"data": {
"board": "pitch-timer-infractions",
"type": "Team",
"season": "2026",
"min_pitches": "1",
"include_zeroes": false,
"chart_sort": "violating",
"total": 1,
"sort": "N_time_violations",
"sort_dir": "desc",
"offset": 0,
"limit": 1,
"rows": [
{
"entity_code": "Team",
"entity_id": 110,
"entity_name": "Orioles",
"N_pitches": 47876,
"N_time_violations": 20,
"rate": 2393.8
}
]
}
}Request schema
No body schema
Response schema
#/definitions/mlb.statcastPitchTimerResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| board | string | No | pitch-timer-infractions | |||
| rows | array | No | ||||
| season | string | No | 2026 | |||
| total | integer | No | 30 | |||
| type | string | No | Team |
Use environment variables for secrets and keep Crawlora API keys server-side.
curl -X GET "https://api.crawlora.net/api/v1/mlb/statcast-pitch-timer?type=Pit&season=2023&min_pitches=1&include_zeroes=0&q=coffee&chart_sort=violating&sort=entity_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