Get NFL odds for a specific game from ESPN's API
get_nfl_odds(game_id)
character
Returns a tibble
# Get odds from a specific game
get_nfl_odds(game_id = "400791550")
#> # A tibble: 6 × 15
#> odds_source odds_…¹ sprea…² spread links over_…³ locat…⁴ ml odds win_p…⁵
#> <chr> <chr> <chr> <dbl> <lgl> <dbl> <chr> <dbl> <dbl> <dbl>
#> 1 consensus 1004 SEA -4… 4.5 NA NA away NA NA 60.3
#> 2 consensus 1004 SEA -4… 4.5 NA NA home NA NA 39.4
#> 3 numberfire 1003 SEA -3… 3.5 NA 41.5 away -180 54.1 60.3
#> 4 numberfire 1003 SEA -3… 3.5 NA 41.5 home 160 45.9 39.4
#> 5 teamrankings 1002 SEA -3… 3.5 NA 41.5 away -177 -101 60.3
#> 6 teamrankings 1002 SEA -3… 3.5 NA 41.5 home 159 -109 39.4
#> # … with 5 more variables: team_name <chr>, team_abb <chr>, team_full <chr>,
#> # team_logo <chr>, game_id <chr>, and abbreviated variable names
#> # ¹odds_source_id, ²spread_team, ³over_under, ⁴location, ⁵win_proj_fpi