Skip to main content

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

fiba_gdap_team_games​

A team's games with each team's leaders.

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

Valid URL: https://digital-api.fiba.basketball/hapi/getgdapgameswithleaderdetailsbyteamid?gdapTeamId=279569

API ParameterPythonPatternRequiredNullableDescription
gdapTeamIdteam_idYRequired. Competition team id: one per team per competition (teamA.teamId of a game row; Germany is 279569 at the 2023 World Cup and 281545 at Paris 2024). Not the federation 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_idInt64FIBA game id, global across competitions (GDAP key space): gdapGameId, the of a game-page URL.
round_nameStringRound label (Group Phase, Quarter-Finals, Final...).
game_numberStringGame number within the round or pairing (a string: '1', 'A').
statusStringGame status label (Validated).
status_codeStringGame status code: VALID (validated result), CLOS (closed, pre-2000 rows).
game_dayInt64Game day number within the round.
team_a_fromStringHow team A qualified for this slot; null in group play.
team_b_fromStringHow team B qualified for this slot; null in group play.
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_scoreInt64Team A points in the period.
team_b_scoreInt64Team B points in the period.
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; always null in the samples, values unverified.
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).
buy_tickets_urlStringTicket link; always '' in the samples.
watch_urlStringStream link; always '' in the samples.
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.
is_liveBooleanTrue while the game is being played.
leaders_team_a_points_leader_player_idInt64FIBA person id, global across competitions and roles (player, coach, official): roster personId = play-by-play pId = game-page P_ = gdapPlayerId.
leaders_team_a_points_leader_first_nameStringGiven name(s) as registered with FIBA.
leaders_team_a_points_leader_last_nameStringLast name (officials: upper case).
leaders_team_a_points_leader_statistics_valueInt64Leader's value for the statistic.
leaders_team_a_points_leader_nationalityStringFIBA code of the main nationality.
leaders_team_a_points_leader_rankInt64Rank (1 = first).
leaders_team_a_rebounds_leader_player_idInt64FIBA person id, global across competitions and roles (player, coach, official): roster personId = play-by-play pId = game-page P_ = gdapPlayerId.
leaders_team_a_rebounds_leader_first_nameStringGiven name(s) as registered with FIBA.
leaders_team_a_rebounds_leader_last_nameStringLast name (officials: upper case).
leaders_team_a_rebounds_leader_statistics_valueInt64Leader's value for the statistic.
leaders_team_a_rebounds_leader_nationalityStringFIBA code of the main nationality.
leaders_team_a_rebounds_leader_rankInt64Rank (1 = first).
leaders_team_a_assists_leader_player_idInt64FIBA person id, global across competitions and roles (player, coach, official): roster personId = play-by-play pId = game-page P_ = gdapPlayerId.
leaders_team_a_assists_leader_first_nameStringGiven name(s) as registered with FIBA.
leaders_team_a_assists_leader_last_nameStringLast name (officials: upper case).
leaders_team_a_assists_leader_statistics_valueInt64Leader's value for the statistic.
leaders_team_a_assists_leader_nationalityStringFIBA code of the main nationality.
leaders_team_a_assists_leader_rankInt64Rank (1 = first).
leaders_team_b_points_leader_player_idInt64FIBA person id, global across competitions and roles (player, coach, official): roster personId = play-by-play pId = game-page P_ = gdapPlayerId.
leaders_team_b_points_leader_first_nameStringGiven name(s) as registered with FIBA.
leaders_team_b_points_leader_last_nameStringLast name (officials: upper case).
leaders_team_b_points_leader_statistics_valueInt64Leader's value for the statistic.
leaders_team_b_points_leader_nationalityStringFIBA code of the main nationality.
leaders_team_b_points_leader_rankInt64Rank (1 = first).
leaders_team_b_rebounds_leader_player_idInt64FIBA person id, global across competitions and roles (player, coach, official): roster personId = play-by-play pId = game-page P_ = gdapPlayerId.
leaders_team_b_rebounds_leader_first_nameStringGiven name(s) as registered with FIBA.
leaders_team_b_rebounds_leader_last_nameStringLast name (officials: upper case).
leaders_team_b_rebounds_leader_statistics_valueInt64Leader's value for the statistic.
leaders_team_b_rebounds_leader_nationalityStringFIBA code of the main nationality.
leaders_team_b_rebounds_leader_rankInt64Rank (1 = first).
leaders_team_b_assists_leader_player_idInt64FIBA person id, global across competitions and roles (player, coach, official): roster personId = play-by-play pId = game-page P_ = gdapPlayerId.
leaders_team_b_assists_leader_first_nameStringGiven name(s) as registered with FIBA.
leaders_team_b_assists_leader_last_nameStringLast name (officials: upper case).
leaders_team_b_assists_leader_statistics_valueInt64Leader's value for the statistic.
leaders_team_b_assists_leader_nationalityStringFIBA code of the main nationality.
leaders_team_b_assists_leader_rankInt64Rank (1 = first).
periodsStringScore by period. Stored as a JSON string.
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.

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_team_games(team_id=279569)

