Skip to main content

FIBA (digital API and game pages) — FIBA digital API (GDAP, digital-api.fiba.basketball) — Federation

fiba_gdap_federation_games​

A federation's recent and upcoming national-team games.

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

Valid URL: https://digital-api.fiba.basketball/hapi/getgdapfederationgamesbyfederationid?gdapFederationId=64

API ParameterPythonPatternRequiredNullableDescription
gdapFederationIdfederation_idYRequired. Federation organisationId, stable across competitions (64 = Germany; teamA.organisationId)

Returns​

return_parsed=True (default) — a tidy polars.DataFrame with the columns below; pass return_as_pandas=True for a pandas.DataFrame.

col_nametypedescription
game_idintegerFIBA game id, global across competitions (GDAP key space): gdapGameId, the of a game-page URL.
game_namecharacterTechnical game name '--'.
game_numbercharacterGame number within the round or pairing (a string: '1', 'A').
status_codecharacterGame status code: VALID (validated result), CLOS (closed, pre-2000 rows).
team_a_team_idintegerCompetition team id: one per team per competition (Germany = 279569 at the 2023 World Cup, 281545 at Paris 2024). Joins getgdapcompetitionteamrosterbyteamid / getgdapcompetitionteamstatisticsbyteamid gdapTeamId; not an organisationId.
team_a_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_.
team_a_codecharacterTeam code (national: FIBA country code; club: a club abbreviation such as OOST).
team_a_official_namecharacterOfficial name of team A: the country for a national team, the club for a club team.
team_a_short_namecharacterShort name of team A: the country code for a national team, the club's short name for a club.
team_b_team_idintegerCompetition team id: one per team per competition (Germany = 279569 at the 2023 World Cup, 281545 at Paris 2024). Joins getgdapcompetitionteamrosterbyteamid / getgdapcompetitionteamstatisticsbyteamid gdapTeamId; not an organisationId.
team_b_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_.
team_b_codecharacterTeam code (national: FIBA country code; club: a club abbreviation such as NANT).
team_b_official_namecharacterOfficial name of team B: the country for a national team, the club for a club team.
team_b_short_namecharacterShort name of team B: the country code for a national team, the club's short name for a club.
team_a_scoreintegerFinal score of team A.
team_b_scoreintegerFinal score of team B.
is_livelogicalTrue while the game is being played.
current_periodcharacterLast period reached ('Q4', 'OT1').
chronocharacterGame clock of the current period, 'mm:ss' ('00:00' when finished).
live_game_statusintegerLive state code: 999 on every finished game; 5 seen on a finished 2024 youth game; mapping unverified.
current_period_statuscharacterState of the current period: E = ended (the only value sampled).
host_citycharacterCity of the venue.
host_countrycharacterCountry of the venue (name; a FIBA code in getgdapgameswithleaderdetailsbyteamid).
host_country_codecharacterFIBA code of the venue's country.
venue_idintegerVenue id (GDAP key space; 0 = unknown).
venue_namecharacterName of the arena the game is played in.
game_date_timecharacterTip-off in venue-local wall-clock time, ISO 8601 without offset (T00:00:00 when hasTimeGameDateTime is false).
game_date_time_utccharacterTip-off in UTC, ISO 8601 without the Z.
has_time_game_date_timelogicalFalse when only the date is known (the time part is then 00:00:00).
iana_time_zonecharacterIANA time zone of the venue.
utc_offsetintegerVenue UTC offset at tip-off, hours.
is_postponedlogicalTrue when the game was postponed.
is_played_behind_closed_doorslogicalTrue when played without spectators.
venue_capacityintegerVenue capacity (0 = unknown).
spectatorsintegerAttendance at the game, as recorded by FIBA.
statistic_systemcharacterLive-stats system that scored the game: OVR (FIBA's Olympic/World Cup system), FLS (FIBA LiveStats), null before about 2006.
group_idcharacterGroup id (GDAP key space).
group_pairing_codecharacterGroup letter (group play) or pairing number (knockout bracket slot).
round_round_idintegerRound id (GDAP key space, unique across competitions); the first segment of gameName.
round_round_codecharacterRound code (GP group phase, QF, SF, F final, RS regular season, CL17-32 classification...).
round_round_namecharacterRound label (Group Phase, Quarter-Finals, Final...).
round_round_numberintegerRound number within the competition (1-based).
round_round_typecharacterRound type label: Group Round, Non Group Round, Super Round (getgdapgamesbycompetitionid uses the code G/NG here).
round_round_status_codecharacterRound status: COMPL completed, PROGR in progress, CLOS closed.
round_game_systemcharacterPairing system label (Single, Home and Away, Best of 3).
round_game_system_codecharacterPairing system code: S single game, HA home and away, BOF3 best of three.
round_start_datecharacterRound start, local date-time.
round_end_datecharacterRound end, local date-time (23:59:59.9999999 on the last day).
round_round_kindcharacterStandard Round or Qualifiers.
round_round_orderintegerDisplay order of the round.
competition_competition_idintegerFIBA competition id (GDAP key space): one per edition (2023 World Cup = 208182, BCL 2024-25 = 208850); gdapCompetitionId.
competition_competition_codecharacterCompetition code (WMM men's World Cup, WOLYM, BCL, ELW...).
competition_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 sdv 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), whose sdv mapping is an open Phase B decision.
competition_official_namecharacterEdition title (FIBA Basketball World Cup; Paris 2024 Men's Olympic Basketball Tournament).
competition_startcharacterFirst day, YYYY-MM-DD.
competition_endcharacterLast day, YYYY-MM-DD.
competition_statuscharacterCompetition status: In Progress, Completed, Closed.
competition_age_categorycharacterAge category (Senior, Under 16...).
competition_gendercharacterMen or Women: the gender of the competition.
competition_fiba_zonecharacterFIBA zone the competition belongs to (World, Europe, Americas...).
competition_zone_information_zone_idintegerFIBA zone id (1 = World, 23 = Europe; zone table key space).
competition_zone_information_zone_official_namecharacterOfficial name of the competition's FIBA zone (FIBA Europe, FIBA Americas, World).
competition_zone_information_zone_codecharacterZone code (W, E, AF, AM, AS, OC).
competition_zone_information_top_zone_idintegerParent zone id; null for top zones.
competition_zone_information_top_zone_official_namecharacterParent zone name; always null in the samples, values unverified.
competition_zone_information_top_zone_codecharacterParent zone code; always null in the samples, values unverified.
competition_competition_typecharacterNational Teams or Clubs.
competition_competition_category_is_leaguelogicalTrue for league-format club competitions.
competition_competition_category_age_typecharacterAge type code: S senior, U16.
competition_competition_category_codecharacterCategory code (WC World Cup, OLY Olympic Tournament, CCC-1 continental club tier 1).
competition_competition_category_namecharacterName of the competition's category (FIBA Basketball World Cup, Olympic Basketball Tournament...).
competition_official_flag_item_codecharacterOfficial-status code: O = official.
competition_official_flag_item_namecharacterOfficial-status label.
competition_officialcharacterOfficial-status label.
competition_disciplinecharacterDiscipline (Basketball; 3x3 is a separate platform).
competition_competition_marketing_namecharacterCompetition family, shared by every edition; always null in the samples, values unverified.
game_statistic_status_codecharacterBox-score validation status: VALID.
game_play_by_play_status_codecharacterPlay-by-play availability flag: VALID or EMPTY. UNRELIABLE: World Cup 2014 and EuroBasket 2017 say EMPTY but their game pages carry full play-by-play; always check the page.
game_result_status_codecharacterResult validation status: VALID.
game_result_additional_informationcharacterFree-text result note (forfeit, overtime remark); null when none.
window_codecharacterQualifier window code; null otherwise.
window_namecharacterQualifier window name; null otherwise.
team_a_fromcharacterHow team A qualified for this slot ('Winner of Game 87', '1st of group C'); null in group play.
team_b_fromcharacterHow team B qualified for this slot ('Winner of Game 88', '2nd of group A'); null in group play.

return_parsed=False — the raw JSON Dict payload, unparsed.

Example​

fiba_gdap_federation_games(federation_id=64)

Last validated n/a.

fiba_gdap_federation_ranking​

FIBA world ranking of national teams.

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

Valid URL: https://digital-api.fiba.basketball/hapi/getgdapfederationsranking?gdapCategory=men&zoneRankingId=1&asOfDate=2025-09-15

API ParameterPythonPatternRequiredNullableDescription
gdapCategorycategoryYRanking category: men or women (the site also knows boys/girls)
zoneRankingIdzone_idYRanking zone id from getgdaprankingzones (1 = World, 2 = Africa, 3 = Americas, 4 = Asia, 5 = Europe)
asOfDateas_of_dateYRanking 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

Returns​

return_parsed=True (default) — a tidy polars.DataFrame with the columns below; pass return_as_pandas=True for a pandas.DataFrame.

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_pointsnumericRanking points (one decimal).
world_rank_variationintegerChange in world rank since the previous release (positive = up).
commentscharacterRanking note; null in every sample.

return_parsed=False — the raw JSON Dict payload, unparsed.

Example​

fiba_gdap_federation_ranking(as_of_date='2025-09-15', category='men', zone_id=1)

Last validated n/a.