Skip to main content

FIBA (digital API and game pages) — FIBA digital API (GDAP, digital-api.fiba.basketball) — Other: rounds–schedule

fiba_gdap_rounds​

Rounds of a competition (group stage, knockout rounds).

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

Valid URL: https://digital-api.fiba.basketball/hapi/getgdaproundsbycompetitionid?gdapCompetitionId=208182

API ParameterPythonPatternRequiredNullableDescription
gdapCompetitionIdcompYRequired. FIBA competition id (GDAP key space), one per edition: competition.competitionId of any game row (208182 = World Cup 2023, 208722 = Paris 2024 men, 208850 = BCL 2024-25). Find it with fiba_gdap_editions or fiba_gdap_games_between.

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_systemStringPairing system label (Single, Home and Away, Best of 3).
game_system_codeStringPairing system code: S single game, HA home and away, BOF3 best of three.
parent_round_idInt64roundId of the round this one belongs to; null for a top-level round.
round_codeStringRound code (GP group phase, QF, SF, F final, RS regular season, CL17-32 classification...).
round_idInt64Round id (GDAP key space, unique across competitions); the first segment of gameName.
round_nameStringRound label (Group Phase, Quarter-Finals, Final...).
round_numberInt64Round number within the competition (1-based).
round_typeStringRound type label: Group Round, Non Group Round, Super Round (getgdapgamesbycompetitionid uses the code G/NG here).
round_type_codeStringRound type code: G group, NG non-group (knockout), S super round.
round_status_codeStringRound status: COMPL completed, PROGR in progress, CLOS closed.
start_dateStringRound start, local date-time.
end_dateStringRound end, local date-time (23:59:59.9999999 on the last day).
has_teams_assignedBooleanTrue once the round's teams are known.
round_kindStringStandard Round or Qualifiers.
standing_header_codeStringCode of the standings table the round feeds.
standing_header_nameStringName of the standings table the round feeds.
qualified_team_informationStringQualification note of the round; null in every sample.
round_orderInt64Display order of the round.

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

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist. FIBA has nothing for the request (HTTP 404, or GDAP answered {} or [] for an unknown id).
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty. The fetch failed, or the answer 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).
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help. HTTP 400 / 422, or a malformed id, season or date.

Example​

fiba_gdap_rounds(comp=208182)

fiba_gdap_schedule​

Schedule and results of one competition (edition): one row per game.

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

Valid URL: https://digital-api.fiba.basketball/hapi/getgdapgamesbycompetitionid?gdapCompetitionId=208182

