Skip to contents

One player's bio, teams by season and active seasons.

Usage

liiga_player(player_id)

Arguments

player_id

Player id (player_id in liiga_players_info or a lineup; equals fihaId), e.g. 21870028.

Value

A fastRhockey_data tibble (18 columns; zero rows when a valid payload has none).

col_nametypedescription
active_seasonscharacterSeasons (END year) the player appears in.
team_seasonscharacterMap team id -> seasons (END year) with that team.
team_listcharacterMap team name -> team as <num>:<slug>.
birth_locality_country_codecharacterPlayer's birth country, 3-letter code (e.g. FIN).
birth_locality_country_namecharacterPlayer's birth country name, in Finnish (e.g. Suomi).
birth_locality_namecharacterPlayer's birth place (town or city).
date_of_birthcharacterDate of birth, YYYY-MM-DD.
player_idintegerPlayer id; the same number in lineups, rosters, stat tables and the profile (fihaId).
first_namecharacterPlayer's first name.
last_namecharacterPlayer's last name.
handednesscharacterShoots LEFT or RIGHT.
heightintegerPlayer's height in centimetres.
is_suspendedlogicalTrue when the player is listed as suspended.
is_removedlogicalRemoved from the roster.
nationality_codecharacterPlayer's nationality, 3-letter country code (e.g. FIN).
nationality_namecharacterPlayer's nationality as a country name, in Finnish (e.g. Suomi).
weightintegerPlayer's weight in kilograms.
teamscharacterMap keyed by an id -> one of the player's team seasons (season, jersey, teamId, slug).

Details

Endpoint: GET https://liiga.fi/api/v2/players/info/{player_id}

Seasons are END years (2026 = 2025-26), the same key as sdv-py. Requests to liiga.fi are spaced at least one second apart. A request Liiga answers with nothing (an unknown game, a tournament not played that season, a shot map before 2016) raises fastRhockey_no_data; a failed fetch or an error-shaped answer raises fastRhockey_asset_fetch; a bad argument raises fastRhockey_bad_request.

Examples

# \donttest{
  try(liiga_player(player_id = 21870028))
#> ── Liiga player Information from liiga.fi ──────────── fastRhockey 1.0.0.9000 ──
#> ℹ Data updated: 2026-10-13 01:55:25 UTC
#> # A tibble: 1 × 18
#>   active_seasons                   team_seasons team_list birth_locality_count…¹
#>   <chr>                            <chr>        <chr>     <chr>                 
#> 1 [2027, 2026, 2025, 2024, 2023, … "{\"5578624… "{\"JYP\… FIN                   
#> # ℹ abbreviated name: ¹​birth_locality_country_code
#> # ℹ 14 more variables: birth_locality_country_name <chr>,
#> #   birth_locality_name <chr>, date_of_birth <chr>, player_id <int>,
#> #   first_name <chr>, last_name <chr>, handedness <chr>, height <int>,
#> #   is_suspended <lgl>, is_removed <lgl>, nationality_code <chr>,
#> #   nationality_name <chr>, weight <int>, teams <chr>
# }