-
-
Notifications
You must be signed in to change notification settings - Fork 109
Function: meta
Get available values from StatsAPI for use in other queries, or look up descriptions for values found in API results.
statsapi.meta(type, fields=None)
Limit the fields returned by providing a comma-separated list in the fields
parameter. Get the field names from the un-limited response for the same type
.
To get a list of leader categories to use when calling the team_leaders function:
statsapi.meta('leagueLeaderTypes')
awards
baseballStats
eventTypes
freeGameTypes
gameStatus
gameTypes
hitTrajectories
jobTypes
languages
leagueLeaderTypes
logicalEvents
metrics
pitchCodes
pitchTypes
platforms
positions
reviewReasons
rosterTypes
runnerDetailTypes
scheduleTypes
scheduleEventTypes
situationCodes
sky
standingsTypes
statGroups
statTypes
violationTypes
windDirection
Note: This information is provided for reference only, without warranty or guarantee, and is not official documentation provided by MLB. This package and its author are not affiliated with MLB or any MLB team. This API wrapper interfaces with MLB's Stats API. Use of MLB data is subject to the notice posted at http://gdx.mlb.com/components/copyright.txt.