Skip to contents

Get ESPN NHL Game Team (Competitor Detail, core-v2)

Usage

espn_nhl_game_team(event_id, cid = event_id, team_id, ...)

Arguments

event_id

ESPN event (game) identifier.

cid

Competition identifier. Defaults to event_id.

team_id

ESPN team/competitor identifier. Use espn_nhl_game_teams() to discover valid team ids for a game.

...

Reserved for forward compatibility.

Value

A one-row fastRhockey_data tibble with competitor detail:

col_nametypesdescription
event_idcharacterESPN event id (echoed from arg).
cidcharacterCompetition id (echoed from arg).
team_idcharacterESPN team id (echoed from arg).
idcharacterESPN competitor identifier.
uidcharacterCompetitor uid string.
typecharacterCompetitor type (e.g. "team").
orderintegerCompetitor display order.
home_awaycharacter"home" or "away".
winnerlogicalWhether this competitor won the game.
team_refcharacter$ref URL for the team-in-season object.
score_refcharacter$ref URL for the score object.
linescores_refcharacter$ref URL for the per-period linescores.
roster_refcharacter$ref URL for the game roster.
statistics_refcharacter$ref URL for the team game statistics.
leaders_refcharacter$ref URL for the team game leaders.
record_refcharacter$ref URL for the team record at the time of the game.
competitor_refcharacter$ref URL for this competitor object.

See also

family_espn_nhl lists every function in this family.

Author

Saiem Gilani

Examples

# \donttest{
  try({
    sb  <- espn_nhl_scoreboard(dates = "20250110")
    eid <- sb$game_id[1]
    tms <- espn_nhl_game_teams(event_id = eid)
    espn_nhl_game_team(event_id = eid, team_id = tms$team_id[1])
  })
#> ── NHL Game Team data from ESPN core-v2 ─────────────────── fastRhockey 1.1.0 ──
#> ℹ Data updated: 2026-11-13 21:27:00 UTC
#> # A tibble: 1 × 17
#>   event_id  cid       team_id id    uid    type  order home_away winner team_ref
#>   <chr>     <chr>     <chr>   <chr> <chr>  <chr> <int> <chr>     <lgl>  <chr>   
#> 1 401688263 401688263 5       5     s:70~… team      0 home      TRUE   http://…
#> # ℹ 7 more variables: score_ref <chr>, linescores_ref <chr>, roster_ref <chr>,
#> #   statistics_ref <chr>, leaders_ref <chr>, record_ref <chr>,
#> #   competitor_ref <chr>
# }