Skip to contents

Get betting lines information for games

Usage

cfbd_betting_lines(
  game_id = NULL,
  year = NULL,
  week = NULL,
  season_type = "regular",
  team = NULL,
  home_team = NULL,
  away_team = NULL,
  conference = NULL,
  line_provider = NULL
)

Arguments

game_id

(Integer optional): Game ID filter for querying a single game. Required if year not provided
Can be found using the cfbd_game_info() function

year

(Integer optional): Year, 4 digit format(YYYY). Required if game_id not provided

week

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

season_type

(String default regular): 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

line_provider

(String optional): Select Line Provider - Caesars, consensus, numberfire, or teamrankings

Value

Betting information for games with the following 21 columns:

col_nametypesdescription
game_idintegerUnique CFBD game identifier.
seasonintegerFour-digit season year (e.g. 2024).
season_typecharacterSeason type (regular, postseason, both).
weekintegerWeek of the season; 1-15, or 1-14 for seasons pre-playoff (2013 earlier).
start_datecharacterKickoff timestamp in ISO 8601 format.
home_teamcharacterHome D-I team name.
home_conferencecharacterHome team D-I conference.
home_classificationcharacterHome team conference classification (fbs, fcs, ii, iii).
home_scoreintegerFinal score of the home team.
away_teamcharacterAway D-I team name.
away_conferencecharacterAway team D-I conference.
away_classificationcharacterAway team conference classification (fbs, fcs, ii, iii).
away_scoreintegerFinal score of the away team.
providercharacterSportsbook / line provider name.
spreadcharacterClosing point spread for the game.
formatted_spreadcharacterHuman-readable formatted spread (e.g. "Florida State -7.5").
spread_opencharacterOpening point spread for the game.
over_undercharacterClosing over/under (total) for the game.
over_under_opencharacterOpening over/under (total) for the game.
home_moneylinecharacterHome team moneyline odds.
away_moneylinecharacterAway team moneyline odds.

See also

Other CFBD Betting Functions: cfbd_betting_ats()

Examples

# \donttest{
   try(cfbd_betting_lines(year = 2018, week = 12, team = "Florida State"))
#> ── Betting lines data from CollegeFootballData.com ─────────── cfbfastR 2.3.0 ──
#>  Data updated: 2026-06-13 04:18:02 UTC
#> # A tibble: 4 × 23
#>     game_id season season_type  week start_date           home_team_id home_team
#>       <int>  <int> <chr>       <int> <chr>                       <int> <chr>    
#> 1 401013175   2018 regular        12 2018-11-17T20:30:00…           52 Florida …
#> 2 401013175   2018 regular        12 2018-11-17T20:30:00…           52 Florida …
#> 3 401013175   2018 regular        12 2018-11-17T20:30:00…           52 Florida …
#> 4 401013175   2018 regular        12 2018-11-17T20:30:00…           52 Florida …
#> # ℹ 16 more variables: home_conference <chr>, home_classification <chr>,
#> #   home_score <int>, away_team_id <int>, away_team <chr>,
#> #   away_conference <chr>, away_classification <chr>, away_score <int>,
#> #   provider <chr>, spread <dbl>, formatted_spread <chr>, spread_open <lgl>,
#> #   over_under <dbl>, over_under_open <lgl>, home_moneyline <lgl>,
#> #   away_moneyline <lgl>
# }