Get ESPN NHL Play-by-Play
Value
A fastRhockey_data tibble with one row per play:
| col_name | types | description |
| id | character | ESPN play identifier. |
| sequence_number | character | Play sequence number. |
| type_id | character | Play type identifier. |
| type_text | character | Play type display text. |
| text | character | Play description text. |
| away_score | integer | Away team score at time of play. |
| home_score | integer | Home team score at time of play. |
| scoring_play | logical | Whether the play resulted in a goal. |
| score_value | integer | Goal value (1 for regulation/OT goals). |
| shooting_play | logical | Whether the play was a shot attempt. |
| wallclock | character | Wall-clock timestamp (ISO 8601). |
| period_number | integer | Period number (1-3 regulation, 4+ OT/SO). |
| period_display_value | character | Period display label (e.g. "1st Period"). |
| clock_display_value | character | Game clock display string (e.g. "14:32"). |
| team_id | character | ESPN team identifier for the acting team. |
| coordinate_x | numeric | X coordinate of play location. |
| coordinate_y | numeric | Y coordinate of play location. |
| strength_id | character | Strength situation identifier. |
| strength_text | character | Strength situation text (e.g. "Even Strength"). |
| shot_info_id | character | Shot type identifier. |
| shot_info_text | character | Shot type text (e.g. "Wrist Shot"). |
| athlete_id_1 | character | Primary participant athlete identifier. |
| athlete_id_2 | character | Secondary participant athlete identifier. |
| athlete_id_3 | character | Tertiary participant athlete identifier. |
| home_team_id | character | Home team ESPN identifier. |
| home_team_name | character | Home team name. |
| home_team_location | character | Home team city/location. |
| home_team_abbrev | character | Home team abbreviation. |
| home_team_display_name | character | Home team display name. |
| home_team_color | character | Home team primary color hex. |
| home_team_alternate_color | character | Home team alternate color hex. |
| home_team_logo | character | Home team logo URL. |
| home_team_score | character | Home team final score. |
| home_team_winner | logical | Whether the home team won. |
| away_team_id | character | Away team ESPN identifier. |
| away_team_name | character | Away team name. |
| away_team_location | character | Away team city/location. |
| away_team_abbrev | character | Away team abbreviation. |
| away_team_display_name | character | Away team display name. |
| away_team_color | character | Away team primary color hex. |
| away_team_alternate_color | character | Away team alternate color hex. |
| away_team_logo | character | Away team logo URL. |
| away_team_score | character | Away team final score. |
| away_team_winner | logical | Whether the away team won. |
| game_id | character | ESPN event identifier (echoed from arg). |
| season | integer | Season end-year. |
| season_type | integer | Season type code. |
| game_date | character | Game date-time (ISO 8601). |
See also
Other ESPN NHL Functions:
espn_nhl_athletes_index(),
espn_nhl_award(),
espn_nhl_awards(),
espn_nhl_calendar(),
espn_nhl_calendar_offseason(),
espn_nhl_calendar_ondays(),
espn_nhl_calendar_postseason(),
espn_nhl_calendar_regular_season(),
espn_nhl_coach(),
espn_nhl_coach_record(),
espn_nhl_coach_season(),
espn_nhl_coaches(),
espn_nhl_conferences(),
espn_nhl_countries(),
espn_nhl_draft(),
espn_nhl_franchise(),
espn_nhl_franchises(),
espn_nhl_game(),
espn_nhl_game_all(),
espn_nhl_game_broadcasts(),
espn_nhl_game_competition(),
espn_nhl_game_leaders(),
espn_nhl_game_odds(),
espn_nhl_game_official_detail(),
espn_nhl_game_officials(),
espn_nhl_game_play(),
espn_nhl_game_play_personnel(),
espn_nhl_game_plays(),
espn_nhl_game_powerindex(),
espn_nhl_game_predictor(),
espn_nhl_game_probabilities(),
espn_nhl_game_propbets(),
espn_nhl_game_scoringplays(),
espn_nhl_game_situation(),
espn_nhl_game_status(),
espn_nhl_game_team(),
espn_nhl_game_team_leaders(),
espn_nhl_game_team_linescores(),
espn_nhl_game_team_record(),
espn_nhl_game_team_roster(),
espn_nhl_game_team_statistics(),
espn_nhl_game_teams(),
espn_nhl_games(),
espn_nhl_injuries(),
espn_nhl_leaders(),
espn_nhl_leaders_core(),
espn_nhl_league_notes(),
espn_nhl_league_root(),
espn_nhl_news(),
espn_nhl_player_awards(),
espn_nhl_player_bio(),
espn_nhl_player_box(),
espn_nhl_player_career_stats(),
espn_nhl_player_contracts(),
espn_nhl_player_core(),
espn_nhl_player_eventlog(),
espn_nhl_player_gamelog(),
espn_nhl_player_info(),
espn_nhl_player_injuries(),
espn_nhl_player_news(),
espn_nhl_player_notes(),
espn_nhl_player_overview(),
espn_nhl_player_records(),
espn_nhl_player_seasons(),
espn_nhl_player_splits(),
espn_nhl_player_statistics(),
espn_nhl_player_statisticslog(),
espn_nhl_player_stats_v3(),
espn_nhl_player_vs_player(),
espn_nhl_players_index(),
espn_nhl_position(),
espn_nhl_positions(),
espn_nhl_providers(),
espn_nhl_schedule(),
espn_nhl_scoreboard(),
espn_nhl_season_athletes(),
espn_nhl_season_awards(),
espn_nhl_season_coaches(),
espn_nhl_season_draft(),
espn_nhl_season_draft_round_picks(),
espn_nhl_season_freeagents(),
espn_nhl_season_futures(),
espn_nhl_season_group(),
espn_nhl_season_group_children(),
espn_nhl_season_group_teams(),
espn_nhl_season_groups(),
espn_nhl_season_info(),
espn_nhl_season_players(),
espn_nhl_season_pointer(),
espn_nhl_season_powerindex(),
espn_nhl_season_powerindex_leaders(),
espn_nhl_season_team(),
espn_nhl_season_teams(),
espn_nhl_season_type(),
espn_nhl_season_type_corrections(),
espn_nhl_season_type_leaders(),
espn_nhl_season_types(),
espn_nhl_season_week(),
espn_nhl_season_week_games(),
espn_nhl_season_weeks(),
espn_nhl_seasons(),
espn_nhl_standings(),
espn_nhl_standings_core(),
espn_nhl_statistics_league(),
espn_nhl_summary(),
espn_nhl_talentpicks(),
espn_nhl_team(),
espn_nhl_team_box(),
espn_nhl_team_core(),
espn_nhl_team_depthcharts(),
espn_nhl_team_history(),
espn_nhl_team_injuries(),
espn_nhl_team_leaders(),
espn_nhl_team_news(),
espn_nhl_team_record(),
espn_nhl_team_roster(),
espn_nhl_team_schedule(),
espn_nhl_team_transactions(),
espn_nhl_teams_core(),
espn_nhl_teams_site(),
espn_nhl_tournaments(),
espn_nhl_transactions(),
espn_nhl_venue(),
espn_nhl_venues()
Examples
# \donttest{
try(espn_nhl_pbp(game_id = "401688263"))
#> ── NHL Play-by-Play data from ESPN.com ──────────────────── fastRhockey 1.0.0 ──
#> ℹ Data updated: 2026-06-12 14:17:44 UTC
#> # A tibble: 244 × 48
#> id sequence_number type_id type_text text away_score home_score
#> <chr> <chr> <chr> <chr> <chr> <int> <int>
#> 1 40168826300000… 2 518 Period S… Star… 0 0
#> 2 40168826300000… 3 502 Face Off Dyla… 0 0
#> 3 40168826300000… 4 503 Hit Vlad… 0 0
#> 4 40168826300000… 5 506 Shot Vlad… 0 0
#> 5 40168826300000… 6 506 Shot Albe… 0 0
#> 6 40168826300000… 7 1402 Giveaway Give… 0 0
#> 7 40168826300000… 8 507 Missed Fran… 0 0
#> 8 40168826300000… 9 503 Hit Mich… 0 0
#> 9 40168826300000… 10 1402 Giveaway Give… 0 0
#> 10 40168826300000… 11 508 Blocked Ben … 0 0
#> # ℹ 234 more rows
#> # ℹ 41 more variables: scoring_play <lgl>, score_value <int>,
#> # shooting_play <lgl>, wallclock <chr>, period_number <int>,
#> # period_display_value <chr>, clock_display_value <chr>, team_id <chr>,
#> # coordinate_x <dbl>, coordinate_y <dbl>, strength_id <chr>,
#> # strength_text <chr>, shot_info_id <chr>, shot_info_text <chr>,
#> # athlete_id_1 <chr>, athlete_id_2 <chr>, athlete_id_3 <chr>, …
# }
