Get NBA Stats API Player vs Player
Get NBA Stats API Player vs Player
nba_playervsplayer(
date_from = "",
date_to = "",
game_segment = "",
last_n_games = 0,
league_id = "00",
location = "",
measure_type = "Base",
month = 0,
opponent_team_id = 0,
outcome = "",
pace_adjust = "N",
per_mode = "Totals",
period = 0,
player_id = "2544",
plus_minus = "N",
rank = "N",
season = "2020-21",
season_segment = "",
season_type = "Regular Season",
vs_conference = "",
vs_division = "",
vs_player_id = "203076"
)date_from
date_to
game_segment
last_n_games
League - default: '00'. Other options include '10': WNBA, '20': G-League
location
measure_type
month
opponent_team_id
outcome
pace_adjust
per_mode
period
Player ID
plus_minus
rank
Season - format 2020-21
season_segment
Season Type - Regular Season, Playoffs, All-Star
vs_conference
vs_division
vs_player_id
Return a named list of data frames: OnOffCourt, Overall, PlayerInfo, ShotAreaOffCourt, ShotAreaOnCourt, ShotAreaOverall, ShotDistanceOffCourt, ShotDistanceOnCourt, ShotDistanceOverall, VsPlayerInfo