Schedule

This endpoint allows you to pull schedules for tracking events

get/api/v1/schedule/trackingEvents

Request

  • Base URL: https://statsapi.mlb.com
  • URL: https://statsapi.mlb.com/api/v1/schedule/trackingEvents
  • Auth: none declared

Query parameters

calendarTypesCalendarTypes[]

Comma delimited list of type of calendar types

eventTypesCalendarTypes[]

Comma delimited list of type of events. <b>Note: Don't Use. This will be deprecated in favor of calendarTypes</b>

teamIdinteger[]

Unique Team Identifier. Format: 141, 147, etc

leagueIdinteger[]

Unique League Identifier

sportIdinteger[]

Top level organization of a sport

gamePkinteger

Unique Primary Key Representing a Game

gamePksinteger[]

Comma delimited list of unique primary keys

eventIdsinteger[]

A unique identifier for non-game event

venueIdsinteger[]

Unique Venue Identifier

performerIdsinteger[]

A unique identifier for non-team event performers

gameTypesGameTypeEnum[]

Comma delimited list of type of Game. Available types in /api/v1/gameTypes

gameTypeGameTypeEnum[]

Type of Game. Available types in /api/v1/gameTypes

seasonstring[]

Season of play

seasonsstring[]

Comma delimited list of Seasons of play

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

timecodestring

Use this parameter to return a snapshot of the data at the specified time. Format: YYYYMMDD_HHMMSS

useLatestGamesboolean
opponentIdinteger[]

A unique identifier for the opposing team. Must be used with Team ID

publicFacing'PUBLIC_FACING' | 'NON_PUBLIC_FACING' | 'ALL'

Return public, non-public or all games. Format: Public Facing = 'Y', Non-Public Facing = 'N', All = 'A'

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.