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

Group: Players

A league season’s field-goal percentage per court zone: the average and five percentiles, per player or per game — what a player’s shooting by zone is read against.

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

## Parameters

| Name | In | Required | Description |
| --- | --- | --- | --- |
| `id` | path | yes | our numeric id (positive integer) |
| `season` | query | yes | a season id from /v2/leagues/{id}/seasons |
| `type` | query | no | 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 |
| `per` | query | no | player (default) or game |

## Response

- `data`: `ShootingZone[]`
- `meta`: season, per, type (the one used)
- Objects: ShootingZone (https://sportsapi.app/markdown/en/reference.md#shootingzone)

## Errors

- 403 history_not_in_plan — a season before your plan’s history
- 404 no_data — the source has none for this season

Plus the common errors (https://sportsapi.app/markdown/en/docs.md#errors).

## Request

cURL:

```bash
curl -H "Authorization: Bearer sk_live_…" \
    "https://api.sportsapi.app/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, &sportsapi.LeaguesShootingZonesParams{Season: season})
```

CLI:

```bash
$ sportsapi 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.sportsapi.app. Send your API key as `Authorization: Bearer <key>` on every /v2 request; keys are created in the dashboard (https://sportsapi.app/dashboard).
HTML: https://sportsapi.app/docs/players/leagues-shooting-zones · All docs: https://sportsapi.app/markdown/en/docs.md
