Sports
Get all players for a sport level
This endpoint allows you to pull all players for a given sport
get/api/v1/sports/{sportId}/players
Request
- Base URL: https://statsapi.mlb.com
- URL: https://statsapi.mlb.com/api/v1/sports/{sportId}/players
- Auth: none declared
Path parameters
sportIdinteger required
Top level organization of a sport
Query parameters
seasonstring
Season of play
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
hasStatsboolean
Returns sports that have individual player stats
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.