Get MLS schedule for a specific year/date from ESPN's API

espn_mls_scoreboard(season)

Arguments

season

Either numeric or character

Value

Returns a tibble

Author

Saiem Gilani.

Examples

# Get schedule from date 2020-08-29
# \donttest{
  try(espn_mls_scoreboard (season = "20200829"))
#> # A tibble: 9 × 35
#>   matchup matchup_short season  type slug  game_id game_uid game_date attendance
#>   <chr>   <chr>          <int> <int> <chr> <chr>   <chr>    <chr>          <int>
#> 1 Orland… ORL @ ATL       2020  9217 regu… 577196  s:600~l… 2020-08-…          0
#> 2 Columb… CLB @ CIN       2020  9217 regu… 577197  s:600~l… 2020-08-…          0
#> 3 Chicag… CHI @ NYC       2020  9217 regu… 577199  s:600~l… 2020-08-…          0
#> 4 D.C. U… DC @ PHI        2020  9217 regu… 577198  s:600~l… 2020-08-…          0
#> 5 New Yo… NY @ NE         2020  9217 regu… 577200  s:600~l… 2020-08-…          0
#> 6 Minnes… MIN @ DAL       2020  9217 regu… 577201  s:600~l… 2020-08-…       3212
#> 7 Sporti… SKC @ COL       2020  9217 regu… 577202  s:600~l… 2020-08-…          0
#> 8 San Jo… SJ @ LA         2020  9217 regu… 577195  s:600~l… 2020-08-…          0
#> 9 Real S… RSL @ POR       2020  9217 regu… 577203  s:600~l… 2020-08-…          0
#> # … with 26 more variables: gamecast_available <lgl>, home_team_name <chr>,
#> #   home_team_logo <chr>, home_team_abbreviation <chr>, home_team_id <chr>,
#> #   home_team_location <chr>, home_team_full_name <chr>, home_team_color <chr>,
#> #   home_score <int>, home_win <int>, home_record <chr>, away_team_name <chr>,
#> #   away_team_logo <chr>, away_team_abbreviation <chr>, away_team_id <chr>,
#> #   away_team_location <chr>, away_team_full_name <chr>, away_team_color <chr>,
#> #   away_score <int>, away_win <int>, away_record <chr>, notes <lgl>, …
# }