MLB API endpoint
Use Crawlora's MLB Pipeline prospect stats 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/prospect-statsReturns MLB Pipeline prospect stats from the anonymous first-party prospect tables. Supports the Top 100, all-prospect, or one-team list; batter/pitcher views; validated date periods and minimum thresholds; and local name/position filters. Use mlb_discovery for date periods, minimum thresholds, and positions. Team ids come from mlb_teams. 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 |
|---|---|---|---|---|---|
| list_type | string | No | Prospect pool Allowed values: top100, all | ||
| team_id | string | No | Optional MLB team id; selects that team's prospect list and overrides list_type | ||
| date_range | string | No | Prospect table period Allowed values: today, 1day, 10day, 30day, springTraining, Year2019, Year2020, Year2021, Year2022, Year2023, Year2024, Year2025, Year2026 | ||
| player_type | string | No | Player table Allowed values: batters, pitchers | ||
| min_pa | integer | No | Minimum PA threshold Allowed values: 1, 5, 10, 25, 50, 100, 150, 200, 250 | ||
| position | string | No | Position filter Allowed values: 1b, 2b, ss, 3b, c, of, rhp, lhp | ||
| q | string | No | Case-insensitive player-name substring | ||
| limit | integer | No | Rows to return (1-100) Minimum: 1. Maximum: 100. | ||
| 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/prospect-stats?list_type=top100&date_range=today&player_type=batters&min_pa=1&position=1b&q=coffee&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 include player id, name, age, position, rank, team id/code, minor-league level, and the selected batter or pitcher statistics. Filtered totals and page counts are returned separately. `team` is MLB Pipeline's team code; use `team_id` to join against the full team directory.
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 |
| 503 | Service Unavailable | #/definitions/app.Response |
Request schema
No body schema
Response schema
#/definitions/mlb.prospectStatsResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | mlb.ProspectStatsResponse | No | ||||
| data.count | integer | No | ||||
| data.date_range | string | No | ||||
| data.fetched_at | string | No | ||||
| data.limit | integer | No | ||||
| data.list_type | string | No | ||||
| data.min_pa | integer | No | ||||
| data.offset | integer | No | ||||
| data.player_type | string | No | ||||
| data.players | array | No | ||||
| data.players[].age | integer | No | ||||
| data.players[].average | string | No | ||||
| data.players[].batting_stats | object | No | ||||
| data.players[].blown_saves | integer | No | ||||
| data.players[].era | string | No | ||||
| data.players[].holds | integer | No | ||||
| data.players[].losses | integer | No | ||||
| data.players[].name | string | No | ||||
| data.players[].pitching_stats | object | No | ||||
| data.players[].player_id | integer | No | ||||
| data.players[].position | string | No | ||||
| data.players[].rank | integer | No | ||||
| data.players[].saves | integer | No | ||||
| data.players[].slug | string | No | ||||
| data.players[].team | string | No | ||||
| data.players[].team_id | integer | No | ||||
| data.players[].team_level | string | No | ||||
| data.players[].wins | integer | No | ||||
| data.position | string | No | ||||
| data.query | string | No | ||||
| data.source_url | string | No | ||||
| data.team_id | integer | No | ||||
| data.total | integer | No | ||||
| msg | string | No | OK |
Use environment variables for secrets and keep Crawlora API keys server-side.
curl -X GET "https://api.crawlora.net/api/v1/mlb/prospect-stats?list_type=top100&date_range=today&player_type=batters&min_pa=1&position=1b&q=coffee&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