Skip to main content
Glama

DunkAPI

get_plays

Read-only

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.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
madeNoOnly made (true) or missed (false) shots.
teamNoA team's plays (id or abbreviation).
zoneNoOne shot zone.
limitNoMax plays (default 200).
clutchNoLast 5 minutes of the 4th quarter (college men: 2nd half) or overtime, score within 5.
leagueNoLeague. Defaults to nba. One of: nba, wnba, ncaam, ncaaw.
offsetNo
periodNo
seasonNoSeason by the year it ends (default: the latest; ignored with game_id).
game_idNoOne game: every play in order.
player_idNoA player's plays (with season).
shots_onlyNoField goal and free throw attempts only.
season_typeNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
countYes
playsYes
next_offsetNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.