Skip to contents

A team's record, form and best players in one competition (the body echoes neither id).

Endpoint: GET https://api.kzs.si/api/v1/public/teams/{team_id}/general

Usage

kzs_team_general(team_id, competition_id)

Arguments

team_id

(required) Team id (team_id in kzs_teams): one club team in one season, e.g. 17551. Not the match-team id nor the club id.

competition_id

(required) Competition id (competition_id in kzs_competitions): one per competition per season, e.g. 579 (men's first league 2025/26).

Value

A hoopR_data tibble: A team's record, form and best players in one competition (the body echoes neither id). An empty valid answer raises hoopR_no_data; the columns are always these, in this order (sportsdataverse-py kzs_team_general):

col_nametypedescription
team_idintegerTeam id: one club team in one season (joins kzs_teams); not the match-team id and not the club id.
competition_idintegerCompetition id: one per competition per season (men's first league 2025/26 = 579, 2026/27 = 608).
wonintegerWins in the competition (all phases).
lostintegerLosses in the competition.
last_gamescharacterRecent results, 'W' or 'L' per game (order unverified).
best_points_player_idintegerPlayer id (KZS player registry). Joins to /players/{playerId}, box-score and play-by-play playerId.
best_points_player_identification_numberintegerPlayer's KZS registration (licence) number; a different key space from the player id, used by no captured route.
best_points_player_person_idintegerPerson id: the federation's person record behind a player, coach or official; a different key space from player, coach and official ids.
best_points_player_person_first_namecharacterThe player's given name.
best_points_player_person_last_namecharacterThe player's family name.
best_points_player_person_year_of_birthintegerYear of birth (players: public bio).
best_points_player_nationality_idintegerCountry id (FMS internal; use the ISO codes).
best_points_player_nationality_alpha2_codecharacterISO 3166-1 alpha-2 country code.
best_points_player_nationality_alpha3_codecharacterISO 3166-1 alpha-3 country code.
best_points_player_nationality_namecharacterCountry name in Slovenian (e.g. 'Zdruzene drzave' = United States); use engName or the ISO codes.
best_points_player_nationality_eng_namecharacterCountry name in English.
best_points_player_homegrownlogicalTrue when the player counts as homegrown (domaci igralec) for roster limits.
best_points_player_photo_uuidcharacterPlayer photo: image file id, served at https://api.kzs.si/public/images/{uuid}.
best_points_player_positionscharacterUnobserved: null, or an empty array, in every sample, so its type and meaning are unconfirmed.
best_average_pointsdoubleThat player's points per game.
best_rebounds_player_idintegerPlayer id (KZS player registry). Joins to /players/{playerId}, box-score and play-by-play playerId.
best_rebounds_player_identification_numberintegerPlayer's KZS registration (licence) number; a different key space from the player id, used by no captured route.
best_rebounds_player_person_idintegerPerson id: the federation's person record behind a player, coach or official; a different key space from player, coach and official ids.
best_rebounds_player_person_first_namecharacterThe player's given name.
best_rebounds_player_person_last_namecharacterThe player's family name.
best_rebounds_player_person_year_of_birthintegerYear of birth (players: public bio).
best_rebounds_player_nationality_idintegerCountry id (FMS internal; use the ISO codes).
best_rebounds_player_nationality_alpha2_codecharacterISO 3166-1 alpha-2 country code.
best_rebounds_player_nationality_alpha3_codecharacterISO 3166-1 alpha-3 country code.
best_rebounds_player_nationality_namecharacterCountry name in Slovenian (e.g. 'Zdruzene drzave' = United States); use engName or the ISO codes.
best_rebounds_player_nationality_eng_namecharacterCountry name in English.
best_rebounds_player_homegrownlogicalTrue when the player counts as homegrown (domaci igralec) for roster limits.
best_rebounds_player_photo_uuidcharacterPlayer photo: image file id, served at https://api.kzs.si/public/images/{uuid}.
best_rebounds_player_positionscharacterUnobserved: null, or an empty array, in every sample, so its type and meaning are unconfirmed.
best_average_reboundsdoubleThat player's rebounds per game.
best_assists_player_idintegerPlayer id (KZS player registry). Joins to /players/{playerId}, box-score and play-by-play playerId.
best_assists_player_identification_numberintegerPlayer's KZS registration (licence) number; a different key space from the player id, used by no captured route.
best_assists_player_person_idintegerPerson id: the federation's person record behind a player, coach or official; a different key space from player, coach and official ids.
best_assists_player_person_first_namecharacterThe player's given name.
best_assists_player_person_last_namecharacterThe player's family name.
best_assists_player_person_year_of_birthintegerYear of birth (players: public bio).
best_assists_player_nationality_idintegerCountry id (FMS internal; use the ISO codes).
best_assists_player_nationality_alpha2_codecharacterISO 3166-1 alpha-2 country code.
best_assists_player_nationality_alpha3_codecharacterISO 3166-1 alpha-3 country code.
best_assists_player_nationality_namecharacterCountry name in Slovenian (e.g. 'Zdruzene drzave' = United States); use engName or the ISO codes.
best_assists_player_nationality_eng_namecharacterCountry name in English.
best_assists_player_homegrownlogicalTrue when the player counts as homegrown (domaci igralec) for roster limits.
best_assists_player_photo_uuidcharacterPlayer photo: image file id, served at https://api.kzs.si/public/images/{uuid}.
best_assists_player_positionscharacterUnobserved: null, or an empty array, in every sample, so its type and meaning are unconfirmed.
best_average_assistsdoubleThat player's assists per game.

Details

Source, terms of use, request pacing, seasons, ids, coverage and error classes of this family: see the notes in kzs_seasons().

 kzs_team_general(competition_id = 579, team_id = 17551)