Retrieves in-depth stats for a specific game type (e.g. bullet, blitz, rapid), including win/loss counts, streaks, highest/lowest ratings, and average opponent rating.
Usage
lic_user_perf_stats(username, perf = "bullet", token = lic_token())Arguments
- username
Lichess username.
- perf
Performance type (e.g.
"bullet","blitz","rapid","classical"). Default is"bullet".- token
API access token. By default, retrieved via
lic_token().
Details
Lichess API Endpoint: GET /api/user/{username}/perf/{perf}
Official Documentation: https://lichess.org/api#tag/Users/operation/userPerf
Examples
stats <- lic_user_perf_stats("h8gi", perf = "bullet")
stats$stat$count
#> $all
#> [1] 49291
#>
#> $rated
#> [1] 49289
#>
#> $win
#> [1] 24034
#>
#> $loss
#> [1] 23286
#>
#> $draw
#> [1] 1971
#>
#> $tour
#> [1] 230
#>
#> $berserk
#> [1] 0
#>
#> $opAvg
#> [1] 2083.29
#>
#> $seconds
#> [1] 5540624
#>
#> $disconnects
#> [1] 12
#>