Skip to contents

Player profile: names, year of birth, nationality and positions.

Endpoint: GET https://api.kzs.si/api/v1/public/players/{player_id}

Usage

kzs_player(player_id)

Arguments

player_id

(required) Player registry id (player_id in a box score or roster), e.g. 106285. Not the person id.

Value

A hoopR_data tibble: Player profile: names, year of birth, nationality and positions. An empty valid answer raises hoopR_no_data; the columns are always these, in this order (sportsdataverse-py kzs_player):

col_nametypedescription
player_idintegerPerson id: the federation's person record behind a player, coach or official; a different key space from player, coach and official ids.
identification_numberintegerPlayer's KZS registration (licence) number; a different key space from the player id, used by no captured route.
person_idintegerPerson id: the federation's person record behind a player, coach or official; a different key space from player, coach and official ids.
first_namecharacterThe player's given name.
last_namecharacterThe player's family name.
year_of_birthintegerYear of birth (players: public bio).
nationality_idintegerCountry id (FMS internal; use the ISO codes).
nationality_alpha2_codecharacterISO 3166-1 alpha-2 country code.
nationality_alpha3_codecharacterISO 3166-1 alpha-3 country code.
nationality_namecharacterCountry name in Slovenian (e.g. 'Zdruzene drzave' = United States); use engName or the ISO codes.
nationality_eng_namecharacterCountry name in English.
homegrownlogicalTrue when the player counts as homegrown (domaci igralec) for roster limits.
photo_uuidcharacterPlayer photo: image file id, served at https://api.kzs.si/public/images/{uuid}.
positionscharacterUnobserved: null, or an empty array, in every sample, so its type and meaning are unconfirmed.

Details

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

 kzs_player(player_id = 106285)