Skip to contents

Get ESPN NHL Game Team Record (core-v2)

Usage

espn_nhl_game_team_record(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.

...

Reserved for forward compatibility.

Value

A fastRhockey_data tibble with one row per record type (e.g. overall, home, road). Note: this endpoint returns 404 for most NHL games tested; an empty data.frame() is returned in that case.

col_nametypesdescription
event_idcharacterESPN event id (echoed from arg).
cidcharacterCompetition id (echoed from arg).
team_idcharacterESPN team id (echoed from arg).
namecharacterRecord type name (e.g. "overall", "home", "road").
abbreviationcharacterRecord type abbreviation.
typecharacterRecord type slug.
summarycharacterRecord summary string (e.g. "25-15-10").
display_valuecharacterRecord display value.
valuenumericRecord numeric value (e.g. win percentage).
record_refcharacter$ref URL for this record item.

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_record(event_id = eid, team_id = tms$team_id[1])
  })
#> ✖ 2026-11-13 21:27:01.602368: Invalid arguments or no ESPN nhl game record for event 401688263 / team 5 available!
#> ✖ Args: league = "nhl", event_id = "401688263", cid = "401688263", team_id = "5"
#> ✖ Error: The API returned an error
#> data frame with 0 columns and 0 rows
# }