View stats
Request
- Base URL: https://statsapi.mlb.com
- URL: https://statsapi.mlb.com/api/v1/stats
- Auth: none declared
Query parameters
Type of statistics. Format: Individual, Team, Career, etc. Available types in /api/v1/statTypes
Unique Player Identifier. Format: 434538, 429665, etc
Unique Team Identifier. Format: 141, 147, etc
Comma delimited list of Unique Team identifiers
Category of statistic to return. Available types in /api/v1/statGroups
Type of Game. Available types in /api/v1/gameTypes
Season of play
Comma delimited list of Seasons of play
Top level organization of a sport
Comma delimited list of top level organizations of a sport
Unique League Identifier
Comma delimited list of Unique league identifiers
Unique League List Identifier
Name of metric(s) for metric log stats. Available metrics in /api/v1/metrics
Unique Primary Key Representing a Game
A unique identifier for the batter's team
A unique identifier for the pitcher's team
Unique Player Identifier. Format: 434538, 429665, etc
Unique Player Identifier. Format: 434538, 429665, etc
Situation code for a given stat split.
If true, gathers stats where all of the situational criteria are met. If false, returns stats where any of the situational criteria are met. Default: false
A unique identifier for the opposing team. Must be used with Team ID
Baseball stat to sort splits by.
The order of sorting, ascending or descending
Return "ALL" or only "QUALIFIED" players based on plate appearances.
Position number. Format: 1, 2, 3, etc
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
Returns results from the last 'X' days (Starting from yesterday).
Returns results from the last 'X' games played.
Excludes players who have since been traded from the input team
The pointer to start for a return set; used for pagination
Number of results to return
Response
OK
Changes
No recorded changes to this operation across all 1 revision of this API.