Opening explorer statistics
opening_statsRetrieve Lichess or Masters opening statistics for a chess position: opening name, next-move frequencies, and White/draw/Black results from a move list or FEN.
Instructions
Opening explorer statistics for a position from the Lichess or Masters database: opening name, how often each next move was played, and White/draw/Black results. Takes a move list or FEN. Needs LICHESS_TOKEN on the server (Lichess now requires sign-in for the explorer).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fen | No | Start position in FEN. Omit for the normal starting position. | |
| moves | No | Moves from the start (or from fen): SAN like "1. e4 c5 2. Nf3" or UCI like "e2e4 c7c5". Gives the opening name too. | |
| speeds | No | lichess database only: limit to these speeds. | |
| ratings | No | lichess database only: rating buckets, e.g. [1600, 1800] for 1600-1999. | |
| database | No | lichess = all rated Lichess games; masters = over-the-board games between 2200+ FIDE players. | lichess |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fen | Yes | ||
| message | Yes | ||
| opening | No | ||
| database | Yes | ||
| draws_pct | Yes | Percent of games. | |
| moves_san | Yes | ||
| next_moves | Yes | ||
| total_games | Yes | ||
| black_wins_pct | Yes | Percent of games. | |
| white_wins_pct | Yes | Percent of games. |