View metric stats
Request
- Base URL: https://statsapi.mlb.com
- URL: https://statsapi.mlb.com/api/v1/stats/metrics
- Auth: none declared
Query parameters
Unique Player Identifier. Format: 434538, 429665, etc
Unique Player Identifier. Format: 434538, 429665, etc
Unique Player Identifier. Format: 434538, 429665, etc
Unique Player Identifier. Format: 434538, 429665, etc
Unique Team Identifier. Format: 141, 147, etc
Type of statistics. Format: Individual, Team, Career, etc. Available types in /api/v1/statTypes
Category of statistic to return. Available types in /api/v1/statGroups
Season of play
Comma delimited list of Seasons of play
Top level organization of a sport
A unique identifier for the opposing team. Must be used with Team ID
A unique identifier for the opposing team
All of the details of a player's position
Type of event
Classification of pitch (fastball, curveball, etc...)
Trajectory of hit (line drive, fly ball, etc...)
Bat side of hitter
Handedness of pitcher
All of the details of a venue
Name of metric(s) for metric log stats. Available metrics in /api/v1/metrics
Unique Primary Key Representing a Game
Minimum value to filter on
Maximum value to filter on
Only return averages above this percentile. used for best effort plays
Minimum occurrences to filter upon
The pointer to start for a return set; used for pagination
Number of results to return
The order of sorting, ascending or descending
Date of Game. Format: YYYY-MM-DD
Start date for range of data (must be used with end date). Format: MM/DD/YYYY
End date for range of data (must be used with start date). Format: MM/DD/YYYY
Type of Game. Available types in /api/v1/gameTypes
A unique identifier for the batter's team
A unique identifier for the pitcher's team
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.