Players

Season shot chart

GET/v2/players/{id}/shot-chartAll plans

A player’s field-goal attempts of one league season by spot, each with its made and missed count — the season shot chart (basketball; ice hockey where the source has one).

x and y are tenths of a foot from the basket, the frame of the match shot chart (/v2/fixtures/{id}/shotmap). The league’s percentages per zone are /v2/leagues/{id}/shooting-zones.

Parameters

id
pathrequired
our numeric id (positive integer)
league
queryrequired
a league id
season
queryrequired
a season id from /v2/leagues/{id}/seasons
type
query
overall | home | away | regularSeason | playoffs | mainDraw (a tennis tournament’s main draw, without qualifying). Default: the season’s own — overall where it has one (football), else regularSeason (NBA, NHL, …); a tennis tournament’s leaderboards (top-players, top-teams, top-performances) default to mainDraw where it has one, else overall; meta.type says which was used

Response

data
SeasonShotChart
meta
league, season, type (the one used), count (spots)
errors
403 history_not_in_plan — a season before your plan’s history404 no_data — no shot chart for this player, league and season

Every /v2 call can also answer the common errors.

Try it →
$ curl -H "Authorization: Bearer sk_live_…" \
    "https://api.sportsapi.app/v2/players/{id}/shot-chart?league=…&season=…"
Example
{ "data": { "spots": [ { "x": -243, "y": 36, "made": 1, "missed": 0 }, { "x": -240, "y": 32, "made": 0, "missed": 1 }, … ] },
  "meta": { "league": 132, "season": 100772, "type": "regularSeason", "count": 313 } }