fiba_gdap_team_player_stats​

Per-game averages of every player of a team at a competition.

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

Valid URL: https://digital-api.fiba.basketball/hapi/getgdapcompetitionteamstatisticsbyteamid?gdapTeamId=279569

API ParameterPythonPatternRequiredNullableDescription
gdapTeamIdteam_idYRequired. Competition team id: one per team per competition (teamA.teamId of a game row; Germany is 279569 at the 2023 World Cup and 281545 at Paris 2024). Not the federation 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
competition_idInt64FIBA competition id (Int64) the averages belong to.
player_idInt64FIBA person id, global across competitions and roles (player, coach, official): roster personId = play-by-play pId = game-page P_ = gdapPlayerId.
first_nameStringGiven name(s) as registered with FIBA.
last_nameStringLast name (officials: upper case).
uniform_numberStringJersey number (a string).
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.
points_per_gameFloat64The player's average points per game played.
rebounds_per_gameFloat64The player's average rebounds per game played.
rebounds_offensive_per_gameFloat64The player's average offensive rebounds per game played.
rebounds_defensive_per_gameFloat64The player's average defensive rebounds per game played.
assists_per_gameFloat64The player's average assists per game played.
blocks_per_gameFloat64The player's average blocked shots per game played.
turnovers_per_gameFloat64The player's average turnovers per game played.
fouls_per_gameFloat64The player's average personal fouls per game played.
plus_minus_per_gameFloat64The player's average plus/minus (point differential while on court) per game played.
efficiency_per_gameFloat64The player's average efficiency (FIBA EFF) per game played.
play_time_in_seconds_per_gameFloat64The player's average playing time in seconds per game played.
field_goals_made_per_gameFloat64The player's average field goals made per game played.
field_goals_attempted_per_gameFloat64The player's average field goals attempted per game played.
two_points_made_per_gameFloat64The player's average two-point field goals made per game played.
two_points_attempted_per_gameFloat64The player's average two-point field goals attempted per game played.
three_points_made_per_gameFloat64The player's average three-point field goals made per game played.
three_points_attempted_per_gameFloat64The player's average three-point field goals attempted per game played.
free_throws_made_per_gameFloat64The player's average free throws made per game played.
free_throws_attempted_per_gameFloat64The player's average free throws attempted per game played.
points_from_turnovers_per_gameFloat64The player's average points from turnovers per game played.
fast_break_points_per_gameFloat64The player's average fast-break points per game played.
second_chance_points_per_gameFloat64The player's average second-chance points per game played.
points_in_the_paint_per_gameFloat64The player's average points in the paint per game played.
steals_per_gameFloat64The player's average steals per game played.
total_games_playedInt64The player's total games played over the games played.
total_games_wonInt64The player's total games won over the games played.
total_games_lostInt64The player's total games lost over the games played.
total_reboundsInt64The player's total rebounds over the games played.
total_rebounds_offensiveInt64The player's total offensive rebounds over the games played.
total_rebounds_defensiveInt64The player's total defensive rebounds over the games played.
total_blocksInt64The player's total blocked shots over the games played.
total_turnoversInt64The player's total turnovers over the games played.
total_foulsInt64The player's total personal fouls over the games played.
total_assistsInt64The player's total assists over the games played.
total_plus_minusInt64The player's total plus/minus (point differential while on court) over the games played.
total_efficiencyInt64The player's total efficiency (FIBA EFF) over the games played.
total_play_time_in_secondsInt64The player's total playing time in seconds over the games played.
total_pointsInt64The player's total points over the games played.
total_field_goals_madeInt64The player's total field goals made over the games played.
total_field_goals_attemptedInt64The player's total field goals attempted over the games played.
field_goals_percentageFloat64Field-goal percentage, 0-100 (over the competition; full float precision in averages).
total_two_points_madeInt64The player's total two-point field goals made over the games played.
total_two_points_attemptedInt64The player's total two-point field goals attempted over the games played.
two_points_percentageFloat64Two-point field-goal percentage, 0-100 (over the competition; full float precision in averages).
total_three_points_madeInt64The player's total three-point field goals made over the games played.
total_three_points_attemptedInt64The player's total three-point field goals attempted over the games played.
three_points_percentageFloat64Three-point field-goal percentage, 0-100 (over the competition; full float precision in averages).
total_free_throws_madeInt64The player's total free throws made over the games played.
total_free_throws_attemptedInt64The player's total free throws attempted over the games played.
free_throws_percentageFloat64Free-throw percentage, 0-100 (over the competition; full float precision in averages).
total_double_doublesInt64The player's total double-doubles over the games played.
total_triple_doublesInt64The player's total triple-doubles over the games played.
total_quadruple_doublesInt64The player's total quadruple-doubles over the games played.
total_quintuple_doublesInt64The player's total quintuple-doubles over the games played.
total_points_from_turnoversInt64The player's total points from turnovers over the games played.
total_fast_break_pointsInt64The player's total fast-break points over the games played.
total_second_chance_pointsInt64The player's total second-chance points over the games played.
total_points_in_the_paintInt64The player's total points in the paint over the games played.
total_stealsInt64The player's total steals over the games played.
rankInt64Rank (1 = first).

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_team_player_stats(team_id=279569)

