Skip to contents

Get WNBA Stats API Play-by-Play V3

Get WNBA Stats API Play-by-Play V3

Usage

wnba_playbyplayv3(game_id, start_period = 0, end_period = 0, ...)

Arguments

game_id

Game ID - 10-digit zero-padded ID (e.g., '1022200034')

start_period

Start period filter (default: 0 = all periods).

end_period

End period filter (default: 0 = all periods).

...

Additional arguments passed to an underlying function like httr.

Value

Returns a named list of data frames: PlayByPlay, AvailableVideo

PlayByPlay

col_nametypesdescription
game_idcharacterUnique game identifier.
action_numberintegerSequential action number within a game (V3 PBP).
clockcharacterGame clock value.
periodintegerPeriod of the game (1-4 quarters; 5+ for OT).
team_idintegerUnique team identifier.
team_tricodecharacterThree-letter team code (e.g. 'LAS' / 'NYL').
person_idintegerUnique player identifier (V3 endpoints).
player_namecharacterPlayer name.
player_name_icharacterPlayer name i.
x_legacyintegerV2-format X coordinate (preserved for V3-to-V2 compatibility).
y_legacyintegerV2-format Y coordinate (preserved for V3-to-V2 compatibility).
shot_distancenumericShot distance from the basket, in feet.
shot_resultcharacterShot result ('Made' / 'Missed').
is_field_goalinteger1 if the action was a field goal; 0 otherwise.
score_homecharacterScore home.
score_awaycharacterScore away.
points_totalintegerRunning total of points scored.
locationcharacterFilter results by game location.
descriptioncharacterLong-form description text.
action_typecharacterAction type label (e.g. 'Made Shot', 'Substitution').
sub_typecharacterAction sub-type label.
video_availableintegerVideo available.
shot_valueintegerPoint value of the shot (2 or 3).
action_idintegerUnique action identifier within a game (V3 PBP).

AvailableVideo

col_nametypesdescription
video_availableintegerVideo available.

Details

 wnba_playbyplayv3(game_id = "1022200034")

See also

Author

Saiem Gilani