API ParameterPythonPatternRequiredNullableDescription
gdapCompetitionIdcompYRequired. FIBA competition id (GDAP key space), one per edition: competition.competitionId of any game row (208182 = World Cup 2023, 208722 = Paris 2024 men, 208850 = BCL 2024-25). Find it with fiba_gdap_editions or fiba_gdap_games_between.

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_idInt64FIBA game id, global across competitions (GDAP key space): gdapGameId, the of a game-page URL.
game_nameStringTechnical game name '--'.
game_numberStringGame number within the round or pairing (a string: '1', 'A').
status_codeStringGame status code: VALID (validated result), CLOS (closed, pre-2000 rows).
team_a_team_idInt64Competition 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_idInt64Organisation 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_codeStringTeam code (national: FIBA country code; club: a club abbreviation such as OOST).
team_a_official_nameStringOfficial name of team A: the country for a national team, the club for a club team.
team_a_short_nameStringShort name of team A: the country code for a national team, the club's short name for a club.
team_b_team_idInt64Competition 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_idInt64Organisation 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_codeStringTeam code (national: FIBA country code; club: a club abbreviation such as NANT).
team_b_official_nameStringOfficial name of team B: the country for a national team, the club for a club team.
team_b_short_nameStringShort name of team B: the country code for a national team, the club's short name for a club.
team_a_scoreInt64Final score of team A.
team_b_scoreInt64Final score of team B.
is_liveBooleanTrue while the game is being played.
current_periodStringLast period reached ('Q4', 'OT1').
chronoStringGame clock of the current period, 'mm:ss' ('00:00' when finished).
live_game_statusInt64Live state code: 999 on every finished game; 5 seen on a finished 2024 youth game; mapping unverified.
current_period_statusStringState of the current period: E = ended (the only value sampled).
host_cityStringCity of the venue.
host_countryStringCountry of the venue (name; a FIBA code in getgdapgameswithleaderdetailsbyteamid).
host_country_codeStringFIBA code of the venue's country.
venue_idInt64Venue id (GDAP key space; 0 = unknown).
venue_nameStringName of the arena the game is played in.
game_date_timeStringTip-off in venue-local wall-clock time, ISO 8601 without offset (T00:00:00 when hasTimeGameDateTime is false).
game_date_time_utcStringTip-off in UTC, ISO 8601 without the Z.
has_time_game_date_timeBooleanFalse when only the date is known (the time part is then 00:00:00).
iana_time_zoneStringIANA time zone of the venue.
utc_offsetFloat64Venue UTC offset at tip-off, in hours (Float64: a half-hour zone such as India +5.5 or Adelaide +9.5 is a fraction; whole hours in every sample).
is_postponedBooleanTrue when the game was postponed.
is_played_behind_closed_doorsBooleanTrue when played without spectators.
venue_capacityInt64Venue capacity (0 = unknown).
spectatorsInt64Attendance at the game, as recorded by FIBA.
statistic_systemStringLive-stats system that scored the game: OVR (FIBA's Olympic/World Cup system), FLS (FIBA LiveStats), null before about 2006.
group_idStringGroup id (GDAP key space).
group_pairing_codeStringGroup letter (group play) or pairing number (knockout bracket slot).
round_round_idInt64Round id (GDAP key space, unique across competitions); the first segment of gameName.
round_round_codeStringRound code (GP group phase, QF, SF, F final, RS regular season, CL17-32 classification...).
round_round_nameStringRound label (Group Phase, Quarter-Finals, Final...).
round_round_numberInt64Round number within the competition (1-based).
round_round_typeStringRound type label: Group Round, Non Group Round, Super Round (getgdapgamesbycompetitionid uses the code G/NG here).
round_round_status_codeStringRound status: COMPL completed, PROGR in progress, CLOS closed.
round_game_systemStringPairing system label (Single, Home and Away, Best of 3).
round_game_system_codeStringPairing system code: S single game, HA home and away, BOF3 best of three.
round_start_dateStringRound start, local date-time.
round_end_dateStringRound end, local date-time (23:59:59.9999999 on the last day).
round_round_kindStringStandard Round or Qualifiers.
round_round_orderInt64Display order of the round.
competition_competition_idInt64FIBA competition id (GDAP key space): one per edition (2023 World Cup = 208182, BCL 2024-25 = 208850); gdapCompetitionId.
competition_competition_codeStringCompetition code (WMM men's World Cup, WOLYM, BCL, ELW...).
competition_seasonInt64Season 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_nameStringEdition title (FIBA Basketball World Cup; Paris 2024 Men's Olympic Basketball Tournament).
competition_startStringFirst day, YYYY-MM-DD.
competition_endStringLast day, YYYY-MM-DD.
competition_statusStringCompetition status: In Progress, Completed, Closed.
competition_age_categoryStringAge category (Senior, Under 16...).
competition_genderStringMen or Women: the gender of the competition.
competition_fiba_zoneStringFIBA zone the competition belongs to (World, Europe, Americas...).
competition_zone_information_zone_idInt64FIBA zone id (1 = World, 23 = Europe; zone table key space).
competition_zone_information_zone_official_nameStringOfficial name of the competition's FIBA zone (FIBA Europe, FIBA Americas, World).
competition_zone_information_zone_codeStringZone code (W, E, AF, AM, AS, OC).
competition_zone_information_top_zone_idInt64Parent zone id; null for top zones.
competition_zone_information_top_zone_official_nameStringParent zone name; always null in the samples, values unverified.
competition_zone_information_top_zone_codeStringParent zone code; always null in the samples, values unverified.
competition_competition_typeStringNational Teams or Clubs.
competition_competition_category_is_leagueBooleanTrue for league-format club competitions.
competition_competition_category_age_typeStringAge type code: S senior, U16.
competition_competition_category_codeStringCategory code (WC World Cup, OLY Olympic Tournament, CCC-1 continental club tier 1).
competition_competition_category_nameStringName of the competition's category (FIBA Basketball World Cup, Olympic Basketball Tournament...).
competition_official_flag_item_codeStringOfficial-status code: O = official.
competition_official_flag_item_nameStringOfficial-status label.
competition_officialStringOfficial-status label.
competition_disciplineStringDiscipline (Basketball; 3x3 is a separate platform).
competition_competition_marketing_name_competition_marketing_name_idInt64Competition family id (201 = World Cup, 112 = BCL tier 1, 211 = EuroLeague Women); the of /en/history/ pages.
competition_competition_marketing_name_marketing_nameStringCompetition family name; slugified it is the of /en/history/ pages.
competition_competition_marketing_name_codeStringFamily code; null in every sample.
game_statistic_status_codeStringBox-score validation status: VALID.
game_play_by_play_status_codeStringPlay-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_codeStringResult validation status: VALID.
game_result_additional_informationStringFree-text result note (forfeit, overtime remark); null when none.
window_codeStringQualifier window code; null otherwise.
window_nameStringQualifier window name; null otherwise.
team_a_fromStringHow team A qualified for this slot ('Winner of Game 87', '1st of group C'); null in group play.
team_b_fromStringHow 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.

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist. FIBA has nothing for the request (HTTP 404, or GDAP answered {} or [] for an unknown id).
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty. The fetch failed, or the answer 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).
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help. HTTP 400 / 422, or a malformed id, season or date.

Example​

fiba_gdap_schedule(comp=208182)