get_shot_chart
Read-only
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.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| team | No | Team id or abbreviation. | |
| league | No | League. Defaults to nba. One of: nba, wnba. | |
| season | No | Season by the year it ends (default: the latest). | |
| game_id | No | ||
| opponent | No | With team: the shots its opponents took (its defence). | |
| player_id | No | ||
| season_type | No | ||
| include_shots | No | Add each shot's x, y and result (up to 3,000). |
Output Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| share | No | ||
| shots | No | ||
| zones | Yes | ||
| season | Yes | ||
| shots_note | No | ||
| unlocated_note | No | ||
| unlocated_attempts | No | ||
| field_goal_attempts | Yes |