Skip to contents

Get ESPN's WNBA game data (play-by-play, team and player box)

Usage

espn_wnba_game_all(game_id)

Arguments

game_id

Game ID

Value

A named list of dataframes: Plays, Team, Player

Author

Saiem Gilani

Examples

# \donttest{
  try(espn_wnba_game_all(game_id = 401244185))
#> $Plays
#> ── ESPN WNBA Play-by-Play Information from ESPN.com ──────────── wehoop 1.8.0 ──
#>  Data updated: 2023-03-11 06:15:06 UTC
#> # A tibble: 388 × 49
#>    id      seque…¹ text  away_…² home_…³ scori…⁴ score…⁵ wallc…⁶ shoot…⁷ type_id
#>    <chr>   <chr>   <chr>   <int>   <int> <lgl>     <int> <chr>   <lgl>   <chr>  
#>  1 401244… 4       Caro…       0       0 FALSE         0 2020-1… FALSE   615    
#>  2 401244… 7       Nata…       0       0 FALSE         0 2020-1… FALSE   42     
#>  3 401244… 9       Nata…       0       0 FALSE         0 2020-1… FALSE   84     
#>  4 401244… 10      Dani…       0       0 FALSE         0 2020-1… TRUE    110    
#>  5 401244… 11      Caro…       0       0 FALSE         0 2020-1… FALSE   156    
#>  6 401244… 12      Caro…       2       0 TRUE          2 2020-1… TRUE    125    
#>  7 401244… 13      Sue …       2       0 FALSE         0 2020-1… TRUE    131    
#>  8 401244… 14      Las …       2       0 FALSE         0 2020-1… FALSE   155    
#>  9 401244… 15      A'ja…       4       0 TRUE          2 2020-1… TRUE    95     
#> 10 401244… 17      Ange…       4       0 FALSE         0 2020-1… FALSE   45     
#> # … with 378 more rows, 39 more variables: type_text <chr>,
#> #   period_number <int>, period_display_value <chr>, clock_display_value <chr>,
#> #   team_id <chr>, coordinate_x <int>, coordinate_y <int>, play_id <chr>,
#> #   athlete_id_1 <chr>, athlete_id_2 <chr>, athlete_id_3 <chr>,
#> #   home_team_id <int>, home_team_mascot <chr>, home_team_name <chr>,
#> #   home_team_abbrev <chr>, home_team_logo <chr>, home_team_logo_dark <chr>,
#> #   home_team_full_name <chr>, home_team_color <chr>, …
#> 
#> $Team
#> ── ESPN WNBA Team Box Information from ESPN.com ──────────────── wehoop 1.8.0 ──
#>  Data updated: 2023-03-11 06:15:06 UTC
#> # A tibble: 2 × 52
#>     game_id season season_t…¹ game_date  team_id team_…² team_…³ team_…⁴ team_…⁵
#>       <int>  <int>      <int> <date>       <int> <chr>   <chr>   <chr>   <chr>  
#> 1 401244185   2020          3 2020-10-06      17 s:40~l… las-ve… Las Ve… Aces   
#> 2 401244185   2020          3 2020-10-06      14 s:40~l… seattl… Seattle Storm  
#> # … with 43 more variables: team_abbreviation <chr>, team_display_name <chr>,
#> #   team_short_display_name <chr>, team_color <chr>,
#> #   team_alternate_color <chr>, team_logo <chr>, team_home_away <chr>,
#> #   team_score <int>, team_winner <lgl>, assists <int>, blocks <int>,
#> #   defensive_rebounds <int>, field_goal_pct <dbl>, field_goals_made <int>,
#> #   field_goals_attempted <int>, flagrant_fouls <int>, fouls <int>,
#> #   free_throw_pct <dbl>, free_throws_made <int>, …
#> 
#> $Player
#> ── ESPN WNBA Player Box Information from ESPN.com ────────────── wehoop 1.8.0 ──
#>  Data updated: 2023-03-11 06:15:07 UTC
#> # A tibble: 21 × 39
#>      game_id season season_…¹ game_date  athle…² athle…³ team_id team_…⁴ team_…⁵
#>        <int>  <int>     <int> <date>     <chr>   <chr>   <chr>   <chr>   <chr>  
#>  1 401244185   2020         3 2020-10-06 872     Angel … 17      Aces    Aces   
#>  2 401244185   2020         3 2020-10-06 3149391 A'ja W… 17      Aces    Aces   
#>  3 401244185   2020         3 2020-10-06 982     Caroly… 17      Aces    Aces   
#>  4 401244185   2020         3 2020-10-06 1014    Daniel… 17      Aces    Aces   
#>  5 401244185   2020         3 2020-10-06 2529205 Kayla … 17      Aces    Aces   
#>  6 401244185   2020         3 2020-10-06 2284331 Emma C… 17      Aces    Aces   
#>  7 401244185   2020         3 2020-10-06 2566452 Cierra… 17      Aces    Aces   
#>  8 401244185   2020         3 2020-10-06 2491197 Sugar … 17      Aces    Aces   
#>  9 401244185   2020         3 2020-10-06 3058908 Lindsa… 17      Aces    Aces   
#> 10 401244185   2020         3 2020-10-06 4065870 Jackie… 17      Aces    Aces   
#> # … with 11 more rows, 30 more variables: minutes <dbl>,
#> #   field_goals_made <int>, field_goals_attempted <int>,
#> #   three_point_field_goals_made <int>,
#> #   three_point_field_goals_attempted <int>, free_throws_made <int>,
#> #   free_throws_attempted <int>, offensive_rebounds <int>,
#> #   defensive_rebounds <int>, rebounds <int>, assists <int>, steals <int>,
#> #   blocks <int>, turnovers <int>, fouls <int>, plus_minus <chr>, …
#> 
# }