Get betting lines information for games

 cfbd_betting_lines(year = 2018, week = 12, team = "Florida State")

 # 7 OTs LSU at TAMU
 cfbd_betting_lines(year = 2018, week = 13, team = "Texas A&M", conference = "SEC")

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 Can be found using the cfbd_game_info() function

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 regular): Select Season Type: regular or 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

Source

https://api.collegefootballdata.com/lines

Value

Betting information for games with the following columns:

game_id:integer.

Unique game identifier - game_id.

season:integer.

Season parameter.

season_type:character.)

Season Type (regular, postseason, both

week:integer.

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

home_team:character.

Home D-I Team.

home_conference:character.

Home D-I Conference.

home_score:integer.

Home Score.

away_team:character.

Away D-I Team.

away_conference:character.

Away D-I Conference.

away_score:integer.

Away Score.

provider:character.

Line provider.

spread:character.

Spread for the game.

formatted_spread:character.

Formatted spread for the game.

spread_open:character.

Opening spread for the game.

over_under:character.

Over/Under for the game.

over_under_open:character.

Opening over/under for the game.

home_moneyline:character.

Home team moneyline.

away_moneyline:character.

Away team moneyline.

Examples

# \donttest{ cfbd_betting_lines(year = 2018, week = 12, team = "Florida State")
#> game_id season season_type week home_team home_conference home_score #> 1 401013175 2018 regular 12 Florida State ACC 22 #> 2 401013175 2018 regular 12 Florida State ACC 22 #> 3 401013175 2018 regular 12 Florida State ACC 22 #> 4 401013175 2018 regular 12 Florida State ACC 22 #> away_team away_conference away_score provider spread #> 1 Boston College ACC 21 consensus 3 #> 2 Boston College ACC 21 Caesars 3 #> 3 Boston College ACC 21 numberfire 2.5 #> 4 Boston College ACC 21 teamrankings 2.5 #> formatted_spread spread_open over_under over_under_open home_moneyline #> 1 Boston College -3 NA 49.5 NA NA #> 2 Boston College -3 NA 48.5 NA NA #> 3 Boston College -2.5 NA 49 NA NA #> 4 Boston College -2.5 NA 47.5 NA NA #> away_moneyline #> 1 NA #> 2 NA #> 3 NA #> 4 NA
# 7 OTs LSU at TAMU cfbd_betting_lines(year = 2018, week = 13, team = "Texas A&M", conference = "SEC")
#> game_id season season_type week home_team home_conference home_score #> 1 401012356 2018 regular 13 Texas A&M SEC 74 #> 2 401012356 2018 regular 13 Texas A&M SEC 74 #> 3 401012356 2018 regular 13 Texas A&M SEC 74 #> 4 401012356 2018 regular 13 Texas A&M SEC 74 #> away_team away_conference away_score provider spread formatted_spread #> 1 LSU SEC 72 consensus -3 Texas A&M -3 #> 2 LSU SEC 72 Caesars -3 Texas A&M -3 #> 3 LSU SEC 72 numberfire <NA> LSU -null #> 4 LSU SEC 72 teamrankings -3 Texas A&M -3 #> spread_open over_under over_under_open home_moneyline away_moneyline #> 1 NA 45.5 NA NA NA #> 2 NA 45.5 NA NA NA #> 3 NA 46.5 NA NA NA #> 4 NA 46.5 NA NA NA
# }