The weeks (rounds) of one league-season, playoff rounds included.
Endpoint: GET https://miniappapi.tbf.org.tr/webapi-service/api/League/get-league-weeks
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 week in play order; week is the value the schedule and standings take.
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_name | type | description |
| activity_id | integer | Activity id of the request's league-season (key space: TBF league-seasons). |
| season | integer | Season END year of the request (2027 = 2026-2027). |
| competition | character | TBF league of the request: bsl, tbl or kbsl. |
| week | character | Week number as a string; the value the week argument of tbf_standings and tbf_schedule takes. |
| phase | integer | Phase code (devre = half / phase): 1 = first half of the regular season, 2 = second half, 3 = playoff quarter-final, 4 = semi-final, 5 = final. |
| phase_name | character | Phase name in Turkish on playoff weeks (Playoff Final = final); null on regular-season weeks. |
| label | character | Week label: 'Hafta N' (week N) or the playoff round name. |
| is_current | logical | True on the current (or last played) week; exactly one row. |
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).
See also
Other TBF Functions:
tbf_daily_matches(),
tbf_game_header(),
tbf_game_leaders(),
tbf_game_players(),
tbf_highlights(),
tbf_leaders_assists(),
tbf_leaders_blocks(),
tbf_leaders_efficiency(),
tbf_leaders_minutes(),
tbf_leaders_points(),
tbf_leaders_rebounds(),
tbf_leaders_steals(),
tbf_leaders_threes(),
tbf_leaders_turnovers(),
tbf_league_seasons(),
tbf_leagues(),
tbf_pbp(),
tbf_period_scores(),
tbf_player_box(),
tbf_player_career(),
tbf_players(),
tbf_schedule(),
tbf_seasons(),
tbf_shots(),
tbf_standings(),
tbf_team_box(),
tbf_team_games(),
tbf_team_player_stats(),
tbf_team_roster(),
tbf_team_staff(),
tbf_teams()
Examples
# \donttest{
try(tbf_weeks(competition = "bsl", season = 2027))
#> ── TBF Weeks ─────────────────────────────────────────────────── wehoop 3.1.0 ──
#> ℹ Data updated: 2026-10-22 03:25:52 UTC
#> # A tibble: 30 × 8
#> activity_id season competition week phase phase_name label is_current
#> <int> <int> <chr> <chr> <int> <chr> <chr> <lgl>
#> 1 22214 2027 bsl 1 1 NA Hafta 1 FALSE
#> 2 22214 2027 bsl 2 1 NA Hafta 2 FALSE
#> 3 22214 2027 bsl 3 1 NA Hafta 3 FALSE
#> 4 22214 2027 bsl 4 1 NA Hafta 4 TRUE
#> 5 22214 2027 bsl 5 1 NA Hafta 5 FALSE
#> 6 22214 2027 bsl 6 1 NA Hafta 6 FALSE
#> 7 22214 2027 bsl 7 1 NA Hafta 7 FALSE
#> 8 22214 2027 bsl 8 1 NA Hafta 8 FALSE
#> 9 22214 2027 bsl 9 1 NA Hafta 9 FALSE
#> 10 22214 2027 bsl 10 1 NA Hafta 10 FALSE
#> # ℹ 20 more rows
# }
