Skip to contents

A club's most recent and upcoming games.

One row per game (recent and upcoming around today); same columns as acb_matchlist.

Endpoint: GET https://api2.acb.com/api/seasondata/TeamProfile/next-matches

Usage

acb_next_matches(
  club_id,
  number_of_matches = NULL,
  competition_id = NULL,
  season = NULL
)

Arguments

club_id

(required) ACB club id (integer), stable across seasons and sponsor names (2 = Barca, 9 = Real Madrid, 13 = Valencia Basket). Not the season-team team_id. A whole number; a whole double is accepted.

number_of_matches

(default NULL) How many games to return (the site asks for 5). A whole number; a whole double is accepted.

competition_id

(default NULL) Competition id: 1 Liga Endesa, 2 Copa del Rey, 3 Supercopa Endesa, 10 Minicopa Endesa (youth). Omitted = the API's default competition. A whole number; a whole double is accepted.

season

(default NULL) Season END year (2027 = 2026-27; the first ACB season, 1983-84, is 1984). acb_runtime sends the API's editionId = season - 1936. Omitted = the current season. A whole number; a whole double is accepted.

Value

A hoopR_data tibble with one row per game. Its columns are listed in return_columns (subset(return_columns, fn == "acb_next_matches")) 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().

 acb_next_matches(club_id = 2, number_of_matches = 5)

See also

family_acb lists every function in this family.