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

get_nfl_boxscore(game_id)

Arguments

game_id

character

Value

Returns a tibble

Examples

# Get NFL play-by-play for a specific game get_nfl_boxscore(game_id = "300912027")
#> # A tibble: 2 × 96 #> game_id game_uid season season_type date week home_away winner team_id #> <chr> <chr> <int> <int> <chr> <int> <chr> <int> <chr> #> 1 300912027 s:20~l:28~… 2010 2 2010-… 1 away 0 5 #> 2 300912027 s:20~l:28~… 2010 2 2010-… 1 home 1 27 #> # … with 87 more variables: team_uid <chr>, 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>, …