Skip to contents

Every competition edition (season) the API knows, one row per edition.

One row per competition and edition: edition_id (START year - 1935), season_start_year and season (END year), plus how many rounds and weeks the edition lists. competition_name is the API's name for the competition (the Liga is Liga Nacional here).

Endpoint: GET https://api2.acb.com/api/matchdata/Menu/competition-data

Usage

acb_competition_editions(competition_ids = NULL)

Arguments

competition_ids

(default NULL) Competition id (1, 2, 3, 10) or a list of ids for several. Omitted = the API's default competition. One or more whole numbers (a vector repeats competitionIds in the query).

Value

A hoopR_data tibble with one row per edition. Its columns are listed in return_columns (subset(return_columns, fn == "acb_competition_editions")) and in the searchable return columns article.

Details

Source, terms of use, request pacing, seasons, ids, coverage and error classes of this family: see the notes in acb_match_header().

See also

family_acb lists every function in this family.

Examples

# \donttest{
  try(acb_competition_editions())
#> Error in acb_competition_editions() : 
#>   api2.acb.com/api/matchdata/Menu/competition-data: the answer holds no
#> rows (competitions is empty).
# }