Skip to contents

Get the ESPN core-v2 detail record for a single college football player position – name, display name, abbreviation, leaf flag, and the parent position id.

Usage

espn_cfb_position(position_id = NULL)

Arguments

position_id

(Integer required): ESPN position id.

Value

A single-row data frame:

col_nametypesdescription
position_idcharacterESPN position id.
namecharacterPosition name (e.g. Quarterback).
display_namecharacterHuman-readable position name.
abbreviationcharacterPosition abbreviation (e.g. QB).
leaflogicalTRUE for a most-specific (leaf) position.
parent_idcharacterESPN id of the parent position (NA at the root).
position_refcharacter$ref URL to the position resource.

Details

Wraps the ESPN core-v2 endpoint sports.core.api.espn.com/v2/sports/football/leagues/college-football/positions/{position_id}. espn_cfb_positions() returns the position index; this wrapper returns the single-position detail for one id. ESPN's position table is a tree – specific positions roll up under broader ones; the leaf flag marks the most specific positions and parent_id (when present) reconstructs the grouping. Returns a single-row tibble. Enumerate position_ids with espn_cfb_positions().

See also

family_espn_cfb lists every function in this family.

Examples

# \donttest{
  try(espn_cfb_position(position_id = 8))
#> ── Position detail from ESPN ───────────────────────────────── cfbfastR 3.1.0 ──
#> ℹ Data updated: 2026-11-26 22:47:51 UTC
#> # A tibble: 1 × 7
#>   position_id name        display_name abbreviation leaf  parent_id position_ref
#>   <chr>       <chr>       <chr>        <chr>        <lgl> <chr>     <chr>       
#> 1 8           Quarterback Quarterback  QB           TRUE  70        http://spor…
# }