Skip to contents

One player's profile: names, club, jersey, position, height, weight and birthplace.

Endpoint: GET https://pleagueofficial.com/player/{player_page_id}

Usage

pleague_player(player_page_id)

Arguments

player_page_id

Required. The 8-character page id of /player/{id} (e.g. '1JbPozLB' = Lai Ting-En); player_page_id in pleague_stat_player, random_id in pleague_box_players from 2022-23 (unreliable before).

Value

A hoopR_data tibble: One player's profile: names, club, jersey, position, height, weight and birthplace. An empty valid answer is a zero-row tibble with these columns, in this order (sportsdataverse-py pleague_player):

col_nametypedescription
player_page_idcharacterThe 8-character page id of /player/{id} (e.g. '1JbPozLB'). The box random_id on 2022-23+ rows; NOT the box player_id.
player_idintegerP. LEAGUE+ player-team membership id (the box player_id), read from the page's trackPlayer() call, e.g. 40 = Lai Ting-En. NOT the 8-character page id.
name_zhcharacterPlayer name as printed (Traditional Chinese, or a transliteration for foreign players).
name_encharacterPlayer name in Latin letters.
team_zhcharacterCurrent team's short name in Traditional Chinese.
team_encharacterCurrent team's English name.
jerseycharacterShirt number as printed, a string ('0', '00' and '10' differ).
positioncharacterPosition letter: G guard, F forward, C centre.
nicknamecharacterNickname ((Chinese text)); null when blank.
tenurecharacterYears of service ((Chinese text)) as the page prints it, with a prime character ('0”).
height_cmdoubleHeight in centimetres ((Chinese text)).
weight_kgdoubleWeight in kilograms ((Chinese text)).
birthplace_zhcharacterBirthplace in Traditional Chinese ((Chinese text); a country for foreign players). The date of birth is dropped on purpose.
status_zhcharacterPlayer status ((Chinese text)): (Chinese text) = import (foreign player), (Chinese text) = local (Taiwanese) player.
educationcharacterEducation lines ((Chinese text)) as printed, joined with '; '.

Details

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

 pleague_player(player_page_id = "1JbPozLB")