Skip to contents

Every player registered in one league-season (birth dates are not returned).

Endpoint: GET https://miniappapi.tbf.org.tr/webapi-service/api/Player/get-player-list

Usage

tbf_players(season, competition = "kbsl")

Arguments

season

Required. Season END year (2027 = the 2026-2027 season). TBF keys a league-season by internal season and activity ids; the runtime reads them from the league's season list by the END year of the label. A year the list lacks raises wehoop_no_data.

competition

TBF league: bsl (Basketbol Super Ligi), tbl (second tier) or kbsl (women's Super Ligi). The top flight was named TBL until 2007-08 and is listed under bsl. Default "kbsl" (the women's Super Ligi).

Value

A wehoop_data tibble. One row per registered player. Birth dates are not returned. Every column below is always present (a zero-row tibble keeps them and their types); an answer with nothing in it raises wehoop_no_data, as in sdv-py.

col_nametypedescription
seasonintegerSeason END year of the request.
competitioncharacterLeague prefix the row reports (bsl, tbl or kbsl); equals the request's competition.
person_idintegerTBF person id (kisiID; key space: TBF persons, stable across seasons and clubs).
player_namecharacterPlayer name as TBF prints it for that route (title case, Turkish letters kept).
nationalitycharacterNationality as a TURKISH country name (ABD = United States); see the nationality_code.
nationality_codecharacterNationality code (tabiyetKisa), ISO 3166-1 alpha-3 except GB for the United Kingdom.
club_idintegerStable club id (takimID / teamId of the team lists; key space: TBF clubs, the same across seasons and leagues: Tofas = 13). Not the team-season id (team_process_id).
team_namecharacterTeam name for that season, uppercase with Turkish letters.
jersey_numbercharacterShirt number as a string, so '0' and '00' stay distinct.
prefixcharacterLeague prefix of the row (bsl, tbl, kbsl); the runtime refuses any other than the request's.
season_idintegerInternal TBF season id (key space: TBF seasons, global across leagues: 174 = 2026-2027, 172 = 2025-2026; the odd ids are international UA- seasons). Never an sdv key: use season (END year).

Details

Official TBF app API, unofficial for SportsDataverse: the backend of the Turkish Basketball Federation's mobile app (miniappapi.tbf.org.tr), which serves BSL, TBL, KBSL and the other TBF leagues. It needs no key; robots.txt answers 404 on the host, and the runtime spaces requests at least 1 s apart. SportsDataverse has not ruled on TBF's terms, so payloads are not redistributed as release assets. The vendor's origin hosts (nikayazilim.com) serve the same data without Cloudflare but are deliberately not used, redirects are never followed, and www.tbf.org.tr's interactive Turnstile is neither used nor automated.

Coverage: season and competition are parameters (bsl Basketbol Super Ligi, back to 1966-67 in the league list; tbl second tier; kbsl women, both from 2015-16). Game wrappers serve FINISHED games only (an unfinished game raises wehoop_asset_fetch). Box scores exist from 2006-07 (no starters flagged that season); play-by-play and shots from 2025-26 only, an earlier finished game raises wehoop_no_data. Every game carries a Genius LiveStats id (genius_id, joins the genius family) from 2018-19 on some seasons and on every game of 2025-26 and later. Birth dates, contact details, photos and logos are dropped. Names and category labels are Turkish; the column descriptions give the English gloss.

Errors: wehoop_no_data when TBF has nothing for the request (HTTP 404, an unknown game or player, a season the league list lacks, an empty list, a finished game before 2025-26 asked for play-by-play or shots); wehoop_bad_request for an invalid argument or HTTP 400 / 422; wehoop_asset_fetch when the fetch failed or the answer is not the one asked for (an unfinished game, a body for another game, season, league or team, an error envelope, a redirect, a partial page or a changed capped list). All inherit wehoop_error. Timestamps are Turkey local time (Europe/Istanbul).

Examples

# \donttest{
  try(tbf_players(competition = "bsl", season = 2027))
#> ── TBF Players ───────────────────────────────────────────────── wehoop 3.1.0 ──
#> ℹ Data updated: 2026-10-22 03:25:44 UTC
#> # A tibble: 257 × 11
#>    season competition person_id player_name nationality nationality_code club_id
#>     <int> <chr>           <int> <chr>       <chr>       <chr>              <int>
#>  1   2027 bsl            443749 Ahmet Aldi… TÜRKİYE     TUR               246239
#>  2   2027 bsl            159631 Akın Kande… TÜRKİYE     TUR               234077
#>  3   2027 bsl            512899 Akwasi Yeb… BÜYÜK BRİT… GB                 47153
#>  4   2027 bsl            776935 Aleksa Avr… SIRBİSTAN   SRB                55636
#>  5   2027 bsl            502492 Aleksej Ni… SLOVENYA    SVN                    4
#>  6   2027 bsl            779278 Alen Smail… SIRBİSTAN   SRB                    4
#>  7   2027 bsl            441857 Alex Perez  ABD         USA               234077
#>  8   2027 bsl            778182 Alex Reese  ABD         USA               246463
#>  9   2027 bsl            393217 Ali Yiğit … TÜRKİYE     TUR                    3
#> 10   2027 bsl            222914 Alican Gün… TÜRKİYE     TUR                47153
#> # ℹ 247 more rows
#> # ℹ 4 more variables: team_name <chr>, jersey_number <chr>, prefix <chr>,
#> #   season_id <int>
# }