Get NFL boxscore for players for a specific game from ESPN's API

get_nfl_boxscore_players(game_id)

Arguments

game_id

character

Value

Returns a tibble

Examples

# Get NFL play-by-play for a specific game
get_nfl_boxscore_players(game_id = "300912027")
#> # A tibble: 87 × 84
#>    game_id   game_uid  season seaso…¹ date   week home_…² winner team_id team_…³
#>    <chr>     <chr>      <int>   <int> <chr> <int> <chr>    <int> <chr>   <chr>  
#>  1 300912027 s:20~l:2…   2010       2 2010…     1 away         0 5       s:20~l…
#>  2 300912027 s:20~l:2…   2010       2 2010…     1 away         0 5       s:20~l…
#>  3 300912027 s:20~l:2…   2010       2 2010…     1 away         0 5       s:20~l…
#>  4 300912027 s:20~l:2…   2010       2 2010…     1 away         0 5       s:20~l…
#>  5 300912027 s:20~l:2…   2010       2 2010…     1 away         0 5       s:20~l…
#>  6 300912027 s:20~l:2…   2010       2 2010…     1 away         0 5       s:20~l…
#>  7 300912027 s:20~l:2…   2010       2 2010…     1 away         0 5       s:20~l…
#>  8 300912027 s:20~l:2…   2010       2 2010…     1 away         0 5       s:20~l…
#>  9 300912027 s:20~l:2…   2010       2 2010…     1 away         0 5       s:20~l…
#> 10 300912027 s:20~l:2…   2010       2 2010…     1 away         0 5       s:20~l…
#> # … with 77 more rows, 74 more variables: team_city <chr>, team_name <chr>,
#> #   team_abb <chr>, team_full <chr>, team_color <chr>, team_color_alt <chr>,
#> #   team_logo <chr>, team_order <int>, team_score <int>, team_record <chr>,
#> #   text <chr>, player_id <chr>, player_uid <chr>, player_guid <chr>,
#> #   first_name <chr>, last_name <chr>, full_name <chr>, pass_att <int>,
#> #   pass_cmp <int>, pass_yds <dbl>, pass_avg <dbl>, pass_td <dbl>,
#> #   pass_int <dbl>, pass_sacks <dbl>, pass_sack_yds <dbl>, pass_qbr <dbl>, …