Skip to contents

Get ESPN NHL Player Records (core-v2)

Usage

espn_nhl_player_records(athlete_id, ...)

Arguments

athlete_id

ESPN athlete identifier (character or numeric).

...

Reserved for forward compatibility.

Value

A fastRhockey_data tibble with one row per record, or an empty data frame if no records are served. As of 2026-06-08, ESPN core-v2 returns count=0 for all queried NHL players (DONE_WITH_CONCERNS: endpoint exists but data is not populated).

col_nametypesdescription
refcharacter$ref URL for the record object.
record_idcharacterRecord id parsed from the $ref URL.
athlete_idcharacterESPN athlete id (echoed from arg).
countintegerTotal record count (0 in practice for NHL).
page_countintegerTotal page count.

See also

family_espn_nhl lists every function in this family.

Author

Saiem Gilani

Examples

# \donttest{
  try(espn_nhl_player_records(athlete_id = "4024820"))
#> ! espn_nhl_player_records(): No record data served by ESPN core-v2 for athlete 4024820. The endpoint responds with count=0 for all queried NHL players (DONE_WITH_CONCERNS: endpoint exists but data is not populated).
#> data frame with 0 columns and 0 rows
# }