Multi-table

Shot chart

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.

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

Request body

player_idstring
teamstring

Team id or abbreviation.

opponentboolean

With team: the shots its opponents took (its defence).

game_idstring
season_type'regular' | 'postseason' | 'play_in' | 'preseason'
include_shotsboolean

Add each shot's x, y and result (up to 3,000).

league'nba' | 'wnba'

League. Defaults to nba. One of: nba, wnba.

Response

The result, wrapped in data.

Changes

No recorded changes to this operation across all 1 revision of this API.