GET
/
v1
/
mlb
/
players
/
{id}
/
batting-stats
Get the MLB batting stats line for a player season
curl --request GET \
  --url http://localhost:8082/v1/mlb/players/{id}/batting-stats \
  --header 'Authorization: Bearer <token>'

Authorizations

Authorization
string
header
default:tok_public_demo
required

Send a workspace API token in the Authorization: Bearer <token> header.

Path Parameters

id
string
required

Query Parameters

season
integer
required
Required range: 1900 <= x <= 2100
scope
enum<string>
default:all
Available options:
all,
home,
away,
l3,
l7,
l10,
vs_lhp,
vs_rhp

Response

Batting-stats payload.