3.1 KiB
{{classname}}
All URIs are relative to https://statsapi.mlb.com
Method | HTTP request | Description |
---|---|---|
HighLow | Get /api/v1/highLow/{highLowType} | View high/low stats by player or team |
HighLowStats | Get /api/v1/highLow/types | View high/low stat types |
HighLow
HighLowWrapperRestObject HighLow(ctx, highLowType, optional) View high/low stats by player or team
Required Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
highLowType | HighLowTypeEnum | Type of high/low stats ('player', 'team', 'game') | |
optional | *HighLowApiHighLowOpts | optional parameters | nil if no parameters |
Optional Parameters
Optional parameters are passed through a pointer to a HighLowApiHighLowOpts struct
Name | Type | Description | Notes |
---|
statGroup | **optional.Interface of []StatGroup**| Comma delimited list of categories of statistic to return. Available types in /api/v1/statGroups | sortStat | **optional.Interface of []HighLowStatEnum**| Comma delimited list of baseball stats to sort splits by. | season | **optional.Interface of []string**| Comma delimited list of Seasons of play | gameType | **optional.Interface of []GameTypeEnum**| Comma delimited list of type of Game. Available types in /api/v1/gameTypes | teamId | optional.Int32| Unique Team Identifier. Format: 141, 147, etc | leagueId | optional.Int32| Unique League Identifier | sportId | optional.Int32| Top level organization of a sport | offset | optional.Int32| The pointer to start for a return set; used for pagination | limit | optional.Int32| Number of results to return | fields | **optional.Interface of []string**| Comma delimited list of specific fields to be returned. Format: topLevelNode, childNode, attribute |
Return type
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
HighLowStats
[]BaseballStatsTypeRestObject HighLowStats(ctx, ) View high/low stat types
Required Parameters
This endpoint does not need any parameter.
Return type
**[]BaseballStatsTypeRestObject**
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]