fiba_gdap_team_staff​

Coaches of every team of a competition.

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

Valid URL: https://digital-api.fiba.basketball/hapi/getgdapteamstaffbycompetitionid?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
team_idInt64FIBA team id (Int64), one per team per competition; the team the coach is registered with.
team_nameStringTeam name the coach is registered with.
team_codeStringTeam code (GER, USA...) the coach is registered with.
person_idInt64FIBA person id, global across competitions and roles (player, coach, official): roster personId = play-by-play pId = game-page P_ = gdapPlayerId.
first_nameStringGiven name(s) as registered with FIBA.
last_nameStringLast name (officials: upper case).
genderStringSex of the person: M or F (Male/Female on getgdapcompetitionnominationsbyid).
functionStringRole: Head Coach, Coach, Assistant Coach.
is_head_coachInt641 for the head coach, 0 otherwise (an integer flag, not a boolean).
is_assistant_coachInt641 for an assistant coach, else null (integer flag).
is_accompanying_coachBooleanAccompanying-coach flag; always null in the samples, values unverified.
coach_display_orderInt64Display order; null when unset.
is_on_final_rosterBooleanTrue when on the final (12-player) roster.
nationalitiesStringNationalities (FIBA codes on player info; country objects on rosters and officials). Stored as a JSON string.
coach_license_organisation_nameStringFederation that issued the coaching licence.
coach_license_country_codeStringFIBA code of the licensing federation's country.
final_roster_member_status_codeStringRoster entry status; always null in the samples, values unverified.

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_team_staff(comp=208182)

fiba_gdap_team_stats​

A team's per-game averages and totals at a competition, with the bench totals.

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

Valid URL: https://digital-api.fiba.basketball/hapi/getgdapcompetitionteamstatisticsbyteamid?gdapTeamId=279569

