Skip to contents

Get ESPN NHL Game Team Roster (core-v2)

Usage

espn_nhl_game_team_roster(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 rostered player (typically ~23 skaters + goalies per team):

col_nametypesdescription
event_idcharacterESPN event id (echoed from arg).
cidcharacterCompetition id (echoed from arg).
team_idcharacterESPN team id (echoed from arg).
player_idcharacterESPN player/athlete identifier.
jerseycharacterPlayer jersey number.
display_namecharacterPlayer display name.
scratchedlogicalWhether the player was a healthy scratch.
scratch_reasoncharacterReason for scratch (if applicable).
athlete_idcharacterAthlete id parsed from the $ref URL.
athlete_refcharacter$ref URL for the athlete-in-season object.
position_idcharacterPosition id parsed from the $ref URL.
position_refcharacter$ref URL for the player's position.
statistics_refcharacter$ref URL for the player's game statistics.

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_roster(event_id = eid, team_id = tms$team_id[1])
  })
#> ── NHL Game Team Roster data from ESPN core-v2 ──────────── fastRhockey 1.1.0 ──
#> ℹ Data updated: 2026-11-13 21:27:01 UTC
#> # A tibble: 23 × 13
#>    event_id cid   team_id player_id jersey display_name scratched scratch_reason
#>    <chr>    <chr> <chr>   <chr>     <chr>  <chr>        <lgl>     <chr>         
#>  1 4016882… 4016… 5       3735      88     Kane         FALSE     NA            
#>  2 4016882… 4016… 5       5246      8      Chiarot      FALSE     NA            
#>  3 4016882… 4016… 5       5734      39     Talbot       FALSE     NA            
#>  4 4016882… 4016… 5       5763      3      Holl         FALSE     NA            
#>  5 4016882… 4016… 5       5837      11     Tarasenko    FALSE     NA            
#>  6 4016882… 4016… 5       3041995   37     Compher      FALSE     NA            
#>  7 4016882… 4016… 5       3042114   18     Copp         FALSE     NA            
#>  8 4016882… 4016… 5       3042138   14     Motte        FALSE     NA            
#>  9 4016882… 4016… 5       3114755   71     Larkin       FALSE     NA            
#> 10 4016882… 4016… 5       3151137   35     Husso        FALSE     NA            
#> # ℹ 13 more rows
#> # ℹ 5 more variables: athlete_id <chr>, athlete_ref <chr>, position_id <chr>,
#> #   position_ref <chr>, statistics_ref <chr>
# }