Skip to contents

Get ESPN's WNBA play by play data

Usage

espn_wnba_pbp(game_id)

Arguments

game_id

Game ID

Value

Returns a play-by-play data frame

Plays

col_nametypesdescription
idcharacterUnique play identifcation number
sequence_numbercharacterSequence number representing a shot-possession (V3 PBP).
textcharacterText description of the play / record.
away_scoreintegerAway team score at the time of the play.
home_scoreintegerHome team score at the time of the play.
scoring_playlogicalTRUE if the play resulted in points scored.
score_valueintegerPoint value of the play (2 / 3 / 1).
wallclockcharacterWallclock.
shooting_playlogicalTRUE if the play was a shooting attempt.
type_idintegerType identifier (numeric).
type_textcharacterDisplay text for the type field.
period_numberintegerNumeric period (1-4 for quarters; 5+ for OT).
period_display_valuecharacterPeriod display label (e.g. '1st Quarter', 'OT').
clock_display_valuecharacterGame clock display string (e.g. '8:32').
team_idintegerUnique team identifier.
coordinate_x_rawnumericX coordinate as returned by the API before any adjustment.
coordinate_y_rawnumericY coordinate as returned by the API before any adjustment.
coordinate_xnumericX coordinate on the court (half-court layout).
coordinate_ynumericY coordinate on the court (half-court layout).
play_idcharacterUnique play identifier within a game.
athlete_id_1integerPrimary athlete identifier (e.g. shooter).
athlete_id_2integerSecondary athlete identifier (e.g. assister / fouler).
athlete_id_3integerAthlete id 3.
home_team_idintegerUnique identifier for the home team.
home_team_mascotcharacterHome team mascot.
home_team_namecharacterHome team name.
home_team_abbrevcharacterHome team three-letter abbreviation.
home_team_logocharacterHome team logo URL.
home_team_logo_darkcharacterHome team logo URL for dark backgrounds.
home_team_full_namecharacterFull home team name (e.g. 'Las Vegas Aces').
home_team_colorcharacterHome team primary color (hex).
home_team_alternate_colorcharacterHome team alternate color (hex).
home_team_scoreintegerHome team's score.
home_team_winnerlogicalTRUE if the home team won this game.
home_team_recordcharacterHome team's win-loss record.
away_team_idintegerUnique identifier for the away team.
away_team_mascotcharacterAway team mascot.
away_team_namecharacterAway team name.
away_team_abbrevcharacterAway team three-letter abbreviation.
away_team_logocharacterAway team logo URL.
away_team_logo_darkcharacterAway team logo URL for dark backgrounds.
away_team_full_namecharacterFull away team name (e.g. 'Las Vegas Aces').
away_team_colorcharacterAway team primary color (hex).
away_team_alternate_colorcharacterAway team alternate color (hex).
away_team_scoreintegerAway team's score.
away_team_winnerlogicalTRUE if the away team won this game.
away_team_recordcharacterAway team's win-loss record.
game_idintegerUnique game identifier.
seasonintegerSeason identifier (4-digit year or 'YYYY-YY' string).
season_typeintegerSeason type (1=pre-season, 2=regular season, 3=postseason, 4=off-season for ESPN; or string label for WNBA Stats).
game_dateDateGame date (YYYY-MM-DD).
game_date_timePOSIXctGame start date/time (ISO 8601).

See also

