MLB Stats API Docs

Type to search endpoints by name, path, or keyword.

GET/api/v1/seasons

Seasons

Key dates for a season (or all seasons).

On this page

Try it

Query
https://statsapi.mlb.com/api/v1/seasons?sportId=1&season=2026
const 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

NameTypeRequiredDescription
sportIdnumberno

Sport id. 1 is MLB.

seasonnumberno

Four-digit year. Omit with all.

allbooleanno

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