League shooting zones
/
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.
Parameters
idpathrequired
league id issued by DataSportsAPI, a positive integer
seasonqueryrequired
season id, as listed by /v2/leagues/{id}/seasons
typequery
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
perquery
player (the default) or game
Response
- data
ShootingZone[]- meta
- season, per, type (as applied)
- errors
- 403
history_not_in_plan— your plan’s history window begins after this season ended404no_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=…"{ "data": [ { "zone": 1, "average": 36.44, "percentiles": [32.56, 33.33, 37.75, 43.56, 50] }, … ], "meta": { "season": 100772, "per": "player", "type": "regularSeason" } }