Teams
View info for all teams
This endpoint allows you to pull teams
get/api/v1/teams/{teamId}
Request
- Base URL: https://statsapi.mlb.com
- URL: https://statsapi.mlb.com/api/v1/teams/{teamId}
- Auth: none declared
Path parameters
teamIdinteger required
Unique Team Identifier. Format: 141, 147, etc
Query parameters
seasonstring
Season of play
sportIdinteger
Top level organization of a sport
divisionIdinteger
Unique Division Identifier
gameType'SPRING_TRAINING' | 'REGULAR_SEASON' | 'FIRST_ROUND' | 'DIVISION_SERIES' | 'LEAGUE_CHAMPIONSHIP_SERIES' | 'WORLD_SERIES' | 'CHAMPIONSHIP' | 'NINETEENTH_CENTURY_SERIES' | 'PLAYOFFS' | 'ALL_STAR' | 'INTRASQUAD' | 'EXHIBITION'
Type of Game. Available types in /api/v1/gameTypes
leagueIdsinteger[]
Comma delimited list of Unique league identifiers
sportIdsinteger[]
Comma delimited list of top level organizations of a sport
activeStatus'ACTIVE' | 'INACTIVE' | 'PENDING' | 'BOTH'
Flag for fetching teams that are currently active (Y), inactive (N), pending (P), or all teams (B)
leagueListId'MILB_FULL' | 'MILB_SHORT' | 'MILB_COMPLEX' | 'MILB_ALL' | 'MILB_ALL_NOMEX' | 'MILB_ALL_DOMESTIC' | 'MILB_NONCOMP' | 'MILB_NONCOMP_NOMEX' | 'MILB_DOMCOMP' | 'MILB_INTCOMP' | 'WIN_NOABL' | 'WIN_CARIBBEAN' | 'WIN_ALL' | 'ABL' | 'MEX_ALL' | 'MLB' | 'MLB_HIST' | 'MLB_MILB' | 'MLB_MILB_HIST' | 'MLB_MILB_WIN' | 'BASEBALL_ALL' | 'MLB_SPRING'
Unique League List Identifier
allStarStatusesAll Star Enum[]
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.