GET/api/v1/seasons
Seasons
Key dates for a season (or all seasons).
On this page
Try it
https://statsapi.mlb.com/api/v1/seasons?sportId=1&season=2026const res = await fetch('https://statsapi.mlb.com/api/v1/seasons?sportId=1&season=2026')
const data = await res.json()curl -s 'https://statsapi.mlb.com/api/v1/seasons?sportId=1&season=2026'
Reference
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
sportId | number | no | Sport id. |
season | number | no | Four-digit year. Omit with |
all | boolean | no | Return every season. |
Response
Type: SeasonsResponse
/** `GET /api/v1/seasons` */
export interface SeasonsResponse extends WithCopyright {
seasons: Season[]
}Notes
Use this to find
regularSeasonStartDate,allStarDate, postseason windows, etc.
Build with it
Live examples powered by this endpoint with real data. Inspiration — restyle and remix freely.
Season calendar
Key dates — spring, Opening Day, season end, postseason.
Loading season…
Example URLs
- 2026 season dates:
https://statsapi.mlb.com/api/v1/seasons?sportId=1&season=2026