Skip to contents

Get live college football play-by-play data.

Usage

cfbd_live_plays(game_id)

Arguments

game_id

(Integer Required): Game ID filter for querying a single game Can be found using the cfbd_game_info() function

Value

cfbd_live_plays() - A data frame with 94 columns:

col_nametypesdescription
game_idintegerCFBD game id for the live game.
home_team_idintegerCFBD team id of the home team.
home_teamcharacterName of the home team.
away_team_idintegerCFBD team id of the away team.
away_teamcharacterName of the away team.
play_idcharacterUnique CFBD play id for this play.
home_scoreintegerHome team score at the conclusion of the play.
away_scoreintegerAway team score at the conclusion of the play.
periodintegerQuarter (1-4, or overtime period) in which the play occurred.
clockcharacterGame clock at the snap, formatted as "MM:SS".
wall_clockcharacterReal-world UTC timestamp when the play was recorded.
offense_team_idintegerCFBD team id of the team on offense for this play.
offense_teamcharacterName of the team on offense for this play.
downintegerDown (1-4) at the start of the play.
distanceintegerYards to gain for a first down at the snap.
yards_to_goalintegerYards from the offense to the opponent's end zone at the snap (0-100).
yards_gainedintegerNet yards gained by the offense on the play.
play_type_idintegerCFBD play_type identifier; see cfbd_play_types().
play_typecharacterPlay type label (e.g. "Rush", "Pass Reception", "Punt").
ppanumericPredicted Points Added (CFBD PPA/EPA) value for the play.
garbage_timelogicalTRUE if the play occurred during garbage time.
successlogicalTRUE if the play met CFBD success-rate criteria.
rush_passcharacterClassification of the play as "Rush" or "Pass".
down_typecharacterDown/distance classification (e.g. "standard" vs "passing" down).
play_textcharacterFree-text narrative description of the play.
drive_idcharacterCFBD drive identifier for the drive containing this play.
drive_offense_idintegerCFBD team id of the offense on the drive.
drive_offense_teamcharacterName of the offensive team on the drive.
drive_defense_idintegerCFBD team id of the defense on the drive.
drive_defense_teamcharacterName of the defensive team on the drive.
drive_play_countintegerNumber of plays in the drive.
drive_yards_gainedintegerTotal net yards gained on the drive.
drive_start_periodintegerQuarter in which the drive started.
drive_start_clockcharacterGame clock ("MM:SS") when the drive started.
drive_start_yards_to_goalintegerYards to opponent's end zone at drive start (0-100).
drive_end_periodintegerQuarter in which the drive ended.
drive_end_clockcharacterGame clock ("MM:SS") when the drive ended.
drive_end_yards_to_goalintegerYards to opponent's end zone at drive end (0-100).
drive_durationcharacterDrive duration measured in elapsed game clock.
drive_scoring_opportunitylogicalTRUE if the drive reached scoring territory.
drive_resultcharacterOutcome of the drive (e.g. "TD", "FG", "PUNT", "INT").
drive_points_gainedintegerPoints scored by the offense on the drive.
current_clockcharacterCurrent game clock at the time of the live API snapshot.
current_possessioncharacterTeam currently in possession at the snapshot time.
home_line_scores_q1integerHome team points scored in the first quarter.
home_line_scores_q2integerHome team points scored in the second quarter.
home_line_scores_q3integerHome team points scored in the third quarter.
home_line_scores_q4integerHome team points scored in the fourth quarter.
home_pointsintegerHome team total points scored in the game so far.
home_drivesintegerNumber of offensive drives by the home team.
home_scoring_opportunitiesintegerNumber of home drives that reached scoring territory.
home_points_per_opportunitynumericHome points scored per scoring opportunity.
home_average_start_yard_linenumericAverage starting field position (yards from own goal) for home drives.
home_playsintegerTotal offensive plays run by the home team.
home_line_yardsnumericTotal offensive line yards credited to the home team's rushing attack.
home_line_yards_per_rushnumericHome offensive line yards per rush attempt.
home_second_level_yardsintegerHome rushing yards gained at the second level (5-10 yards past the line).
home_second_level_yards_per_rushnumericHome second-level rushing yards per rush attempt.
home_open_field_yardsintegerHome rushing yards gained in the open field (10+ yards past the line).
home_open_field_yards_per_rushnumericHome open-field rushing yards per rush attempt.
home_ppa_per_playnumericAverage PPA per play for the home team (CFBD renames epa_per_play).
home_total_ppanumericCumulative PPA for the home team across all plays.
home_passing_ppanumericCumulative passing PPA for the home team.
home_ppa_per_passnumericAverage PPA per pass attempt for the home team.
home_rushing_ppanumericCumulative rushing PPA for the home team.
home_ppa_per_rushnumericAverage PPA per rush attempt for the home team.
home_success_ratenumericHome team overall success rate (0-1).
home_standard_down_success_ratenumericHome success rate on standard downs (0-1).
home_passing_down_success_ratenumericHome success rate on passing downs (0-1).
home_explosivenessnumericHome explosiveness metric (average PPA on successful plays).
home_deserve_to_winnumericHome team "deserve-to-win" probability metric (0-1).
away_line_scores_q1integerAway team points scored in the first quarter.
away_line_scores_q2integerAway team points scored in the second quarter.
away_line_scores_q3integerAway team points scored in the third quarter.
away_line_scores_q4integerAway team points scored in the fourth quarter.
away_pointsintegerAway team total points scored in the game so far.
away_drivesintegerNumber of offensive drives by the away team.
away_scoring_opportunitiesintegerNumber of away drives that reached scoring territory.
away_points_per_opportunitynumericAway points scored per scoring opportunity.
away_average_start_yard_linenumericAverage starting field position (yards from own goal) for away drives.
away_playsintegerTotal offensive plays run by the away team.
away_line_yardsnumericTotal offensive line yards credited to the away team's rushing attack.
away_line_yards_per_rushnumericAway offensive line yards per rush attempt.
away_second_level_yardsintegerAway rushing yards gained at the second level (5-10 yards past the line).
away_second_level_yards_per_rushnumericAway second-level rushing yards per rush attempt.
away_open_field_yardsintegerAway rushing yards gained in the open field (10+ yards past the line).
away_open_field_yards_per_rushnumericAway open-field rushing yards per rush attempt.
away_ppa_per_playnumericAverage PPA per play for the away team (CFBD renames epa_per_play).
away_total_ppanumericCumulative PPA for the away team across all plays.
away_passing_ppanumericCumulative passing PPA for the away team.
away_ppa_per_passnumericAverage PPA per pass attempt for the away team.
away_rushing_ppanumericCumulative rushing PPA for the away team.
away_ppa_per_rushnumericAverage PPA per rush attempt for the away team.
away_success_ratenumericAway team overall success rate (0-1).
away_standard_down_success_ratenumericAway success rate on standard downs (0-1).
away_passing_down_success_ratenumericAway success rate on passing downs (0-1).
away_explosivenessnumericAway explosiveness metric (average PPA on successful plays).
away_deserve_to_winnumericAway team "deserve-to-win" probability metric (0-1).

