Skip to contents

Get ESPN NHL Player Info

Usage

espn_nhl_player_info(athlete_id, ...)

Arguments

athlete_id

ESPN athlete identifier (character or numeric, e.g. "5149125"). Obtain via espn_nhl_team_roster().

...

Reserved for forward compatibility.

Value

A one-row fastRhockey_data tibble with athlete metadata from the site_v2 athletes endpoint, or an empty data.frame() when ESPN returns HTTP 404. As of 2026-06-08, ESPN's site_v2 NHL athletes/{id} endpoint returns 404; use espn_nhl_player_core() for athlete metadata instead.

col_nametypesdescription
athlete_idcharacterESPN athlete identifier (echoed from arg).
athlete_espn_idcharacterESPN athlete id from payload.
uidcharacterAthlete uid string.
guidcharacterAthlete global unique identifier.
display_namecharacterPlayer display name.
short_namecharacterPlayer short name.
full_namecharacterPlayer full name.
first_namecharacterFirst name.
last_namecharacterLast name.
jerseycharacterJersey number.
slugcharacterURL slug.
positioncharacterPosition abbreviation.
position_namecharacterPosition full name.
ageintegerCurrent age.
date_of_birthcharacterDate of birth (ISO 8601).
debut_yearintegerYear of NHL debut.
weightcharacterFormatted weight string.
heightcharacterFormatted height string.
team_idcharacterESPN team identifier.
team_display_namecharacterTeam display name.
team_abbreviationcharacterTeam abbreviation.
headshot_hrefcharacterPlayer headshot image URL.
activelogicalWhether athlete is currently active.
statuscharacterAthlete status description.

See also

family_espn_nhl lists every function in this family.

Author

Saiem Gilani

Examples

# \donttest{
  try(espn_nhl_player_info(athlete_id = "5149125"))
#> ! ESPN site_v2 athlete info (athletes/[id]) returns HTTP 404 for NHL; use espn_nhl_player_core() instead.
#> data frame with 0 columns and 0 rows
# }