Skip to contents

The rounds of every competition edition: the round ids to crawl.

One row per edition and round: the global round_id (the key of the round routes), round_number within the phase and the sub-phase.

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

Usage

acb_competition_rounds(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 and round. Its columns are listed in return_columns (subset(return_columns, fn == "acb_competition_rounds")) 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_rounds())
#> Error in acb_competition_rounds() : 
#>   api2.acb.com/api/matchdata/Menu/competition-data: the answer holds no
#> rows (competitions is empty).
# }