Skip to contents

Every edition of a competition family between two seasons.

Endpoint: GET https://digital-api.fiba.basketball/hapi/getgdapcompetitionsbyseasonsandcompetitionmarketingname

Usage

fiba_gdap_editions(
  family_id,
  season = NULL,
  to_season = NULL,
  return_parsed = TRUE
)

Arguments

family_id

(integer, required) Required. Competition family id (competitionMarketingName.competitionMarketingNameId): 201 = World Cup, 320 = men's Olympics, 306 = Women's World Cup, 112 = BCL tier 1, 211 = EuroLeague Women.

season

(integer, optional) Season key: the END year for club competitions (BCL 2024-25 = 2025), the event year for national-team events (World Cup 2023 = 2023); qualifiers carry the TARGET tournament year (World Cup 2027 qualifiers played in 2025 = 2027). Sent unchanged. First season, inclusive; omitted = no lower bound.

to_season

(integer, optional) Last season, inclusive (same key as season). Omitted with season given = the same season.

return_parsed

Parse the payload into a tibble (default TRUE); FALSE returns the raw JSON list.

Value

A hoopR_data tibble (the raw JSON list when return_parsed = FALSE) with the following columns:

col_nametypedescription
hostscharacterHost countries with their cities. Stored as a JSON string.
competition_idintegerFIBA competition id (GDAP key space): one per edition (2023 World Cup = 208182, BCL 2024-25 = 208850); gdapCompetitionId.
competition_codecharacterCompetition code (WMM men's World Cup, WOLYM, BCL, ELW...).
seasonintegerSeason key, three rules: the END year for club competitions (BCL 2024-25 = 2025) and the event year for national-team events (World Cup 2023 = 2023), both equal to the package season key; qualifiers carry the TARGET tournament year, not the year played (World Cup 2027 qualifiers played in 2025 = 2027, EuroBasket 2029 pre-qualifiers = 2029).
official_namecharacterEdition title (FIBA Basketball World Cup; Paris 2024 Men's Olympic Basketball Tournament).
startcharacterFirst day, YYYY-MM-DD.
endcharacterLast day, YYYY-MM-DD.
statuscharacterCompetition status: In Progress, Completed, Closed.
age_categorycharacterAge category (Senior, Under 16...).
gendercharacterMen or Women: the gender of the competition.
fiba_zonecharacterFIBA zone the competition belongs to (World, Europe, Americas...).
zone_information_zone_idintegerFIBA zone id (1 = World, 23 = Europe; zone table key space).
zone_information_zone_official_namecharacterOfficial name of the competition's FIBA zone (FIBA Europe, FIBA Americas, World).
zone_information_zone_codecharacterZone code (W, E, AF, AM, AS, OC).
zone_information_top_zone_idintegerParent zone id; null for top zones.
zone_information_top_zone_official_namecharacterParent zone name; always null in the samples, values unverified.
zone_information_top_zone_codecharacterParent zone code; always null in the samples, values unverified.
competition_typecharacterNational Teams or Clubs.
competition_category_is_leaguelogicalTrue for league-format club competitions.
competition_category_age_typecharacterAge type code: S senior, U16.
competition_category_codecharacterCategory code (WC World Cup, OLY Olympic Tournament, CCC-1 continental club tier 1).
competition_category_namecharacterName of the competition's category (FIBA Basketball World Cup, Olympic Basketball Tournament...).
official_flag_item_codecharacterOfficial-status code: O = official.
official_flag_item_namecharacterOfficial-status label.
officialcharacterOfficial-status label.
disciplinecharacterDiscipline (Basketball; 3x3 is a separate platform).
competition_marketing_name_competition_marketing_name_idintegerCompetition family id (201 = World Cup, 112 = BCL tier 1, 211 = EuroLeague Women); the <histId> of /en/history/ pages.
competition_marketing_name_marketing_namecharacterCompetition family name; slugified it is the <histSlug> of /en/history/ pages.
competition_marketing_name_codecharacterFamily code; null in every sample.

Details

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

Examples

# \donttest{
  try(fiba_gdap_editions(family_id = 201, season = 2023))
#> ── FIBA gdap_editions from fiba.basketball ────────────────────── hoopR 3.2.0 ──
#> ℹ Data updated: 2026-10-31 21:30:07 UTC
#> # A tibble: 1 × 29
#>   hosts  competition_id competition_code season official_name start end   status
#>   <chr>           <int> <chr>             <int> <chr>         <chr> <chr> <chr> 
#> 1 "[{\"…         208182 WMM                2023 FIBA Basketb… 2023… 2023… Compl…
#> # ℹ 21 more variables: age_category <chr>, gender <chr>, fiba_zone <chr>,
#> #   zone_information_zone_id <int>, zone_information_zone_official_name <chr>,
#> #   zone_information_zone_code <chr>, zone_information_top_zone_id <int>,
#> #   zone_information_top_zone_official_name <chr>,
#> #   zone_information_top_zone_code <chr>, competition_type <chr>,
#> #   competition_category_is_league <lgl>, competition_category_age_type <chr>,
#> #   competition_category_code <chr>, competition_category_name <chr>, …
# }