Skip to contents

Get a college football coach's win/loss record for a single season – the headline summary plus every stat category ESPN publishes for that coach-season (wins, losses, ties, overtime wins/losses), in long format.

Usage

espn_cfb_coach_record(coach_id = NULL, year = NULL, season_type = 2)

Arguments

coach_id

(Integer required): ESPN coach id.

year

(Integer required): Season, 4 digit format (YYYY).
Minimum value accepted: 2001

season_type

(Integer default 2): ESPN season type – 2 for regular season, 3 for postseason.

Value

A data frame with one row per stat category:

col_nametypesdescription
coach_idcharacterESPN coach id queried.
seasonintegerSeason (4-digit year) queried.
season_typeintegerESPN season type queried (2 regular, 3 post).
record_idcharacterESPN record id (season-type id, e.g. 2).
record_namecharacterRecord name (e.g. Regular Season).
record_typecharacterRecord type (e.g. Regular Season).
record_summarycharacterSeason record summary (e.g. 7-6-0).
record_valuenumericSeason win-percentage value (may be NA).
stat_namecharacterStat key (e.g. wins, losses, OTWins).
display_namecharacterHuman-readable stat name (e.g. Wins).
short_display_namecharacterShort stat name (e.g. W).
abbreviationcharacterStat abbreviation (e.g. W).
stat_typecharacterInternal stat type key (e.g. wins).
descriptioncharacterESPN's description of the stat.
valuenumericStat value.

Details

Wraps the ESPN core-v2 endpoint sports.core.api.espn.com/v2/sports/football/leagues/college-football/seasons/{year}/types/{season_type}/coaches/{coach_id}/record. The records block is otherwise only reachable nested inside espn_cfb_coach(); this wrapper exposes it tabular. Returns one row per stat category. Each row carries the season-level summary/value alongside the per-stat fields, so the table is self-describing. Enumerate coach_ids with espn_cfb_coaches().

See also

family_espn_cfb lists every function in this family.

Examples

# \donttest{
  try(espn_cfb_coach_record(coach_id = 5120149, year = 2024))
#> ── Coach season record from ESPN ───────────────────────────── cfbfastR 3.1.0 ──
#> ℹ Data updated: 2026-11-26 22:46:39 UTC
#> # A tibble: 5 × 15
#>   coach_id season season_type record_id record_name   record_type record_summary
#>   <chr>     <int>       <int> <chr>     <chr>         <chr>       <chr>         
#> 1 5120149    2024           2 2         Regular Seas… Regular Se… 7-6-0         
#> 2 5120149    2024           2 2         Regular Seas… Regular Se… 7-6-0         
#> 3 5120149    2024           2 2         Regular Seas… Regular Se… 7-6-0         
#> 4 5120149    2024           2 2         Regular Seas… Regular Se… 7-6-0         
#> 5 5120149    2024           2 2         Regular Seas… Regular Se… 7-6-0         
#> # ℹ 8 more variables: record_value <dbl>, stat_name <chr>, display_name <chr>,
#> #   short_display_name <chr>, abbreviation <chr>, stat_type <chr>,
#> #   description <chr>, value <dbl>
# }