Skip to contents

Get NBA Stats API Boxscore Usage V3

Get NBA Stats API Boxscore Usage V3

Usage

nba_boxscoreusagev3(
  game_id = "0022200021",
  start_period = 0,
  end_period = 14,
  start_range = 0,
  end_range = 0,
  range_type = 0,
  ...
)

Arguments

game_id

Game ID

start_period

Start period filter - default: 0

end_period

End period filter - default: 0

start_range

Start range filter (in tenths of a second) - default: 0

end_range

End range filter (in tenths of a second) - default: 0

range_type

Range type - 0: by half, 1: by period, 2: custom range

...

Additional arguments passed to an underlying function like httr.

Value

Returns a named list of data frames: home_team_player_usage, away_team_player_usage, home_team_totals_usage, away_team_totals_usage

home_team_player_usage

col_nametypesdescription
game_idcharacterUnique game identifier.
away_team_idintegerUnique identifier for the away team.
home_team_idintegerUnique identifier for the home team.
team_idintegerUnique team identifier.
team_namecharacterFull team display name (e.g. 'Las Vegas Aces').
team_citycharacterTeam city or region (e.g. 'Las Vegas').
team_tricodecharacterThree-letter team code (e.g. 'LAS' / 'NYL').
team_slugcharacterURL-safe team identifier (e.g. 'lasvegas-aces' / 'aces').
person_idintegerUnique player identifier (V3 endpoints).
first_namecharacterPlayer's first name.
family_namecharacterPlayer's family / last name.
name_icharacterInitialed name (e.g. 'A. Wilson').
player_slugcharacterURL-safe player identifier.
positioncharacterListed roster position (G, F, C, etc.).
commentcharacterPlayer status / inactive reason (e.g. 'DNP - Coach's Decision', 'Inactive').
jersey_numcharacterJersey number worn by the player.
minutescharacterMinutes played, formatted MM:SS (V3 PT-duration parsed) or decimal minutes (V2).
usage_percentagenumericUsage percentage (0-1).
percentage_field_goals_madenumericNumber of percentage field goals made.
percentage_field_goals_attemptednumericNumber of percentage field goals attempted.
percentage_three_pointers_madenumericNumber of percentage three pointers made.
percentage_three_pointers_attemptednumericNumber of percentage three pointers attempted.
percentage_free_throws_madenumericNumber of percentage free throws made.
percentage_free_throws_attemptednumericNumber of percentage free throws attempted.
percentage_rebounds_offensivenumericPercentage rebounds offensive.
percentage_rebounds_defensivenumericPercentage rebounds defensive.
percentage_rebounds_totalnumericPercentage rebounds total.
percentage_assistsnumericPercentage assists.
percentage_turnoversnumericPercentage turnovers.
percentage_stealsnumericPercentage steals.
percentage_blocksnumericPercentage blocks.
percentage_blocks_allowednumericPercentage blocks allowed.
percentage_personal_foulsnumericPercentage personal fouls.
percentage_personal_fouls_drawnnumericPercentage personal fouls drawn.
percentage_pointsnumericPercentage points.

away_team_player_usage

col_nametypesdescription
game_idcharacterUnique game identifier.
away_team_idintegerUnique identifier for the away team.
home_team_idintegerUnique identifier for the home team.
team_idintegerUnique team identifier.
team_namecharacterFull team display name (e.g. 'Las Vegas Aces').
team_citycharacterTeam city or region (e.g. 'Las Vegas').
team_tricodecharacterThree-letter team code (e.g. 'LAS' / 'NYL').
team_slugcharacterURL-safe team identifier (e.g. 'lasvegas-aces' / 'aces').
person_idintegerUnique player identifier (V3 endpoints).
first_namecharacterPlayer's first name.
family_namecharacterPlayer's family / last name.
name_icharacterInitialed name (e.g. 'A. Wilson').
player_slugcharacterURL-safe player identifier.
positioncharacterListed roster position (G, F, C, etc.).
commentcharacterPlayer status / inactive reason (e.g. 'DNP - Coach's Decision', 'Inactive').
jersey_numcharacterJersey number worn by the player.
minutescharacterMinutes played, formatted MM:SS (V3 PT-duration parsed) or decimal minutes (V2).
usage_percentagenumericUsage percentage (0-1).
percentage_field_goals_madenumericNumber of percentage field goals made.
percentage_field_goals_attemptednumericNumber of percentage field goals attempted.
percentage_three_pointers_madenumericNumber of percentage three pointers made.
percentage_three_pointers_attemptednumericNumber of percentage three pointers attempted.
percentage_free_throws_madenumericNumber of percentage free throws made.
percentage_free_throws_attemptednumericNumber of percentage free throws attempted.
percentage_rebounds_offensivenumericPercentage rebounds offensive.
percentage_rebounds_defensivenumericPercentage rebounds defensive.
percentage_rebounds_totalnumericPercentage rebounds total.
percentage_assistsnumericPercentage assists.
percentage_turnoversnumericPercentage turnovers.
percentage_stealsnumericPercentage steals.
percentage_blocksnumericPercentage blocks.
percentage_blocks_allowednumericPercentage blocks allowed.
percentage_personal_foulsnumericPercentage personal fouls.
percentage_personal_fouls_drawnnumericPercentage personal fouls drawn.
percentage_pointsnumericPercentage points.

home_team_totals_usage

col_nametypesdescription
game_idcharacterUnique game identifier.
away_team_idintegerUnique identifier for the away team.
home_team_idintegerUnique identifier for the home team.
team_idintegerUnique team identifier.
team_namecharacterFull team display name (e.g. 'Las Vegas Aces').
team_citycharacterTeam city or region (e.g. 'Las Vegas').
team_tricodecharacterThree-letter team code (e.g. 'LAS' / 'NYL').
team_slugcharacterURL-safe team identifier (e.g. 'lasvegas-aces' / 'aces').
minutescharacterMinutes played, formatted MM:SS (V3 PT-duration parsed) or decimal minutes (V2).
usage_percentagenumericUsage percentage (0-1).
percentage_field_goals_madenumericNumber of percentage field goals made.
percentage_field_goals_attemptednumericNumber of percentage field goals attempted.
percentage_three_pointers_madenumericNumber of percentage three pointers made.
percentage_three_pointers_attemptednumericNumber of percentage three pointers attempted.
percentage_free_throws_madenumericNumber of percentage free throws made.
percentage_free_throws_attemptednumericNumber of percentage free throws attempted.
percentage_rebounds_offensivenumericPercentage rebounds offensive.
percentage_rebounds_defensivenumericPercentage rebounds defensive.
percentage_rebounds_totalnumericPercentage rebounds total.
percentage_assistsnumericPercentage assists.
percentage_turnoversnumericPercentage turnovers.
percentage_stealsnumericPercentage steals.
percentage_blocksnumericPercentage blocks.
percentage_blocks_allowednumericPercentage blocks allowed.
percentage_personal_foulsnumericPercentage personal fouls.
percentage_personal_fouls_drawnnumericPercentage personal fouls drawn.
percentage_pointsnumericPercentage points.

away_team_totals_usage

col_nametypesdescription
game_idcharacterUnique game identifier.
away_team_idintegerUnique identifier for the away team.
home_team_idintegerUnique identifier for the home team.
team_idintegerUnique team identifier.
team_namecharacterFull team display name (e.g. 'Las Vegas Aces').
team_citycharacterTeam city or region (e.g. 'Las Vegas').
team_tricodecharacterThree-letter team code (e.g. 'LAS' / 'NYL').
team_slugcharacterURL-safe team identifier (e.g. 'lasvegas-aces' / 'aces').
minutescharacterMinutes played, formatted MM:SS (V3 PT-duration parsed) or decimal minutes (V2).
usage_percentagenumericUsage percentage (0-1).
percentage_field_goals_madenumericNumber of percentage field goals made.
percentage_field_goals_attemptednumericNumber of percentage field goals attempted.
percentage_three_pointers_madenumericNumber of percentage three pointers made.
percentage_three_pointers_attemptednumericNumber of percentage three pointers attempted.
percentage_free_throws_madenumericNumber of percentage free throws made.
percentage_free_throws_attemptednumericNumber of percentage free throws attempted.
percentage_rebounds_offensivenumericPercentage rebounds offensive.
percentage_rebounds_defensivenumericPercentage rebounds defensive.
percentage_rebounds_totalnumericPercentage rebounds total.
percentage_assistsnumericPercentage assists.
percentage_turnoversnumericPercentage turnovers.
percentage_stealsnumericPercentage steals.
percentage_blocksnumericPercentage blocks.
percentage_blocks_allowednumericPercentage blocks allowed.
percentage_personal_foulsnumericPercentage personal fouls.
percentage_personal_fouls_drawnnumericPercentage personal fouls drawn.
percentage_pointsnumericPercentage points.

Details

 nba_boxscoreusagev3(game_id = "0022200021")

Author

Saiem Gilani