Multi-table

Plays

Use for play-by-play: every event of a game, or a player's or team's plays across a season, with shot location (feet), zone, our expected points, the score and the home win probability after each play (2018 on). Filter to shots, makes or misses, a zone, a period or clutch time. Pass league for the WNBA (wnba) or college (ncaam, ncaaw); default NBA. Costs 10 credits.

post/v1/get_plays

Request

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

Request body

game_idstring

One game: every play in order.

player_idstring

A player's plays (with season).

teamstring

A team's plays (id or abbreviation).

season_type'regular' | 'postseason' | 'play_in' | 'preseason'
shots_onlyboolean

Field goal and free throw attempts only.

madeboolean

Only made (true) or missed (false) shots.

zone'restricted_area' | 'paint' | 'midrange' | 'corner_3' | 'above_break_3' | 'free_throw'

One shot zone.

periodinteger
clutchboolean

Last 5 minutes of the 4th quarter (college men: 2nd half) or overtime, score within 5.

limitinteger

Max plays (default 200).

offsetinteger
league'nba' | 'wnba' | 'ncaam' | 'ncaaw'

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

Response

The result, wrapped in data.

Changes

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