Other ESPN WNBA Functions: espn_wnba_athletes_index(), espn_wnba_award(), espn_wnba_calendar(), espn_wnba_coach_season(), espn_wnba_coaches(), espn_wnba_conferences(), espn_wnba_draft(), espn_wnba_draft_athlete_detail(), espn_wnba_draft_athletes(), espn_wnba_draft_pick(), espn_wnba_draft_rounds(), espn_wnba_draft_status(), espn_wnba_franchise(), espn_wnba_franchises(), espn_wnba_freeagents(), espn_wnba_futures(), espn_wnba_game_all(), espn_wnba_game_broadcasts(), espn_wnba_game_odds(), espn_wnba_game_official_detail(), espn_wnba_game_officials(), espn_wnba_game_play(), espn_wnba_game_play_personnel(), espn_wnba_game_player_box(), espn_wnba_game_powerindex(), espn_wnba_game_predictor(), espn_wnba_game_probabilities(), espn_wnba_game_propbets(), espn_wnba_game_rosters(), espn_wnba_game_situation(), espn_wnba_game_team_leaders(), espn_wnba_game_team_linescores(), espn_wnba_game_team_records(), espn_wnba_game_team_roster(), espn_wnba_game_team_roster_entry(), espn_wnba_game_team_score(), espn_wnba_game_team_statistics(), espn_wnba_injuries(), espn_wnba_leaders(), espn_wnba_news(), espn_wnba_player_awards(), espn_wnba_player_box(), espn_wnba_player_career_stats(), espn_wnba_player_eventlog(), espn_wnba_player_eventlog_v2(), espn_wnba_player_gamelog(), espn_wnba_player_info(), espn_wnba_player_overview(), espn_wnba_player_seasons(), espn_wnba_player_splits(), espn_wnba_player_statisticslog(), espn_wnba_player_stats(), espn_wnba_player_stats_v3(), espn_wnba_position(), espn_wnba_positions(), espn_wnba_powerindex(), espn_wnba_scoreboard(), espn_wnba_season_awards(), espn_wnba_season_draft(), espn_wnba_season_group(), espn_wnba_season_group_children(), espn_wnba_season_group_teams(), espn_wnba_season_groups(), espn_wnba_season_info(), espn_wnba_season_leaders(), espn_wnba_season_ranking(), espn_wnba_season_rankings(), espn_wnba_season_type(), espn_wnba_season_types(), espn_wnba_season_week(), espn_wnba_season_weeks(), espn_wnba_seasons(), espn_wnba_standings(), espn_wnba_team(), espn_wnba_team_box(), espn_wnba_team_injuries(), espn_wnba_team_leaders(), espn_wnba_team_news(), espn_wnba_team_record(), espn_wnba_team_record_detail(), espn_wnba_team_roster(), espn_wnba_team_schedule(), espn_wnba_team_season_profile(), espn_wnba_team_season_roster(), espn_wnba_team_season_statistics(), espn_wnba_team_stats(), espn_wnba_teams(), espn_wnba_transactions(), espn_wnba_venues(), espn_wnba_week_ranking(), espn_wnba_week_rankings()

Author

Saiem Gilani

Examples


# \donttest{
   try(espn_wnba_pbp(game_id = 401455681))
#> ── ESPN WNBA Play-by-Play Information from ESPN.com ──────────── wehoop 3.0.0 ──
#>  Data updated: 2026-06-24 02:02:44 UTC
#> # A tibble: 343 × 54
#>    id       sequence_number text  away_score home_score scoring_play score_value
#>    <chr>    <chr>           <chr>      <int>      <int> <lgl>              <int>
#>  1 4014556… 4               Jonq…          0          0 FALSE                  0
#>  2 4014556… 7               A'ja…          0          2 TRUE                   2
#>  3 4014556… 9               Nati…          0          2 FALSE                  0
#>  4 4014556… 10              Kiah…          0          2 FALSE                  0
#>  5 4014556… 11              Jack…          0          5 TRUE                   3
#>  6 4014556… 13              Nati…          3          5 TRUE                   3
#>  7 4014556… 15              A'ja…          3          7 TRUE                   2
#>  8 4014556… 17              Cour…          3          7 FALSE                  0
#>  9 4014556… 18              Kels…          3          7 FALSE                  0
#> 10 4014556… 19              A'ja…          3          9 TRUE                   2
#> # ℹ 333 more rows
#> # ℹ 47 more variables: wallclock <chr>, shooting_play <lgl>,
#> #   points_attempted <int>, short_description <chr>, type_id <int>,
#> #   type_text <chr>, period_number <int>, period_display_value <chr>,
#> #   clock_display_value <chr>, team_id <int>, coordinate_x_raw <dbl>,
#> #   coordinate_y_raw <dbl>, coordinate_x <dbl>, coordinate_y <dbl>,
#> #   play_id <chr>, athlete_id_1 <int>, athlete_id_2 <int>, …
# }