Skip to contents

Get NBA Stats API Boxscore Matchups V3

Get NBA Stats API Boxscore Matchups V3

Usage

nba_boxscorematchupsv3(
  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_matchups, away_team_player_matchups

home_team_player_matchups

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.
matchups_person_idintegerUnique identifier for matchups person.
matchups_first_namecharacterMatchups first name.
matchups_family_namecharacterMatchups family name.
matchups_name_icharacterMatchups name i.
matchups_player_slugcharacterMatchups player slug.
matchups_jersey_numcharacterMatchups jersey num.
matchup_minutescharacterMatchup minutes.
matchup_minutes_sortnumericMatchup minutes sort.
partial_possessionsnumericPartial possessions.
percentage_defender_total_timenumericTime / clock value.
percentage_offensive_total_timenumericTime / clock value.
percentage_total_time_both_onnumericPercentage total time both on.
switches_onintegerSwitches on.
player_pointsintegerPlayer points.
team_pointsintegerTeam points.
matchup_assistsintegerMatchup assists.
matchup_potential_assistsintegerMatchup potential assists.
matchup_turnoversintegerMatchup turnovers.
matchup_blocksintegerMatchup blocks.
matchup_field_goals_madeintegerNumber of matchup field goals made.
matchup_field_goals_attemptedintegerNumber of matchup field goals attempted.
matchup_field_goals_percentagenumericMatchup field goals percentage (0-1 decimal).
matchup_three_pointers_madeintegerNumber of matchup three pointers made.
matchup_three_pointers_attemptedintegerNumber of matchup three pointers attempted.
matchup_three_pointers_percentagenumericMatchup three pointers percentage (0-1 decimal).
help_blocksintegerHelp blocks.
help_field_goals_madeintegerNumber of help field goals made.
help_field_goals_attemptedintegerNumber of help field goals attempted.
help_field_goals_percentagenumericHelp field goals percentage (0-1 decimal).
matchup_free_throws_madeintegerNumber of matchup free throws made.
matchup_free_throws_attemptedintegerNumber of matchup free throws attempted.
shooting_foulsintegerShooting fouls.

away_team_player_matchups

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.
matchups_person_idintegerUnique identifier for matchups person.
matchups_first_namecharacterMatchups first name.
matchups_family_namecharacterMatchups family name.
matchups_name_icharacterMatchups name i.
matchups_player_slugcharacterMatchups player slug.
matchups_jersey_numcharacterMatchups jersey num.
matchup_minutescharacterMatchup minutes.
matchup_minutes_sortnumericMatchup minutes sort.
partial_possessionsnumericPartial possessions.
percentage_defender_total_timenumericTime / clock value.
percentage_offensive_total_timenumericTime / clock value.
percentage_total_time_both_onnumericPercentage total time both on.
switches_onintegerSwitches on.
player_pointsintegerPlayer points.
team_pointsintegerTeam points.
matchup_assistsintegerMatchup assists.
matchup_potential_assistsintegerMatchup potential assists.
matchup_turnoversintegerMatchup turnovers.
matchup_blocksintegerMatchup blocks.
matchup_field_goals_madeintegerNumber of matchup field goals made.
matchup_field_goals_attemptedintegerNumber of matchup field goals attempted.
matchup_field_goals_percentagenumericMatchup field goals percentage (0-1 decimal).
matchup_three_pointers_madeintegerNumber of matchup three pointers made.
matchup_three_pointers_attemptedintegerNumber of matchup three pointers attempted.
matchup_three_pointers_percentagenumericMatchup three pointers percentage (0-1 decimal).
help_blocksintegerHelp blocks.
help_field_goals_madeintegerNumber of help field goals made.
help_field_goals_attemptedintegerNumber of help field goals attempted.
help_field_goals_percentagenumericHelp field goals percentage (0-1 decimal).
matchup_free_throws_madeintegerNumber of matchup free throws made.
matchup_free_throws_attemptedintegerNumber of matchup free throws attempted.
shooting_foulsintegerShooting fouls.

Details

 nba_boxscorematchupsv3(game_id = "0022200021")

Author

Saiem Gilani