Skip to content
API v2 docs

Players

League shooting zones

GET

/v2/leagues/{id}/shooting-zones

All plans

Markdown copyOpen in the playground →

Field-goal percentage per court zone across a league season: an average plus five percentile marks, computed per player or per game — the benchmark against which a player’s shooting by zone is read.

zone is the source’s court zone, numbered 1–9; the numbering is the same on every chart.

Parameters

id

pathrequired

league id issued by DataSportsAPI, a positive integer

season

queryrequired

season id, as listed by /v2/leagues/{id}/seasons

type

query

overall | home | away | regularSeason | playoffs | mainDraw (a tennis tournament’s main draw). When omitted, the season’s native type applies: overall if the season has one (football), otherwise regularSeason (NBA, NHL, …); meta.type reports the one applied

per

query

player (the default) or game

Response

meta
season, per, type (as applied)
errors
403 history_not_in_plan — your plan’s history window begins after this season ended404 no_data — our data source has no zone figures for this season

The errors every /v2 call shares (key, plan, quota, rate) are listed under error codes.

curl -H "Authorization: Bearer sk_live_…" \
    "https://api.datasportsapi.com/v2/leagues/{id}/shooting-zones?season=…"
Example
{ "data": [ { "zone": 1, "average": 36.44, "percentiles": [32.56, 33.33, 37.75, 43.56, 50] }, … ], "meta": { "season": 100772, "per": "player", "type": "regularSeason" } }