Skip to main content

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

fiba_gdap_player_game_stats​

A player's game log (full box lines) at a competition.

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

Valid URL: https://digital-api.fiba.basketball/hapi/getgdapplayergamestatisticsbyplayerid?gdapPlayerId=211501&gdapCompetitionId=208182

API ParameterPythonPatternRequiredNullableDescription
gdapPlayerIdplayer_idYRequired. FIBA person id (global): personId of a roster row, pId in play-by-play, P_ in the game-page box
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
player_idintegerFIBA person id (Int64), global; the player_id argument.
competition_idintegerFIBA competition id (Int64) the game log belongs to; the comp argument.
game_idintegerFIBA game id, global across competitions (GDAP key space): gdapGameId, the of a game-page URL.
game_dayintegerGame day number within the round.
round_idintegerRound id (GDAP key space, unique across competitions); the first segment of gameName.
round_codecharacterRound code (GP group phase, QF, SF, F final, RS regular season, CL17-32 classification...).
round_namecharacterRound label (Group Phase, Quarter-Finals, Final...).
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_namecharacterPlayer's team name.
team_codecharacterPlayer's team code.
team_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_.
versus_team_idintegerOpponent's competition team id (see teamId).
versus_team_namecharacterOpponent's name.
versus_team_codecharacterOpponent's code.
versus_team_organisation_idintegerOpponent's organisation id (see organisationId).
play_duration_in_secondsintegerPlaying time in seconds in the game.
pointsintegerPoints in the game.
field_goals_madeintegerField goals made in the game.
field_goals_attemptedintegerField goals attempted in the game.
field_goals_percentagenumericField-goal percentage, 0-100 (in the game; full float precision in averages).
two_points_madeintegerTwo-point field goals made in the game.
two_points_attemptedintegerTwo-point field goals attempted in the game.
two_points_percentagenumericTwo-point field-goal percentage, 0-100 (in the game; full float precision in averages).
three_points_madeintegerThree-point field goals made in the game.
three_points_attemptedintegerThree-point field goals attempted in the game.
three_points_percentagenumericThree-point field-goal percentage, 0-100 (in the game; full float precision in averages).
free_throws_madeintegerFree throws made in the game.
free_throws_attemptedintegerFree throws attempted in the game.
free_throws_percentagenumericFree-throw percentage, 0-100 (in the game; full float precision in averages).
offensive_reboundsintegerOffensive rebounds in the game.
defensive_reboundsintegerDefensive rebounds in the game.
reboundsintegerRebounds in the game.
assistsintegerAssists in the game.
personal_foulsintegerPersonal fouls in the game.
turnoversintegerTurnovers in the game.
stealsintegerSteals in the game.
blocked_shotsintegerBlocked shots in the game.
plus_minusintegerPlus/minus (point differential while on court) in the game.
efficiencyintegerEfficiency (FIBA EFF) in the game.

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

Example​

fiba_gdap_player_game_stats(comp=208182, player_id=211501)

Last validated n/a.

fiba_gdap_player_info​

A player's bio and per-game averages with ranks at a competition.

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

Valid URL: https://digital-api.fiba.basketball/hapi/getgdapplayerinfobycompetitionid?gdapPlayerId=211501&gdapCompetitionId=208182

API ParameterPythonPatternRequiredNullableDescription
gdapPlayerIdplayer_idYRequired. FIBA person id (global): personId of a roster row, pId in play-by-play, P_ in the game-page box
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
player_idintegerFIBA person id, global across competitions and roles (player, coach, official): roster personId = play-by-play pId = game-page P_ = gdapPlayerId.
competition_idintegerFIBA competition id (GDAP key space): one per edition (2023 World Cup = 208182, BCL 2024-25 = 208850); gdapCompetitionId.
competition_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.
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_.
first_namecharacterGiven name(s) as registered with FIBA.
last_namecharacterLast name (officials: upper case).
height_cmintegerHeight in centimetres.
height_ft_incharacterHeight, feet and inches string.
club_namecharacterClub at the time of the competition.
club_codecharacterClub abbreviation; always null in the samples, values unverified.
is_player_free_agentlogicalTrue when the player had no club.
points_per_gamenumericThe player's average points per game played.
rank_points_per_gamenumericRank in the competition by points per game (1 = highest).
rebounds_per_gamenumericThe player's average rebounds per game played.
rank_rebounds_per_gamenumericRank in the competition by rebounds per game (1 = highest).
assists_per_gamenumericThe player's average assists per game played.
rank_assists_per_gamenumericRank in the competition by assists per game (1 = highest).
points_per_game_per_competition_categorynumericAverage points per game across the competition category, the comparison baseline (unverified).
rebounds_per_game_per_competition_categorynumericAverage rebounds per game across the competition category, the comparison baseline (unverified).
assists_per_game_per_competition_categorynumericAverage assists per game across the competition category, the comparison baseline (unverified).
birth_datecharacterDate of birth, YYYY-MM-DD.
nationalitiescharacterNationalities (FIBA codes on player info; country objects on rosters and officials). Stored as a JSON string.
social_media_websitecharacterWebsite URL; always null in the samples, values unverified.
social_media_twittercharacterX/Twitter handle; always null in the samples, values unverified.
social_media_facebookcharacterFacebook handle or URL; always null in the samples, values unverified.
social_media_instagramcharacterInstagram handle; always null in the samples, values unverified.
social_media_youtubecharacterYouTube handle; always null in the samples, values unverified.
social_networkscharacterSocial-network handles. Stored as a JSON string.

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

Example​

