Skip to contents

Retrieves opening statistics from historical FIDE master-level games (2200+ FIDE).

Usage

lic_explorer_masters(
  fen = NULL,
  play = NULL,
  since = NULL,
  until = NULL,
  token = lic_token()
)

lic_masters_explorer(
  fen = NULL,
  play = NULL,
  since = NULL,
  until = NULL,
  token = lic_token()
)

Arguments

fen

FEN position string.

play

Move sequence in UCI or SAN.

since

Year from which to filter games (e.g. 1952).

until

Year until which to filter games.

token

API access token. By default, retrieved via lic_token().

Value

A list containing aggregate stats (white, draws, black), candidate moves tibble, and top topGames.

Details

Lichess API Endpoint: GET https://explorer.lichess.ovh/masters

Official Documentation: https://lichess.org/api#tag/Opening-Explorer/operation/openingExplorerMaster

Examples

masters <- lic_explorer_masters(play = "e4,c5")
masters$moves
#> # A tibble: 1 × 6
#>   uci   san   white draws black averageRating
#>   <chr> <chr> <int> <int> <int>         <int>
#> 1 e2e4  e4     1000   300   700          2200