Get multiple puzzles at once
Get a batch of random Lichess puzzles in JSON format.
If authenticated, only returns puzzles that the user has never seen before.
DO NOT use this endpoint to enumerate puzzles for mass download. Instead, download the full public puzzle database.
Request
- Base URLhttps://lichess.org
- URLhttps://lichess.org/api/puzzle/batch/{angle}
- AuthOAuth 2Authorization code: https://lichess.org/oauthToken URL: https://lichess.org/api/token scopes: puzzle:read
Path parameters
The theme or opening to filter puzzles with. Recommended: mix.
Available themes are listed in the lichess source code and the lichess training themes hyperlinks.
Query parameters
The desired puzzle difficulty, relative to the authenticated user puzzle rating, or 1500 if anonymous.
How many puzzles to fetch. Just set it to 1 if you only need one puzzle.
The color to play. Better left empty to automatically get 50% white. Currently only works when nb=1.
Response
The requested puzzles.
Changes
No recorded changes to this operation across all 16 revisions of this API.