Analytics

Get tracking metadata for games

get/api/v1/analytics/game

Request

  • Base URL: https://statsapi.mlb.com
  • URL: https://statsapi.mlb.com/api/v1/analytics/game
  • Auth: none declared

Query parameters

fieldsstring[]

Comma delimited list of specific fields to be returned. Format: topLevelNode, childNode, attribute

gameModeIdinteger

Statcast game mode. Format: 0 = Batting Practive, 1 = Warmup 2 = Live

isPitchboolean

If there was a pitch

isHitboolean

If there was a hit ball tracked

isPickoffboolean

If there was a pickoff

isNonStatcastboolean

If non statcast games need to be included

gamedayTypestring

Indicates the level of Gameday (tracking, play-by-play, linescore, etc...)

hasUpdatesboolean

True if updated by an auditor

lastPlayTimestring date-time

Returns all data that was created after the specified timestamp. Format: YYYY-MM-DDTHH:MM:SSZ

lastVideoUpdatedTimestring date-time

The last time SportyBot video was updated

lastUpdatedTimestring date-time

Return data updated since a specified date. Format: YYYY-MM-DDTHH:MM:SSZ

lastMetricsUpdatedTimestring date-time

Return data updated since a specified date. Format: YYYY-MM-DDTHH:MM:SSZ

lastAuditUpdatedTimestring date-time

Return data updated since a specified date. Format: YYYY-MM-DDTHH:MM:SSZ

gameDatestring date

Comma delimited list of top level organizations of a sport

sportIdinteger

Top level organization of a sport

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

seasonstring

Season of play

sortBystring

Sort the set of data by the specified field

limitinteger

Number of results to return

offsetinteger

The pointer to start for a return set; used for pagination

Response

OK

Changes

No recorded changes to this operation across all 1 revision of this API.