Sports
Get sports information
This endpoint allows you to pull sports
get/api/v1/sports/{sportId}
Request
- Base URL: https://statsapi.mlb.com
- URL: https://statsapi.mlb.com/api/v1/sports/{sportId}
- Auth: none declared
Path parameters
sportIdinteger required
Top level organization of a sport
Query parameters
seasonstring
Season of play
fieldsstring[]
Comma delimited list of specific fields to be returned. Format: topLevelNode, childNode, attribute
hasStatsboolean
Returns sports that have individual player stats
activeStatus'ACTIVE' | 'INACTIVE' | 'PENDING' | 'BOTH'
Flag for fetching sports that are currently active (Y), inactive (N), pending (P), or all teams (B)
Response
OK
Changes
No recorded changes to this operation across all 1 revision of this API.