Get ESPN men's NBA schedule for a specific year

espn_nba_scoreboard(season)

Arguments

season

Either numeric or character (YYYYMMDD)

Value

Returns a tibble

Examples


# Get schedule from date 2021-02-15 (returns 1000 results, max allowable.)
# \donttest{
  try(espn_nba_scoreboard (season = "20220215"))
#> # A tibble: 7 × 32
#>   matchup matchup_short season  type slug  game_id game_uid game_date attendance
#>   <chr>   <chr>          <int> <int> <chr> <chr>   <chr>    <chr>          <int>
#> 1 Clevel… CLE @ ATL       2022     2 regu… 401360… s:40~l:… 2022-02-…          0
#> 2 Dallas… DAL @ MIA       2022     2 regu… 401360… s:40~l:… 2022-02-…          0
#> 3 Boston… BOS @ PHI       2022     2 regu… 401360… s:40~l:… 2022-02-…          0
#> 4 Indian… IND @ MIL       2022     2 regu… 401360… s:40~l:… 2022-02-…          0
#> 5 Charlo… CHA @ MIN       2022     2 regu… 401360… s:40~l:… 2022-02-…          0
#> 6 Memphi… MEM @ NO        2022     2 regu… 401360… s:40~l:… 2022-02-…          0
#> 7 LA Cli… LAC @ PHX       2022     2 regu… 401360… s:40~l:… 2022-02-…          0
#> # … with 23 more variables: home_team_name <chr>, home_team_logo <chr>,
#> #   home_team_abb <chr>, home_team_id <chr>, home_team_location <chr>,
#> #   home_team_full <chr>, home_team_color <chr>, home_score <int>,
#> #   home_win <int>, home_record <chr>, away_team_name <chr>,
#> #   away_team_logo <chr>, away_team_abb <chr>, away_team_id <chr>,
#> #   away_team_location <chr>, away_team_full <chr>, away_team_color <chr>,
#> #   away_score <int>, away_win <int>, away_record <chr>, notes <lgl>, …
# }