Skip to contents

Get ESPN NHL Game Situation (core-v2)

Usage

espn_nhl_game_situation(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 one-row fastRhockey_data tibble with the game state at the moment of the last tracked play:

col_nametypesdescription
event_idcharacterESPN event id (echoed from arg).
cidcharacterCompetition id (echoed from arg).
power_playlogicalWhether a power play was in effect.
empty_netlogicalWhether the net was empty.
last_play_refcharacter$ref URL for the last tracked play object.
situation_refcharacter$ref URL for this situation 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_situation(event_id = sb$game_id[1])
  })
#> ── NHL Game Situation data from ESPN core-v2 ────────────── fastRhockey 1.1.0 ──
#> ℹ Data updated: 2026-11-13 21:26:59 UTC
#> # A tibble: 1 × 6
#>   event_id  cid       power_play empty_net last_play_ref           situation_ref
#>   <chr>     <chr>     <lgl>      <lgl>     <chr>                   <chr>        
#> 1 401688263 401688263 FALSE      FALSE     http://sports.core.api… http://sport…
# }