Teams
View a teams info
This endpoint allows you to pull teams
get/api/v1/teams/{teamId}/roster
Request
- Base URL: https://statsapi.mlb.com
- URL: https://statsapi.mlb.com/api/v1/teams/{teamId}/roster
- Auth: none declared
Path parameters
teamIdinteger required
Unique Team Identifier. Format: 141, 147, etc
rosterTypestring required
Type of roster. Available types in /api/v1/rosterTypes
Query parameters
seasonstring
Season of play
datestring date
Date of Game. Format: YYYY-MM-DD
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
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.