API ParameterPythonPatternRequiredNullableDescription
gdapTeamIdteam_idYRequired. Competition team id: one per team per competition (teamA.teamId of a game row; Germany is 279569 at the 2023 World Cup and 281545 at Paris 2024). Not the federation 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
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.
competition_idInt64FIBA competition id (GDAP key space): one per edition (2023 World Cup = 208182, BCL 2024-25 = 208850); gdapCompetitionId.
points_per_gameFloat64The team's average points per game played.
rebounds_per_gameFloat64The bench players' average rebounds per game played.
rebounds_offensive_per_gameFloat64The bench players' average offensive rebounds per game played.
rebounds_defensive_per_gameFloat64The bench players' average defensive rebounds per game played.
assists_per_gameFloat64The team's average assists per game played.
blocks_per_gameFloat64The team's average blocked shots per game played.
turnovers_per_gameFloat64The bench players' average turnovers per game played.
fouls_per_gameFloat64The bench players' average personal fouls per game played.
plus_minus_per_gameFloat64The team's average plus/minus (point differential while on court) per game played.
efficiency_per_gameFloat64The team's average efficiency (FIBA EFF) per game played.
play_time_in_seconds_per_gameFloat64The team's average playing time in seconds per game played.
field_goals_made_per_gameFloat64The team's average field goals made per game played.
field_goals_attempted_per_gameFloat64The team's average field goals attempted per game played.
two_points_made_per_gameFloat64The team's average two-point field goals made per game played.
two_points_attempted_per_gameFloat64The team's average two-point field goals attempted per game played.
three_points_made_per_gameFloat64The team's average three-point field goals made per game played.
three_points_attempted_per_gameFloat64The team's average three-point field goals attempted per game played.
free_throws_made_per_gameFloat64The team's average free throws made per game played.
free_throws_attempted_per_gameFloat64The team's average free throws attempted per game played.
points_from_turnovers_per_gameFloat64The team's average points from turnovers per game played.
fast_break_points_per_gameFloat64The team's average fast-break points per game played.
second_chance_points_per_gameFloat64The team's average second-chance points per game played.
points_in_the_paint_per_gameFloat64The team's average points in the paint per game played.
from_bench_points_per_gameFloat64The team's average points by bench players per game played.
steals_per_gameFloat64The team's average steals per game played.
total_games_playedInt64The bench players' total games played over the games played.
total_games_wonInt64The team's total games won over the games played.
total_games_lostInt64The team's total games lost over the games played.
total_reboundsInt64The bench players' total rebounds over the games played.
total_rebounds_offensiveInt64The bench players' total offensive rebounds over the games played.
total_rebounds_defensiveInt64The bench players' total defensive rebounds over the games played.
total_blocksInt64The team's total blocked shots over the games played.
total_turnoversInt64The bench players' total turnovers over the games played.
total_foulsInt64The bench players' total personal fouls over the games played.
total_assistsInt64The team's total assists over the games played.
total_plus_minusInt64The team's total plus/minus (point differential while on court) over the games played.
total_efficiencyInt64The team's total efficiency (FIBA EFF) over the games played.
total_play_time_in_secondsInt64The team's total playing time in seconds over the games played.
total_pointsInt64The team's total points over the games played.
total_field_goals_madeInt64The team's total field goals made over the games played.
total_field_goals_attemptedInt64The team's total field goals attempted over the games played.
field_goals_percentageFloat64Field-goal percentage, 0-100 (over the competition; full float precision in averages).
total_two_points_madeInt64The team's total two-point field goals made over the games played.
total_two_points_attemptedInt64The team's total two-point field goals attempted over the games played.
two_points_percentageFloat64Two-point field-goal percentage, 0-100 (over the competition; full float precision in averages).
total_three_points_madeInt64The team's total three-point field goals made over the games played.
total_three_points_attemptedInt64The team's total three-point field goals attempted over the games played.
three_points_percentageFloat64Three-point field-goal percentage, 0-100 (over the competition; full float precision in averages).
total_free_throws_madeInt64The team's total free throws made over the games played.
total_free_throws_attemptedInt64The team's total free throws attempted over the games played.
free_throws_percentageFloat64Free-throw percentage, 0-100 (over the competition; full float precision in averages).
total_double_doublesInt64The team's total double-doubles over the games played.
total_triple_doublesInt64The team's total triple-doubles over the games played.
total_quadruple_doublesInt64The team's total quadruple-doubles over the games played.
total_quintuple_doublesInt64The team's total quintuple-doubles over the games played.
total_points_from_turnoversInt64The team's total points from turnovers over the games played.
total_fast_break_pointsInt64The team's total fast-break points over the games played.
total_second_chance_pointsInt64The team's total second-chance points over the games played.
total_points_in_the_paintInt64The team's total points in the paint over the games played.
total_from_bench_pointsInt64The team's total points by bench players over the games played.
total_stealsInt64The team's total steals over the games played.
biggest_leadInt64Team's biggest lead in any game of the competition, points.
bench_total_games_playedInt64The bench players' total games played over the games played.
bench_rebounds_per_gameFloat64The bench players' average rebounds per game played.
bench_rebounds_offensive_per_gameFloat64The bench players' average offensive rebounds per game played.
bench_rebounds_defensive_per_gameFloat64The bench players' average defensive rebounds per game played.
bench_turnovers_per_gameFloat64The bench players' average turnovers per game played.
bench_fouls_per_gameFloat64The bench players' average personal fouls per game played.
bench_total_reboundsInt64The bench players' total rebounds over the games played.
bench_total_rebounds_offensiveInt64The bench players' total offensive rebounds over the games played.
bench_total_rebounds_defensiveInt64The bench players' total defensive rebounds over the games played.
bench_total_turnoversInt64The bench players' total turnovers over the games played.
bench_total_foulsInt64The bench players' total personal fouls over the games played.

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_team_stats(team_id=279569)