fiba_gdap_player_info(comp=208182, player_id=211501)

Last validated n/a.

fiba_gdap_player_stats​

A player's per-game averages, totals and highs at a competition.

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

Valid URL: https://digital-api.fiba.basketball/hapi/getgdapplayercompetitionstatisticsbyplayerid?gdapPlayerId=211501&gdapCompetitionId=208182

API ParameterPythonPatternRequiredNullableDescription
gdapPlayerIdplayer_idYRequired. FIBA person id (global): personId of a roster row, pId in play-by-play, P_ in the game-page box
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
player_idintegerFIBA person id, global across competitions and roles (player, coach, official): roster personId = play-by-play pId = game-page P_ = gdapPlayerId.
competition_idintegerFIBA competition id (GDAP key space): one per edition (2023 World Cup = 208182, BCL 2024-25 = 208850); gdapCompetitionId.
points_per_gamenumericThe player's average points per game played.
rebounds_per_gamenumericThe player's average rebounds per game played.
rebounds_offensive_per_gamenumericThe player's average offensive rebounds per game played.
rebounds_defensive_per_gamenumericThe player's average defensive rebounds per game played.
assists_per_gamenumericThe player's average assists per game played.
blocks_per_gamenumericThe player's average blocked shots per game played.
turnovers_per_gamenumericThe player's average turnovers per game played.
fouls_per_gamenumericThe player's average personal fouls per game played.
plus_minus_per_gamenumericThe player's average plus/minus (point differential while on court) per game played.
efficiency_per_gamenumericThe player's average efficiency (FIBA EFF) per game played.
play_time_in_seconds_per_gamenumericThe player's average playing time in seconds per game played.
field_goals_made_per_gamenumericThe player's average field goals made per game played.
field_goals_attempted_per_gamenumericThe player's average field goals attempted per game played.
two_points_made_per_gamenumericThe player's average two-point field goals made per game played.
two_points_attempted_per_gamenumericThe player's average two-point field goals attempted per game played.
three_points_made_per_gamenumericThe player's average three-point field goals made per game played.
three_points_attempted_per_gamenumericThe player's average three-point field goals attempted per game played.
free_throws_made_per_gamenumericThe player's average free throws made per game played.
free_throws_attempted_per_gamenumericThe player's average free throws attempted per game played.
points_from_turnovers_per_gamenumericThe player's average points from turnovers per game played.
fast_break_points_per_gamenumericThe player's average fast-break points per game played.
second_chance_points_per_gamenumericThe player's average second-chance points per game played.
points_in_the_paint_per_gamenumericThe player's average points in the paint per game played.
steals_per_gamenumericThe player's average steals per game played.
total_games_playedintegerThe player's total games played over the games played.
total_games_wonintegerThe player's total games won over the games played.
total_games_lostintegerThe player's total games lost over the games played.
total_reboundsintegerThe player's total rebounds over the games played.
total_rebounds_offensiveintegerThe player's total offensive rebounds over the games played.
total_rebounds_defensiveintegerThe player's total defensive rebounds over the games played.
total_blocksintegerThe player's total blocked shots over the games played.
total_turnoversintegerThe player's total turnovers over the games played.
total_foulsintegerThe player's total personal fouls over the games played.
total_assistsintegerThe player's total assists over the games played.
total_plus_minusintegerThe player's total plus/minus (point differential while on court) over the games played.
total_efficiencyintegerThe player's total efficiency (FIBA EFF) over the games played.
total_play_time_in_secondsintegerThe player's total playing time in seconds over the games played.
total_pointsintegerThe player's total points over the games played.
total_field_goals_madeintegerThe player's total field goals made over the games played.
total_field_goals_attemptedintegerThe player's total field goals attempted over the games played.
field_goals_percentagenumericField-goal percentage, 0-100 (over the competition; full float precision in averages).
total_two_points_madeintegerThe player's total two-point field goals made over the games played.
total_two_points_attemptedintegerThe player's total two-point field goals attempted over the games played.
two_points_percentagenumericTwo-point field-goal percentage, 0-100 (over the competition; full float precision in averages).
total_three_points_madeintegerThe player's total three-point field goals made over the games played.
total_three_points_attemptedintegerThe player's total three-point field goals attempted over the games played.
three_points_percentagenumericThree-point field-goal percentage, 0-100 (over the competition; full float precision in averages).
total_free_throws_madeintegerThe player's total free throws made over the games played.
total_free_throws_attemptedintegerThe player's total free throws attempted over the games played.
free_throws_percentagenumericFree-throw percentage, 0-100 (over the competition; full float precision in averages).
total_double_doublesintegerThe player's total double-doubles over the games played.
total_triple_doublesintegerThe player's total triple-doubles over the games played.
total_quadruple_doublesintegerThe player's total quadruple-doubles over the games played.
total_quintuple_doublesintegerThe player's total quintuple-doubles over the games played.
total_points_from_turnoversintegerThe player's total points from turnovers over the games played.
total_fast_break_pointsintegerThe player's total fast-break points over the games played.
total_second_chance_pointsintegerThe player's total second-chance points over the games played.
total_points_in_the_paintintegerThe player's total points in the paint over the games played.
total_stealsintegerThe player's total steals over the games played.
rank_points_per_gamenumericRank in the competition by points per game (1 = highest).
rank_rebounds_per_gamenumericRank in the competition by rebounds per game (1 = highest).
rank_assists_per_gamenumericRank in the competition by assists per game (1 = highest).

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

Example​

fiba_gdap_player_stats(comp=208182, player_id=211501)

Last validated n/a.