Skip to contents

Get NBA Stats API Boxscore Advanced V2

Get NBA Stats API Boxscore Advanced V2

Usage

nba_boxscoreadvancedv2(
  game_id,
  start_period = 0,
  end_period = 14,
  start_range = 0,
  end_range = 0,
  range_type = 0,
  ...
)

Arguments

game_id

Game ID

start_period

start_period

end_period

end_period

start_range

start_range

end_range

end_range

range_type

range_type

...

Additional arguments passed to an underlying function like httr.

Value

Returns a named list of data frames: PlayerStats, TeamStats

PlayerStats

col_nametypesdescription
GAME_IDcharacterUnique game identifier.
TEAM_IDcharacterUnique team identifier.
TEAM_ABBREVIATIONcharacterShort team abbreviation (e.g. 'LAS').
TEAM_CITYcharacterTeam city or region (e.g. 'Las Vegas').
PLAYER_IDcharacterUnique player identifier.
PLAYER_NAMEcharacterPlayer name.
NICKNAMEcharacterTeam or athlete nickname.
START_POSITIONcharacter
COMMENTcharacterPlayer status / inactive reason (e.g. 'DNP - Coach's Decision', 'Inactive').
MINcharacterMinutes played.
E_OFF_RATINGcharacter
OFF_RATINGcharacterOffensive rating (points produced per 100 possessions).
E_DEF_RATINGcharacter
DEF_RATINGcharacterDefensive rating (points allowed per 100 possessions).
E_NET_RATINGcharacter
NET_RATINGcharacterNet rating (off rating - def rating).
AST_PCTcharacterAssist percentage (0-1).
AST_TOVcharacter
AST_RATIOcharacterAssist ratio (assists per 100 possessions used).
OREB_PCTcharacterOffensive rebound percentage (0-1).
DREB_PCTcharacterDefensive rebound percentage (0-1).
REB_PCTcharacterTotal rebound percentage (0-1).
TM_TOV_PCTcharacter
EFG_PCTcharacterEffective field goal percentage (0-1).
TS_PCTcharacterTrue shooting percentage (0-1).
USG_PCTcharacterUsage percentage (0-1).
E_USG_PCTcharacter
E_PACEcharacter
PACEcharacterPossessions per 48 minutes.
PACE_PER40characterPace per40.
POSScharacterPoss.
PIEcharacterPlayer Impact Estimate (0-1).

TeamStats

col_nametypesdescription
GAME_IDcharacterUnique game identifier.
TEAM_IDcharacterUnique team identifier.
TEAM_NAMEcharacterFull team display name (e.g. 'Las Vegas Aces').
TEAM_ABBREVIATIONcharacterShort team abbreviation (e.g. 'LAS').
TEAM_CITYcharacterTeam city or region (e.g. 'Las Vegas').
MINcharacterMinutes played.
E_OFF_RATINGcharacter
OFF_RATINGcharacterOffensive rating (points produced per 100 possessions).
E_DEF_RATINGcharacter
DEF_RATINGcharacterDefensive rating (points allowed per 100 possessions).
E_NET_RATINGcharacter
NET_RATINGcharacterNet rating (off rating - def rating).
AST_PCTcharacterAssist percentage (0-1).
AST_TOVcharacter
AST_RATIOcharacterAssist ratio (assists per 100 possessions used).
OREB_PCTcharacterOffensive rebound percentage (0-1).
DREB_PCTcharacterDefensive rebound percentage (0-1).
REB_PCTcharacterTotal rebound percentage (0-1).
E_TM_TOV_PCTcharacter
TM_TOV_PCTcharacter
EFG_PCTcharacterEffective field goal percentage (0-1).
TS_PCTcharacterTrue shooting percentage (0-1).
USG_PCTcharacterUsage percentage (0-1).
E_USG_PCTcharacter
E_PACEcharacter
PACEcharacterPossessions per 48 minutes.
PACE_PER40characterPace per40.
POSScharacterPoss.
PIEcharacterPlayer Impact Estimate (0-1).

Details

 nba_boxscoreadvancedv2(game_id = "0022200021")

Author

Saiem Gilani