mlbstats/api/docs/BatTrackingApi.md

1.7 KiB

{{classname}}

All URIs are relative to https://statsapi.mlb.com

Method HTTP request Description
BatTracking Get /api/v1/batTracking/game/{gamePk}/{playId} View Bat Tracking Data by playId and gameId

BatTracking

BatTrackingRestObject BatTracking(ctx, gamePk, playId, optional) View Bat Tracking Data by playId and gameId

This endpoint allows you to pull bat tracking data by gameId and playId

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
gamePk int32 Unique Primary Key Representing a Game
playId string Unique play identifier
optional *BatTrackingApiBatTrackingOpts optional parameters nil if no parameters

Optional Parameters

Optional parameters are passed through a pointer to a BatTrackingApiBatTrackingOpts struct

Name Type Description Notes

fields | **optional.Interface of []string**| Comma delimited list of specific fields to be returned. Format: topLevelNode, childNode, attribute |

Return type

BatTrackingRestObject

Authorization

basicAuth, bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]