Skip to contents

Get ESPN NHL Games (core-v2)

Usage

espn_nhl_games(dates = NULL, limit = 100, ...)

Arguments

dates

Optional date string "YYYYMMDD" or range "YYYYMMDD-YYYYMMDD". When NULL (default) the most recent games are returned.

limit

Maximum number of events per page (default 100).

...

Reserved for forward compatibility.

Value

A fastRhockey_data tibble with one row per game event reference:

col_nametypesdescription
refcharacter$ref URL for the event object.
event_idcharacterESPN event id parsed from the $ref URL.
countintegerTotal events in the collection.
page_countintegerTotal pages in the collection.
datescharacterDates filter (echoed from arg, if supplied).

See also

family_espn_nhl lists every function in this family.

Author

Saiem Gilani

Examples

# \donttest{
  try(espn_nhl_games(limit = 10))
#> ── NHL Games data from ESPN core-v2 ─────────────────────── fastRhockey 1.1.0 ──
#> ℹ Data updated: 2026-11-13 21:27:03 UTC
#> # A tibble: 2 × 4
#>   ref                                                  event_id count page_count
#>   <chr>                                                <chr>    <int>      <int>
#> 1 http://sports.core.api.espn.com/v2/sports/hockey/le… 4018927…     2          1
#> 2 http://sports.core.api.espn.com/v2/sports/hockey/le… 4018927…     2          1
# }