MLB API endpoint
Returns MLB games, teams, scores, status, probable pitchers, venue, and series information for one date or date range, optionally filtered to a team.
/mlb/scheduleUse either date, or both start_date and end_date, in YYYY-MM-DD format. Optional team_id filters games to one team. Optional game_type accepts S (Spring Training), R (Regular Season), F (Wild Card), D (Division Series), L (League Championship Series), W (World Series), C (Championship), P (Postseason), A (All-Star Game), I (Intrasquad), or E (Exhibition). See /mlb/discovery for the current values. Games include status, teams, scores, probable pitchers, venue, and series metadata. A zero total and empty games list is valid when no MLB games are scheduled.
| Field | Filled in, of 15 checked | Values in the sample |
|---|---|---|
| id | 15 | |
| official_date | 15 | 2026-08-01 |
| game_date | 15 | 2026-08-01 to 2026-08-02 |
| season | 15 | 2,026 |
| game_type | 15 | R in all 15 |
| game_number | 15 | 1 |
| double_header | 15 | N in all 15 |
| day_night | 15 | night (11), day (4) |
| scheduled_innings | 15 | 9 |
| series_description | 15 | Regular Season in all 15 |
| status | 15 | |
| venue | 15 | |
| away | 15 | |
| home | 15 |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| date | string | No | Single date in YYYY-MM-DD format | 2026-08-01 | |
| start_date | string | No | Range start in YYYY-MM-DD format | ||
| end_date | string | No | Range end in YYYY-MM-DD format | ||
| team_id | string | No | Numeric MLB team id | ||
| game_type | string | No | Game type Allowed values: S, R, F, D, L, W, C, P, A, I, E. | ||
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/mlb/schedule?game_type=S" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"date": "2026-08-01",
"total_games": 15,
"games": [
{
"id": 822781,
"status": {
"detailed": "Final"
},
"away": {
"team": {
"id": 111,
"name": "Boston Red Sox"
},
"score": 2
},
"home": {
"team": {
"id": 147,
"name": "New York Yankees"
},
"score": 4
}
}
]
}
}Request schema
No body schema
Response schema
#/definitions/mlb.scheduleResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | mlb.ScheduleResponse | No | ||||
| data.date | string | No | ||||
| data.end_date | string | No | ||||
| data.fetched_at | string | No | ||||
| data.games | array | No | GameSummary record, 40 fields: away, day_night, double_header, game_date, game_number, game_type, home, id, official_date, scheduled_innings, season, series_description and 2 more. Described under Get an MLB game feed API. | |||
| data.source_url | string | No | ||||
| data.start_date | string | No | ||||
| data.team_id | integer | No | ||||
| data.total_games | integer | No | ||||
| msg | string | No | OK |
| Status | Description | Schema |
|---|---|---|
| 400 | Bad Request | #/definitions/app.Response |
| 429 | Too Many Requests | #/definitions/app.Response |
| 503 | Service Unavailable | #/definitions/app.Response |
Use environment variables for secrets and keep Crawlora API keys server-side.
curl -X GET "https://api.crawlora.net/api/v1/mlb/schedule?game_type=S" \
-H "x-api-key: $CRAWLORA_API_KEY"