Skip to contents

Get WNBA Stats API Player vs Player

Get WNBA Stats API Player vs Player

Usage

wnba_playervsplayer(
  date_from = "",
  date_to = "",
  game_segment = "",
  last_n_games = 0,
  league_id = "10",
  location = "",
  measure_type = "Base",
  month = 0,
  opponent_team_id = 0,
  outcome = "",
  pace_adjust = "N",
  per_mode = "Totals",
  period = 0,
  player_id = "1628932",
  plus_minus = "N",
  rank = "N",
  season = most_recent_wnba_season() - 1,
  season_segment = "",
  season_type = "Regular Season",
  vs_conference = "",
  vs_division = "",
  vs_player_id = "1629488",
  ...
)

Arguments

date_from

date_from

date_to

date_to

game_segment

game_segment

last_n_games

last_n_games

league_id

League - default: '00'. Other options include '10': WWNBA, '20': G-League

location

location

measure_type

measure_type

month

month

opponent_team_id

opponent_team_id

outcome

outcome

pace_adjust

pace_adjust

per_mode

per_mode

period

period

player_id

Player ID

plus_minus

plus_minus

rank

rank

season

Season - format 2020-21

season_segment

season_segment

season_type

Season Type - Regular Season, Playoffs, All-Star

vs_conference

vs_conference

vs_division

vs_division

vs_player_id

vs_player_id

...

Additional arguments passed to an underlying function like httr.

Value

Return a named list of data frames: OnOffCourt, Overall, PlayerInfo, ShotAreaOffCourt, ShotAreaOnCourt, ShotAreaOverall, ShotDistanceOffCourt, ShotDistanceOnCourt, ShotDistanceOverall, VsPlayerInfo

Overall

col_nametypesdescription
GROUP_SETcharacter
GROUP_VALUEcharacter
PLAYER_IDcharacterUnique player identifier.
PLAYER_NAMEcharacterPlayer name.
GPcharacterGames played.
WcharacterWins.
LcharacterLosses.
W_PCTcharacterWins percentage (0-1 decimal).
MINcharacterMinutes played.
FGMcharacterField goals made.
FGAcharacterField goal attempts.
FG_PCTcharacterField goal percentage (0-1).
FG3McharacterThree-point field goals made.
FG3AcharacterThree-point field goal attempts.
FG3_PCTcharacterThree-point field goal percentage (0-1).
FTMcharacterFree throws made.
FTAcharacterFree throw attempts.
FT_PCTcharacterFree throw percentage (0-1).
OREBcharacterOffensive rebounds.
DREBcharacterDefensive rebounds.
REBcharacterTotal rebounds.
ASTcharacterAssists.
TOVcharacterTurnovers.
STLcharacterSteals.
BLKcharacterBlocks.
BLKAcharacter
PFcharacterPersonal fouls.
PFDcharacter
PTScharacterPoints scored.
PLUS_MINUScharacterPlus/minus point differential while on court.
WNBA_FANTASY_PTScharacter

OnOffCourt

col_nametypesdescription
GROUP_SETcharacter
PLAYER_IDcharacterUnique player identifier.
PLAYER_NAMEcharacterPlayer name.
VS_PLAYER_IDcharacter
VS_PLAYER_NAMEcharacter
COURT_STATUScharacter
GPcharacterGames played.
WcharacterWins.
LcharacterLosses.
W_PCTcharacterWins percentage (0-1 decimal).
MINcharacterMinutes played.
FGMcharacterField goals made.
FGAcharacterField goal attempts.
FG_PCTcharacterField goal percentage (0-1).
FG3McharacterThree-point field goals made.
FG3AcharacterThree-point field goal attempts.
FG3_PCTcharacterThree-point field goal percentage (0-1).
FTMcharacterFree throws made.
FTAcharacterFree throw attempts.
FT_PCTcharacterFree throw percentage (0-1).
OREBcharacterOffensive rebounds.
DREBcharacterDefensive rebounds.
REBcharacterTotal rebounds.
ASTcharacterAssists.
TOVcharacterTurnovers.
STLcharacterSteals.
BLKcharacterBlocks.
BLKAcharacter
PFcharacterPersonal fouls.
PFDcharacter
PTScharacterPoints scored.
PLUS_MINUScharacterPlus/minus point differential while on court.
WNBA_FANTASY_PTScharacter

ShotDistanceOverall

col_nametypesdescription
GROUP_SETcharacter
GROUP_VALUEcharacter
PLAYER_IDcharacterUnique player identifier.
PLAYER_NAMEcharacterPlayer name.
FGMcharacterField goals made.
FGAcharacterField goal attempts.
FG_PCTcharacterField goal percentage (0-1).

ShotDistanceOnCourt

col_nametypesdescription
GROUP_SETcharacter
PLAYER_IDcharacterUnique player identifier.
PLAYER_NAMEcharacterPlayer name.
VS_PLAYER_IDcharacter
VS_PLAYER_NAMEcharacter
COURT_STATUScharacter
GROUP_VALUEcharacter
FGMcharacterField goals made.
FGAcharacterField goal attempts.
FG_PCTcharacterField goal percentage (0-1).

ShotDistanceOffCourt

Same columns as the ShotDistanceOnCourt table above.

ShotAreaOverall

Same columns as the ShotDistanceOverall table above.

ShotAreaOnCourt

Same columns as the ShotDistanceOnCourt table above.

ShotAreaOffCourt

Same columns as the ShotDistanceOnCourt table above.

PlayerInfo

col_nametypesdescription
PERSON_IDcharacterUnique player identifier (V3 endpoints).
FIRST_NAMEcharacterPlayer's first name.
LAST_NAMEcharacterPlayer's last name.
DISPLAY_FIRST_LASTcharacter
DISPLAY_LAST_COMMA_FIRSTcharacter
DISPLAY_FI_LASTcharacter
BIRTHDATEcharacter
SCHOOLcharacterPlayer's school / college (when distinct from 'college').
COUNTRYcharacterCountry (full name or code).
LAST_AFFILIATIONcharacter

VsPlayerInfo

Same columns as the PlayerInfo table above.

Details

 wnba_playervsplayer(player_id = '1628932', vs_player_id = '1629488')

Author

Saiem Gilani