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

get_nfl_odds(game_id)

Arguments

game_id

character

Value

Returns a tibble

Examples

# Get odds from a specific game get_nfl_odds(game_id = "400791550")
#> # A tibble: 6 × 14 #> odds_source odds_source_id spread_team spread over_under location ml odds #> <chr> <chr> <chr> <dbl> <dbl> <chr> <dbl> <dbl> #> 1 consensus 1004 SEA -4.5 4.5 NA away NA NA #> 2 consensus 1004 SEA -4.5 4.5 NA home NA NA #> 3 numberfire 1003 SEA -3.5 3.5 41.5 away -180 54.1 #> 4 numberfire 1003 SEA -3.5 3.5 41.5 home 160 45.9 #> 5 teamrankings 1002 SEA -3.5 3.5 41.5 away -177 -101 #> 6 teamrankings 1002 SEA -3.5 3.5 41.5 home 159 -109 #> # … with 6 more variables: win_proj_fpi <dbl>, team_name <chr>, team_abb <chr>, #> # team_full <chr>, team_logo <chr>, game_id <chr>