Skip to contents

Get ESPN NHL Countries (core-v2)

Usage

espn_nhl_countries(limit = 200, ...)

Arguments

limit

Maximum number of countries to return (default 200).

...

Reserved for forward compatibility.

Value

A fastRhockey_data tibble with one row per country reference, or an empty tibble when the endpoint is unpopulated. Note: The NHL countries endpoint (leagues/nhl/countries) returns count=0 - ESPN does not populate this collection for the NHL. An empty tibble is returned gracefully with a warning:

col_nametypesdescription
refcharacter$ref URL for the country object.
country_idcharacterESPN country id parsed from the $ref URL.
countintegerTotal countries (typically 0 for NHL).
page_countintegerTotal pages in the collection.

See also

family_espn_nhl lists every function in this family.

Author

Saiem Gilani

Examples

# \donttest{
  # NOTE: Returns empty tibble for NHL (ESPN does not populate this endpoint)
  try(espn_nhl_countries())
#> ! 2026-11-13 21:26:50.994708: No country items returned for nhl (count=0 is normal for NHL).
#> data frame with 0 columns and 0 rows
# }