Attendance
Get team attendance
get/api/v1/attendance
Request
- Base URL: https://statsapi.mlb.com
- URL: https://statsapi.mlb.com/api/v1/attendance
- Auth: none declared
Query parameters
teamIdinteger[]
Unique Team Identifier. Format: 141, 147, etc
leagueIdinteger[]
Comma delimited list of Unique league identifiers
seasonstring[]
Comma delimited list of Seasons of play
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
gameTypeGame Type Enum[]
Type of Game. Available types in /api/v1/gameTypes
datestring date
Date of Game. Format: YYYY-MM-DD
startDatestring date
Start date for range of data (must be used with end date). Format: MM/DD/YYYY
endDatestring date
End date for range of data (must be used with start date). Format: MM/DD/YYYY
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.