League

View league info

get/api/v1/leagues

Request

  • Base URL: https://statsapi.mlb.com
  • URL: https://statsapi.mlb.com/api/v1/leagues
  • Auth: none declared

Path parameters

leagueIdinteger required

Unique League Identifier

Query parameters

leagueIdsinteger[]

Comma delimited list of Unique league identifiers

seasonstring

Season of play

seasonsstring[]

Comma delimited list of Seasons of play

fieldsstring[]

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

sportIdinteger

Top level organization of a sport

activeStatus'ACTIVE' | 'INACTIVE' | 'PENDING' | 'BOTH'

Flag for fetching leagues that are currently active (Y), inactive (N), pending (P), or all teams (B)

Response

OK

copyrightstring

Changes

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