Examples

# \donttest{
  try(cfbd_live_plays(game_id=401520182))
#> ── Live play-by-play data from CollegeFootballData.com ─────── cfbfastR 2.3.0 ──
#>  Data updated: 2026-06-09 19:57:50 UTC
#> # A tibble: 164 × 98
#>      game_id home_team_id home_team    away_team_id away_team play_id home_score
#>        <int>        <int> <chr>               <int> <chr>     <chr>        <int>
#>  1 401520182           52 Florida Sta…           99 LSU       401520…          0
#>  2 401520182           52 Florida Sta…           99 LSU       401520…          0
#>  3 401520182           52 Florida Sta…           99 LSU       401520…          0
#>  4 401520182           52 Florida Sta…           99 LSU       401520…          0
#>  5 401520182           52 Florida Sta…           99 LSU       401520…          0
#>  6 401520182           52 Florida Sta…           99 LSU       401520…          0
#>  7 401520182           52 Florida Sta…           99 LSU       401520…          0
#>  8 401520182           52 Florida Sta…           99 LSU       401520…          0
#>  9 401520182           52 Florida Sta…           99 LSU       401520…          0
#> 10 401520182           52 Florida Sta…           99 LSU       401520…          0
#> # ℹ 154 more rows
#> # ℹ 91 more variables: away_score <int>, period <int>, clock <chr>,
#> #   wall_clock <chr>, offense_team_id <int>, offense_team <chr>, down <int>,
#> #   distance <int>, yards_to_goal <int>, yards_gained <int>,
#> #   play_type_id <int>, play_type <chr>, ppa <dbl>, garbage_time <lgl>,
#> #   success <lgl>, rush_pass <chr>, down_type <chr>, play_text <chr>,
#> #   drive_id <chr>, drive_offense_id <int>, drive_offense_team <chr>, …
# }