fiba_gdap_teams​

Teams of a competition with their profile (final ranking, per-game averages).

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

Valid URL: https://digital-api.fiba.basketball/hapi/getgdapcompetitionteamsbycompetitionid?profile=true&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
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_codeStringTeam abbreviation (FIBA country code or club abbreviation).
short_nameStringShort team name: the country code for a national team, the club's short name for a club.
profile_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.
profile_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_.
profile_nameStringTeam name as registered for the competition.
profile_codeStringTeam code (FIBA country code or club abbreviation).
profile_country_nameStringCountry of the team, in English.
profile_country_codeStringCountry FIBA code.
profile_genderStringMen or Women: the gender of the team's competition.
profile_facebookStringFacebook handle or URL; always null in the samples, values unverified.
profile_twitterStringX/Twitter handle; always null in the samples, values unverified.
profile_instagramStringInstagram handle; always null in the samples, values unverified.
profile_websiteStringThe team's website address.
profile_you_tubeStringYouTube handle; always null in the samples, values unverified.
profile_final_rankingInt64Final rank in the competition.
profile_points_per_gameFloat64The team's average points per game played.
profile_rebounds_per_gameFloat64The team's average rebounds per game played.
profile_assists_per_gameFloat64The team's average assists per game played.
profile_rank_points_per_gameFloat64Rank in the competition by points per game (1 = highest).
profile_rank_rebounds_per_gameFloat64Rank in the competition by rebounds per game (1 = highest).
profile_rank_assists_per_gameFloat64Rank in the competition by assists per game (1 = highest).
profile_total_games_wonInt64The team's total games won over the games played.
profile_total_games_lostInt64The team's total games lost over the games played.
profile_social_networksStringSocial-network handles. Stored as a JSON string.
profile_competition_idInt64FIBA competition id (GDAP key space): one per edition (2023 World Cup = 208182, BCL 2024-25 = 208850); gdapCompetitionId.
status_codeStringTeam entry status: APPR approved.
status_nameStringTeam entry status label (Approved).
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_.

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_teams(comp=208182)