Skip to contents

FIBA world ranking from the server-side gateway (same items as fiba_gdap_federation_ranking).

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

Usage

fiba_gdap_gateway_federation_ranking(
  gender = "women",
  zone_id = 1L,
  as_of_date = NULL,
  return_parsed = TRUE
)

Arguments

gender

(character, default "women" in wehoop; sdv-py and hoopR default "men") federationRanking: men or women (= gdapCategory)

zone_id

(integer, default 1L) federationRanking: ranking zone id (= zoneRankingId)

as_of_date

(character, optional) Ranking as of this date, ISO 8601: the latest ranking published on or before it (2026-03-10 answers the 2026-03-03 ranking). Omitted = the latest ranking

return_parsed

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

Value

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

col_nametypedescription
as_of_datecharacterDate of the ranking returned: the latest ranking published on or before the requested date.
zone_ranking_codecharacterRanking zone code (WORLD, AFRICA...).
zone_ranking_official_namecharacterRanking zone official name.
world_rankintegerPosition in the FIBA world ranking (1 = best).
country_namecharacterCountry name in English.
zone_rankintegerRank within the zone.
ioc_codecharacterIOC country code.
fiba_codecharacterFIBA three-letter country code (GER, USA; historic URS, YUG).
current_pointsdoubleRanking points (one decimal).
world_rank_variationintegerChange in world rank since the previous release (positive = up).
commentscharacterRanking note; null in every sample.
organisation_idintegerOrganisation id, stable across competitions and seasons: the national federation for a national team (64 = Germany), the club for a club team (396 = Filou Oostende). Same key space as nationalFederationId, clubId, play-by-play oId and the game page's T_<id>.
organisation_status_codecharacterOrganisation status: ACT active.

Details

FIBA's terms restrict this source. The GDAP developer-portal terms limit API use to 'Authorized Users' (federations, organisers, FIBA partners) and say any broader use 'is not authorised'; the fiba.basketball terms say no portion of the site may be duplicated, redistributed or manipulated. The package owner reviewed both clauses on 2026-10-12, accepted them and approved the full intake, published data releases included. Users who are not themselves authorised by FIBA should check the terms before using the wrappers.

The GDAP subscription key is public (fiba.basketball ships it in every page); the runtime reads it from the live page at run time and never logs it. Officials' contact details and coaches' and officials' dates of birth are dropped from every body.

Id key spaces: competition_id is one per edition (2023 World Cup = 208182) and game_id is global across competitions (the <gameId> of a game-page URL). team_id is per team per competition (Germany is 279569 at the 2023 World Cup and 281545 at Paris 2024), while organisation_id is the stable federation or club (64 = Germany, every year); the game page's T_<id> and the play-by-play oId are organisation ids, not team ids.

Errors are classed conditions (all inherit wehoop_error): wehoop_no_data when FIBA has nothing (HTTP 404, or GDAP answers {} / [] for an unknown id); wehoop_bad_request for HTTP 400 / 422 or a malformed id, season or date; wehoop_asset_fetch for any other failed fetch or an answer that is not about the request (an error envelope, HTTP 401 after a key refresh, HTTP 500, a body for another game, competition, team, player, federation, family or season). Seasons are FIBA's own key, which equals the sdv key: the END year for club competitions, the event year for national-team events, the target tournament year for qualifiers.

 fiba_gdap_gateway_federation_ranking(gender = "women", zone_id = 1, as_of_date = "2025-09-15")