Skip to contents

Get results information from games.

Usage

cfbd_game_info(
  year,
  week = NULL,
  season_type = "both",
  team = NULL,
  home_team = NULL,
  away_team = NULL,
  conference = NULL,
  division = "fbs",
  game_id = NULL,
  quarter_scores = FALSE
)

Arguments

year

(Integer required): Year, 4 digit format(YYYY)

week

(Integer optional): Week - values from 1-15, 1-14 for seasons pre-playoff (i.e. 2013 or earlier)

season_type

(String default both): Select Season Type: regular, postseason, both, allstar, spring_regular, spring_postseason

team

(String optional): D-I Team

home_team

(String optional): Home D-I Team

away_team

(String optional): Away D-I Team

conference

(String optional): Conference abbreviation - Select a valid FBS conference Conference abbreviations P5: ACC, B12, B1G, SEC, PAC Conference abbreviations G5 and FBS Independents: CUSA, MAC, MWC, Ind, SBC, AAC

division

(String optional): Division abbreviation - Select a valid division: fbs/fcs/ii/iii

game_id

(Integer optional): Game ID filter for querying a single game

quarter_scores

(Logical default FALSE): This is a parameter to return the list columns that give the score at each quarter: home_line_scores and away_line_scores. I have defaulted the parameter to false so that you will not have to go to the trouble of dropping it.

Value

cfbd_game_info() - A data frame with 30 variables:

col_nametypesdescription
game_idintegerReferencing game id.
seasonintegerSeason of the game.
weekintegerGame week.
season_typecharacterSeason type of the game.
start_datecharacterGame date.
start_time_tbdlogicalTRUE/FALSE flag for if the game's start time is to be determined.
neutral_sitelogicalTRUE/FALSE flag for the game taking place at a neutral site.
conference_gamelogicalTRUE/FALSE flag for this game qualifying as a conference game.
attendanceintegerReported attendance at the game.
venue_idintegerReferencing venue id.
venuecharacterVenue name.
home_idintegerHome team referencing id.
home_teamcharacterHome team name.
home_conferencecharacterHome team conference.
home_divisioncharacterHome team division.
home_pointsintegerHome team points.
home_post_win_probcharacterHome team post-game win probability.
home_pregame_elocharacterHome team pre-game ELO rating.
home_postgame_elocharacterHome team post-game ELO rating.
away_idintegerAway team referencing id.
away_teamcharacterAway team name.
away_conferencecharacterAway team conference.
away_divisioncharacterAway team division.
away_pointsintegerAway team points.
away_post_win_probcharacterAway team post-game win probability.
away_pregame_elocharacterAway team pre-game ELO rating.
away_postgame_elocharacterAway team post-game ELO rating.
excitement_indexcharacterGame excitement index.
highlightscharacterGame highlight urls.
notescharacterGame notes.

Examples

# \donttest{
  try(cfbd_game_info(2018, week = 7, conference = "Ind"))
#> ── Game information from CollegeFootballData.com ───────────── cfbfastR 2.3.0 ──
#>  Data updated: 2026-06-13 04:18:07 UTC
#> # A tibble: 5 × 31
#>     game_id season  week season_type start_date         start_time_tbd completed
#>       <int>  <int> <int> <chr>       <chr>              <lgl>          <lgl>    
#> 1 401013452   2018     7 regular     2018-10-13T18:00:… FALSE          TRUE     
#> 2 401013148   2018     7 regular     2018-10-13T18:30:… FALSE          TRUE     
#> 3 401013370   2018     7 regular     2018-10-13T19:30:… FALSE          TRUE     
#> 4 401013442   2018     7 regular     2018-10-13T21:00:… FALSE          TRUE     
#> 5 401016408   2018     7 regular     2018-10-14T02:15:… FALSE          TRUE     
#> # ℹ 24 more variables: neutral_site <lgl>, conference_game <lgl>,
#> #   attendance <int>, venue_id <int>, venue <chr>, home_id <int>,
#> #   home_team <chr>, home_division <chr>, home_conference <chr>,
#> #   home_points <int>, home_post_win_prob <dbl>, home_pregame_elo <int>,
#> #   home_postgame_elo <int>, away_id <int>, away_team <chr>,
#> #   away_division <chr>, away_conference <chr>, away_points <int>,
#> #   away_post_win_prob <dbl>, away_pregame_elo <int>, …
# }