View a players stats
Request
- Base URL: https://statsapi.mlb.com
- URL: https://statsapi.mlb.com/api/v1/people/{personId}/stats
- Auth: none declared
Path parameters
Unique Player Identifier. Format: 434538, 429665, etc
Query parameters
Type of statistics. Format: Individual, Team, Career, etc. Available types in /api/v1/statTypes
Comma delimited list of categories 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
Name of metric(s) for metric log stats. Available metrics in /api/v1/metrics
Unique League Identifier
Unique League List Identifier
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
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.
Number of results to return
Type of event
Classification of pitch (fastball, curveball, etc...)
Trajectory of hit (line drive, fly ball, etc...)
Bat side of hitter
Type of Game. Available types in /api/v1/gameTypes
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.