Skip to contents

Get NBA Stats API Shot Chart Detail

Get NBA Stats API Shot Chart Detail

Usage

nba_shotchartdetail(
  context_measure = "FGA",
  date_from = "",
  date_to = "",
  game_id = "",
  game_segment = "",
  last_n_games = 0,
  league_id = "00",
  location = "",
  month = 0,
  opponent_team_id = 0,
  outcome = "",
  period = 0,
  player_id = "202696",
  player_position = "",
  rookie_year = "",
  season = year_to_season(most_recent_nba_season() - 1),
  season_segment = "",
  season_type = "Regular Season",
  team_id = 0,
  vs_conference = "",
  vs_division = "",
  ...
)

Arguments

context_measure

context_measure

date_from

date_from

date_to

date_to

game_id

game_id

game_segment

game_segment

last_n_games

last_n_games

league_id

league_id

location

location

month

month

opponent_team_id

opponent_team_id

outcome

outcome

period

period

player_id

player_id

player_position

player_position

rookie_year

rookie_year

season

season

season_segment

season_segment

season_type

season_type

team_id

team_id

vs_conference

vs_conference

vs_division

vs_division

...

Additional arguments passed to an underlying function like httr.

Value

Return a named list of data frames: LeagueAverages, Shot_Chart_Detail

Shot_Chart_Detail

col_nametypes
GRID_TYPEcharacter
GAME_IDcharacter
GAME_EVENT_IDcharacter
PLAYER_IDcharacter
PLAYER_NAMEcharacter
TEAM_IDcharacter
TEAM_NAMEcharacter
PERIODcharacter
MINUTES_REMAININGcharacter
SECONDS_REMAININGcharacter
EVENT_TYPEcharacter
ACTION_TYPEcharacter
SHOT_TYPEcharacter
SHOT_ZONE_BASICcharacter
SHOT_ZONE_AREAcharacter
SHOT_ZONE_RANGEcharacter
SHOT_DISTANCEcharacter
LOC_Xcharacter
LOC_Ycharacter
SHOT_ATTEMPTED_FLAGcharacter
SHOT_MADE_FLAGcharacter
GAME_DATEcharacter
HTMcharacter
VTMcharacter

LeagueAverages

col_nametypes
GRID_TYPEcharacter
SHOT_ZONE_BASICcharacter
SHOT_ZONE_AREAcharacter
SHOT_ZONE_RANGEcharacter
FGAcharacter
FGMcharacter
FG_PCTcharacter

Details

 nba_shotchartdetail(league_id = '00', player_id = '202696', season = year_to_season(most_recent_nba_season() - 1))

Author

Saiem Gilani