Lichess API guide

lichess.org

Look up public Lichess player ratings and game records, and browse leaderboards for blitz, rapid, classical, and other chess formats.

Actions and inputs

lichess user

Look up a player's public ratings and win, loss, and draw counts.

Inputs username

lichess top

View the highest-ranked players in a chess format.

Inputs format, optional result limit

Studies

Create

Create a private study in your Lichess account and add a chapter from a PGN.

Inputs Study name, chapter name, and PGN

Read

Open a study you can access and review its chapters and move annotations.

Inputs Study URL and optional chapter

Update

Add comments or variations to a chapter in a study you own.

Inputs Study ID, chapter ID, move, and annotation or variation

Delete

Delete a study you own without deleting any original games it references.

Inputs Study ID and confirmation