Get NFL play-by-play for a specific game from ESPN's API

get_nfl_pbp(game_id)

Arguments

game_id

character

Value

Returns a tibble

Examples

# Get NFL play-by-play for a specific game get_nfl_pbp(game_id = "300912027")
#> # A tibble: 164 × 73 #> game_id game_uid season season_type date week drive_id pos_team_abb play_id #> <chr> <chr> <int> <int> <chr> <int> <chr> <chr> <chr> #> 1 300912… s:20~l:… 2010 2 2010… 1 3009120… TB 300912… #> 2 300912… s:20~l:… 2010 2 2010… 1 3009120… TB 300912… #> 3 300912… s:20~l:… 2010 2 2010… 1 3009120… TB 300912… #> 4 300912… s:20~l:… 2010 2 2010… 1 3009120… TB 300912… #> 5 300912… s:20~l:… 2010 2 2010… 1 3009120… TB 300912… #> 6 300912… s:20~l:… 2010 2 2010… 1 3009120… TB 300912… #> 7 300912… s:20~l:… 2010 2 2010… 1 3009120… TB 300912… #> 8 300912… s:20~l:… 2010 2 2010… 1 3009120… TB 300912… #> 9 300912… s:20~l:… 2010 2 2010… 1 3009120… TB 300912… #> 10 300912… s:20~l:… 2010 2 2010… 1 3009120… TB 300912… #> # … with 154 more rows, and 64 more variables: play_type <chr>, #> # yards_gained <int>, play_desc <chr>, drive_desc <chr>, pos_team_name <chr>, #> # pos_team_full <chr>, logo <chr>, drive_start_qtr <int>, #> # drive_start_clock <chr>, drive_start_yardline <int>, #> # drive_start_text <chr>, drive_end_qtr <int>, drive_end_clock <chr>, #> # drive_end_yardline <int>, drive_end_text <chr>, drive_time <chr>, #> # drive_yds <int>, drive_result_score <int>, drive_plays <int>, …