---
title: "Shot chart"
method: POST
path: "/v1/get_shot_chart"
tags: ["Multi-table"]
---

# Shot chart

`POST /v1/get_shot_chart`

## Request

- Base URL: `https://mcp.dunkapi.com`
- URL: `https://mcp.dunkapi.com/v1/get_shot_chart`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer

Use for a shot profile: attempts, makes, percentage, points per shot and expected points per shot in each zone (restricted area, paint, midrange, corner three, above-the-break three, free throws) for a player, a team, a team's opponents or one game. include_shots adds every located shot's x/y and result for drawing a chart. Costs 10 credits.

## Request body

- object
  - `player_id` string
  - `team` string: Team id or abbreviation.
  - `opponent` boolean: With team: the shots its opponents took (its defence).
  - `game_id` string
  - `season` union: Season by the year it ends (default: the latest).
    - number
    - string
  - `season_type` 'regular' | 'postseason' | 'play_in' | 'preseason'
  - `include_shots` boolean: Add each shot's x, y and result (up to 3,000).
  - `league` 'nba' | 'wnba': League. Defaults to nba. One of: nba, wnba.

## Response `200`

The result, wrapped in data.

- object
  - `data` object, required
    - `season` number, nullable, required
    - `zones` object[], required
    - `field_goal_attempts` number, required
    - `share` object
    - `shots` object[]
    - `shots_note` string
    - `note` string
    - `unlocated_attempts` number
    - `unlocated_note` string

## Other responses

- `400`: Invalid arguments.
- `401`: Missing or invalid API key.
- `402`: Not enough credits.
- `429`: Rate limited.

---

[API](https://skmtc.dev/dunkapi/apis/dunkapi-api.md) · [All operations](https://skmtc.dev/dunkapi/apis/dunkapi-api/llms.txt) · [OpenAPI document](https://skmtc.dev/dunkapi/apis/dunkapi-api/revisions/9bf7a0add0eb?raw)
