Skip to contents

Skater scoring leaderboard of one competition season.

Wraps GET https://s3.eu-west-1.amazonaws.com/eihl.hokejovyzapis.cz/league-top-scorers/{season}/{league_id}.json of the EIHL eSports bucket. Example: https://s3.eu-west-1.amazonaws.com/eihl.hokejovyzapis.cz/league-top-scorers/2026/3.json. Seasons are END years (2027 = 2026/27); every request waits at least one second after the last one to the same host.

Usage

eihl_top_scorers(season, league_id = 3L, return_parsed = TRUE)

Arguments

season

Season by its END year (2027 = 2026/27). The bucket keys seasons by their START year; the wrapper requests season - 1.

league_id

Competition id. 3 = Elite League, 4 = Challenge Cup, 5 = playoffs.

return_parsed

Parse the payload into a tibble (default TRUE); FALSE returns the raw decoded JSON body (a nested list).

Value

A tibble::tibble() with one row per row of the file (zero rows, carrying the documented columns, for an empty frame); the raw JSON list when return_parsed = FALSE. Columns:

col_nametypedescription
player_idintegerPlayer id (player key space, per bucket, stable across games and seasons); joins to playerId in rosters, events, boxscores and leaderboards.
namecharacterPlayer first name.
surnamecharacterPlayer last name.
jerseyintegerJersey number.
birthdatecharacterBirth date YYYY-MM-DD.
team_idintegerTeam id (team key space, per bucket, stable across seasons); joins to league-matches home.id / guest.id and the {team_id} path param.
team_namecharacterTeam display name.
team_shortcutcharacterThree-letter team code.
matchesintegerGames played (two names for the same count).
goalsintegerGoals the player scored in the league-season.
assistsintegerAssists credited to the player in the league-season.
pointsintegerPoints, goals + assists.
shotsintegerShots on goal.
positivesintegerPlus events of the player: on ice for a goal for (league-season).
negativesintegerMinus events of the player: on ice for a goal against (league-season).
positives_negativesintegerPlus/minus, positives - negatives.

Errors

Signalled as classed conditions: fastRhockey_no_data when the bucket has no such key (S3 404 NoSuchKey: unknown season, competition, match or team) or the file holds no rows (an unplayed game, an empty shot shell); fastRhockey_asset_fetch for any other non-2xx answer (403 AccessDenied), a connection failure after retries, an empty or unreadable 200 body, an error envelope, a body of the wrong shape, or a body for another season or game; fastRhockey_bad_request for an HTTP 400/422 or an invalid argument. All three also inherit fastRhockey_error. Wrappers raise; they never warn and return an empty frame.

See also

EIHL (the league site whose widgets read this public eSports bucket)

Other EIHL eSports functions: eihl_game_info(), eihl_goalie_box(), eihl_pbp(), eihl_player_box(), eihl_schedule(), eihl_shots(), eihl_standings(), eihl_team_player_stats()

Examples

# \donttest{
  try(eihl_top_scorers(season = 2027, league_id = 3))
#> ── EIHL top_scorers from the eSports hokejovyzapis bucket ──────────────────────
#> ℹ Data updated: 2026-10-13 01:51:53 UTC
#> # A tibble: 245 × 16
#>    player_id name     surname   jersey birthdate team_id team_name team_shortcut
#>        <int> <chr>    <chr>      <int> <chr>       <int> <chr>     <chr>        
#>  1      4929 Karl     Boudrias      71 2000-04-…      97 Guildfor… GUI          
#>  2      4757 Mitchell Balmas        92 1998-03-…     100 Sheffiel… SHE          
#>  3      4734 Victor   Bjorkung      10 1993-04-…      95 Fife Fly… FIF          
#>  4      4843 Josh     MacDonald     92 1994-03-…      92 Cardiff … CAR          
#>  5      5096 Joseph   Pierce        18 2002-10-…      95 Fife Fly… FIF          
#>  6      5102 Xander   Lamppa         9 2000-04-…      95 Fife Fly… FIF          
#>  7      4449 Brandon  Whistle       74 1997-12-…     100 Sheffiel… SHE          
#>  8      4584 Brett    Neumann       68 1999-02-…      97 Guildfor… GUI          
#>  9      5004 William  Boysen        40 1997-05-…      93 Coventry… COV          
#> 10      5171 Olivier  Archamba…     93 1993-02-…     100 Sheffiel… SHE          
#> # ℹ 235 more rows
#> # ℹ 8 more variables: matches <int>, goals <int>, assists <int>, points <int>,
#> #   shots <int>, positives <int>, negatives <int>, positives_negatives <int>
# }