Season

View season info

This endpoint returns season info for a specific sport. The sportId parameter is required.

get/api/v1/seasons/{seasonId}

Request

  • Base URL: https://statsapi.mlb.com
  • URL: https://statsapi.mlb.com/api/v1/seasons/{seasonId}
  • Auth: none declared

Path parameters

seasonIdstring required

Season of play

Query parameters

seasonstring[]

Season of play

sportIdinteger required

Top level organization of a sport

withGameTypeDatesboolean

Retrieve dates for each game type

fieldsstring[]

Comma delimited list of specific fields to be returned. Format: topLevelNode, childNode, attribute

Response

OK

Changes

No recorded changes to this operation across all 1 revision of this API.