Skip to contents

Get ESPN MCH / WCH Coach Record (core-v2)

Usage

espn_mch_coach_record(coach_id, record_type = 0, ...)

espn_wch_coach_record(coach_id, record_type = 0, ...)

Arguments

coach_id

ESPN coach identifier (character or numeric). Use espn_mch_season_coaches() to discover valid coach ids.

record_type

Record type path segment (coaches/{id}/record/{record_type}); default 0, as sportsdataverse-py. NULL drops the segment.

...

Reserved for forward compatibility.

Value

A fastRhockey_data tibble with coach career record data, or an empty tibble when the endpoint is unavailable. Note: The coach record path (coaches/{id}/record) returns HTTP 404 for NHL - this endpoint is not populated by ESPN for the NHL league. An empty tibble is returned gracefully with a warning:

col_nametypesdescription
coach_idcharacterESPN coach id (echoed from arg).
...variesAdditional record fields if returned (sparse for NHL).

Details

League slug mens-college-hockey; season is the END year (2026 = 2025-26). Same ESPN helper as espn_nhl_coach_record() (columns inherited); a collection may be empty.

espn_wch_coach_record() is the same wrapper for women's college hockey (league slug womens-college-hockey): same arguments, same columns.

See also

family_espn_mch lists every function in this family.

Author

Saiem Gilani

Examples

# \donttest{
  # NOTE: Returns an empty tibble for NHL (404 from ESPN)
  try({
    ccs <- espn_mch_season_coaches(season = 2026)
    # the coach list can be empty for college hockey
    if (nrow(ccs) > 0) espn_mch_coach_record(coach_id = ccs$coach_id[1])
  })
# }
# \donttest{
  # NOTE: Returns an empty tibble for NHL (404 from ESPN)
  try({
    ccs <- espn_wch_season_coaches(season = 2026)
    # the coach list can be empty for college hockey
    if (nrow(ccs) > 0) espn_wch_coach_record(coach_id = ccs$coach_id[1])
  })
# }