Skip to contents

Get ESPN NHL Game Odds (core-v2)

Usage

espn_nhl_game_odds(event_id, cid = event_id, ...)

Arguments

event_id

ESPN event (game) identifier.

cid

Competition identifier. Defaults to event_id.

...

Reserved for forward compatibility.

Value

A fastRhockey_data tibble with one row per odds provider (typically 2 rows per game - consensus + one sportsbook):

col_nametypesdescription
event_idcharacterESPN event id (echoed from arg).
cidcharacterCompetition id (echoed from arg).
provider_idcharacterOdds provider identifier.
provider_namecharacterOdds provider name.
provider_priorityintegerProvider display priority.
detailscharacterOdds detail string (e.g. "DET -185").
over_undernumericOver/under total line.
spreadnumericPoint spread.
over_oddsnumericOver moneyline odds (American format).
under_oddsnumericUnder moneyline odds (American format).
moneyline_winnerlogicalWhether the moneyline winner was determined.
spread_winnerlogicalWhether the spread winner was determined.
away_team_favoritelogicalWhether the away team was the favorite.
away_team_moneylineintegerAway team moneyline (American format).
home_team_favoritelogicalWhether the home team was the favorite.
home_team_moneylineintegerHome team moneyline (American format).
open_overnumericOpening over decimal odds value.
open_undernumericOpening under decimal odds value.
open_total_americancharacterOpening total line in American format (e.g. "5.5").
odds_refcharacter$ref URL for this odds object.

See also

family_espn_nhl lists every function in this family.

Author

Saiem Gilani

Examples

# \donttest{
  try({
    sb <- espn_nhl_scoreboard(dates = "20250110")
    espn_nhl_game_odds(event_id = sb$game_id[1])
  })
#> ── NHL Game Odds data from ESPN core-v2 ─────────────────── fastRhockey 1.1.0 ──
#> ℹ Data updated: 2026-11-13 21:26:54 UTC
#> # A tibble: 2 × 20
#>   event_id  cid   provider_id provider_name provider_priority details over_under
#>   <chr>     <chr> <chr>       <chr>                     <int> <chr>        <dbl>
#> 1 401688263 4016… 58          ESPN BET                      0 DET -1…        5.5
#> 2 401688263 4016… 59          ESPN Bet - L…                 0 DET -5…        7.5
#> # ℹ 13 more variables: spread <dbl>, over_odds <dbl>, under_odds <dbl>,
#> #   moneyline_winner <lgl>, spread_winner <lgl>, away_team_favorite <lgl>,
#> #   away_team_moneyline <int>, home_team_favorite <lgl>,
#> #   home_team_moneyline <int>, open_over <dbl>, open_under <dbl>,
#> #   open_total_american <chr>, odds_ref <chr>
# }