Skip to contents

Get the Sports for which the Odds API provides coverage

toa_sports(all_sports=TRUE)

Usage

toa_sports(all_sports = TRUE)

Arguments

all_sports

(Logical required): If true, returns all sports and if false, returns only active sports. Defaults to true.

Value

Sports for which The Odds API provides betting information for as a tibble:

col_nametypes
keycharacter
groupcharacter
titlecharacter
descriptioncharacter
activelogical
has_outrightslogical

Examples

# \donttest{
  try(toa_sports(all_sports = TRUE))
#> ── Sports coverage data from the-odds-api.com ──────── oddsapiR 0.0.1 ──
#>  Data updated: 2022-06-21 17:38:48 UTC
#> # A tibble: 77 × 6
#>    key                      group title description active has_outrights
#>    <chr>                    <chr> <chr> <chr>       <lgl>  <lgl>        
#>  1 americanfootball_ncaaf   Amer… NCAAF US College… TRUE   FALSE        
#>  2 americanfootball_nfl     Amer… NFL   US Football TRUE   FALSE        
#>  3 americanfootball_nfl_su… Amer… NFL … Super Bowl… TRUE   TRUE         
#>  4 aussierules_afl          Auss… AFL   Aussie Foo… TRUE   FALSE        
#>  5 baseball_mlb             Base… MLB   Major Leag… TRUE   FALSE        
#>  6 baseball_mlb_world_seri… Base… MLB … World Seri… TRUE   TRUE         
#>  7 basketball_euroleague    Bask… Bask… Basketball… FALSE  FALSE        
#>  8 basketball_nba           Bask… NBA   US Basketb… FALSE  FALSE        
#>  9 basketball_nba_champion… Bask… NBA … Championsh… FALSE  TRUE         
#> 10 basketball_ncaab         Bask… NCAAB US College… FALSE  FALSE        
#> # … with 67 more rows
# }