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

Group: Players

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.

Plans: Every plan, Free included.

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

## Parameters

| Name | In | Required | Description |
| --- | --- | --- | --- |
| `id` | path | yes | league id issued by DataSportsAPI, a positive integer |
| `season` | query | yes | season id, as listed by /v2/leagues/{id}/seasons |
| `type` | query | no | 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 | no | player (the default) or game |

## Response

- `data`: `ShootingZone[]`
- `meta`: season, per, type (as applied)
- Objects: ShootingZone (https://datasportsapi.com/markdown/reference.md#shootingzone)

## Errors

- 403 history_not_in_plan — your plan’s history window begins after this season ended
- 404 no_data — our data source has no zone figures for this season

Plus the errors every /v2 call shares (https://datasportsapi.com/markdown/docs/errors.md).

## Request

cURL:

```bash
curl -H "Authorization: Bearer sk_live_…" \
    "https://api.datasportsapi.com/v2/leagues/{id}/shooting-zones?season=…"
```

TypeScript:

```ts
const { data, meta } = await client.leagues.shootingZones(id, { season });
```

Python:

```python
res = client.leagues.shooting_zones(id, season=season)
```

Go:

```go
res, err := client.Leagues.ShootingZones(ctx, id, &datasportsapi.LeaguesShootingZonesParams{Season: season})
```

CLI:

```bash
$ dsa leagues shooting-zones <id> --season <season>
```

## Example response

```json
{ "data": [ { "zone": 1, "average": 36.44, "percentiles": [32.56, 33.33, 37.75, 43.56, 50] }, … ], "meta": { "season": 100772, "per": "player", "type": "regularSeason" } }
```

---

Base URL: https://api.datasportsapi.com. Authenticate each /v2 call with the header `Authorization: Bearer <key>` (secret keys begin with `sk_live_`).
HTML: https://datasportsapi.com/docs/players/leagues-shooting-zones/ · Group: https://datasportsapi.com/markdown/docs/players.md · All docs: https://datasportsapi.com/markdown/docs.md · Data model: https://datasportsapi.com/markdown/reference.md
