4.8 KiB
{{classname}}
All URIs are relative to https://statsapi.mlb.com
Method | HTTP request | Description |
---|---|---|
Venues | Get /api/v1/venues | View venue info |
Venues1 | Get /api/v1/venues/{venueId} | View venue info |
Venues
VenuesRestObject Venues(ctx, venueId, optional) View venue info
This endpoint allows you to pull venues
Required Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
venueId | int32 | Unique Venue Identifier | |
optional | *VenuesApiVenuesOpts | optional parameters | nil if no parameters |
Optional Parameters
Optional parameters are passed through a pointer to a VenuesApiVenuesOpts struct
Name | Type | Description | Notes |
---|
venueIds | **optional.Interface of []int32**| Comma delimited list of Unique venue identifiers | leagueId | optional.Int32| Unique League Identifier | leagueIds | **optional.Interface of []int32**| Comma delimited list of Unique league identifiers | gameType | optional.Interface of GameTypeEnum| Type of Game. Available types in /api/v1/gameTypes | gameTypes | **optional.Interface of []GameTypeEnum**| Comma delimited list of type of Game. Available types in /api/v1/gameTypes | season | optional.String| Season of play | seasons | **optional.Interface of []string**| Comma delimited list of Seasons of play | fields | **optional.Interface of []string**| Comma delimited list of specific fields to be returned. Format: topLevelNode, childNode, attribute | active | optional.Bool| Whether or not a player is active | includeEvents | optional.Bool| | sportId | optional.Int32| Top level organization of a sport | sportIds | **optional.Interface of []int32**| Comma delimited list of top level organizations of a sport |
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]
Venues1
VenuesRestObject Venues1(ctx, venueId, optional) View venue info
This endpoint allows you to pull venues
Required Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
venueId | int32 | Unique Venue Identifier | |
optional | *VenuesApiVenues1Opts | optional parameters | nil if no parameters |
Optional Parameters
Optional parameters are passed through a pointer to a VenuesApiVenues1Opts struct
Name | Type | Description | Notes |
---|
venueIds | **optional.Interface of []int32**| Comma delimited list of Unique venue identifiers | leagueId | optional.Int32| Unique League Identifier | leagueIds | **optional.Interface of []int32**| Comma delimited list of Unique league identifiers | gameType | optional.Interface of GameTypeEnum| Type of Game. Available types in /api/v1/gameTypes | gameTypes | **optional.Interface of []GameTypeEnum**| Comma delimited list of type of Game. Available types in /api/v1/gameTypes | season | optional.String| Season of play | seasons | **optional.Interface of []string**| Comma delimited list of Seasons of play | fields | **optional.Interface of []string**| Comma delimited list of specific fields to be returned. Format: topLevelNode, childNode, attribute | active | optional.Bool| Whether or not a player is active | includeEvents | optional.Bool| | sportId | optional.Int32| Top level organization of a sport | sportIds | **optional.Interface of []int32**| Comma delimited list of top level organizations of a sport |
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]