Skip to contents

Get the current (or final) game situation for a single college football game – down, distance, yard line, red-zone flag, timeouts, and a $ref to the last play.

Usage

espn_cfb_game_situation(game_id = NULL)

Arguments

game_id

(Integer required): ESPN game identifier.

Value

A data frame with one row describing the game situation:

col_nametypesdescription
game_idcharacterESPN game identifier.
downintegerCurrent down.
distanceintegerYards to go for a first down.
yard_lineintegerCurrent yard line.
is_red_zonelogicalTRUE if the offense is in the red zone.
home_timeoutsintegerHome-team timeouts remaining.
away_timeoutsintegerAway-team timeouts remaining.
last_play_idcharacterESPN play id of the last play (parsed from last_play_ref).
situation_refcharacter$ref URL to the situation resource itself.
last_play_refcharacter$ref URL to the last-play resource.

Details

Wraps the ESPN core-v2 endpoint events/{game_id}/competitions/{game_id}/situation. The competition id always equals the game id. Returns a single-row data frame describing the live game situation. For an in-progress game this is the current state; for a completed game it is static – the final play state. The last_play_ref column is the $ref URL to the last play; parse its id and pass it to espn_cfb_game_play() for the full play detail.

See also

Other ESPN CFB Functions: espn_cfb_award(), espn_cfb_awards(), espn_cfb_clear_cache(), espn_cfb_coach(), espn_cfb_coach_record(), espn_cfb_coaches(), espn_cfb_franchise(), espn_cfb_franchises(), espn_cfb_futures(), espn_cfb_game_broadcasts(), espn_cfb_game_drive_plays(), espn_cfb_game_drives(), espn_cfb_game_leaders(), espn_cfb_game_odds(), espn_cfb_game_pbp(), espn_cfb_game_play(), espn_cfb_game_player_box(), espn_cfb_game_player_statistics(), espn_cfb_game_powerindex(), espn_cfb_game_predictor(), espn_cfb_game_probabilities(), espn_cfb_game_status(), espn_cfb_game_team_leaders(), espn_cfb_game_team_linescores(), espn_cfb_game_team_records(), espn_cfb_game_team_roster(), espn_cfb_game_team_statistics(), espn_cfb_game_teams(), espn_cfb_groups(), espn_cfb_pbp_v2(), espn_cfb_player(), espn_cfb_player_career_stats(), espn_cfb_player_eventlog(), espn_cfb_player_gamelog(), espn_cfb_player_overview(), espn_cfb_player_seasons(), espn_cfb_player_splits(), espn_cfb_player_stats_v3(), espn_cfb_players(), espn_cfb_position(), espn_cfb_positions(), espn_cfb_powerindex(), espn_cfb_qbr(), espn_cfb_rankings(), espn_cfb_recruits(), espn_cfb_season_info(), espn_cfb_season_types(), espn_cfb_season_weeks(), espn_cfb_seasons(), espn_cfb_standings(), espn_cfb_team(), espn_cfb_team_ats(), espn_cfb_team_awards(), espn_cfb_team_coaches(), espn_cfb_team_events(), espn_cfb_team_leaders(), espn_cfb_team_powerindex(), espn_cfb_team_ranks(), espn_cfb_team_record(), espn_cfb_team_roster(), espn_cfb_team_schedule(), espn_cfb_teams(), espn_cfb_unnest_plays(), espn_cfb_venue(), espn_cfb_venues(), espn_cfb_week_rankings()

Examples

# \donttest{
  try(espn_cfb_game_situation(game_id = 401628339))
#> ── Game situation data from ESPN ───────────────────────────── cfbfastR 2.3.0 ──
#>  Data updated: 2026-06-09 07:56:30 UTC
#> # A tibble: 1 × 10
#>   game_id    down distance yard_line is_red_zone home_timeouts away_timeouts
#>   <chr>     <int>    <int>     <int> <lgl>               <int>         <int>
#> 1 401628339     0        0        65 FALSE                   3             3
#> # ℹ 3 more variables: last_play_id <chr>, situation_ref <chr>,
#> #   last_play_ref <chr>
# }