R/get_nfl_boxscore.R
get_nfl_boxscore.Rd
Get NFL boxscore for a specific game from ESPN's API
get_nfl_boxscore(game_id)
character
Returns a tibble
# Get NFL play-by-play for a specific game
get_nfl_boxscore(game_id = "300912027")
#> # A tibble: 2 × 96
#> 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:28… 2010 2 2010… 1 away 0 5 s:20~l…
#> 2 300912027 s:20~l:28… 2010 2 2010… 1 home 1 27 s:20~l…
#> # … with 86 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>, pass_att <dbl>,
#> # pass_cmp <dbl>, pass_yds <dbl>, pass_avg <dbl>, pass_td <dbl>,
#> # pass_int <dbl>, pass_sacks <dbl>, pass_sack_yds <dbl>, pass_qbr <dbl>,
#> # pass_rtg <dbl>, rush_att <dbl>, rush_yds <dbl>, rush_avg <dbl>,
#> # rush_td <dbl>, rush_long <dbl>, rec_total <dbl>, rec_yds <dbl>, …