The shared representation of a chess puzzle returned by the puzzle queries.
Properties
fen
string
Required
the FEN string of the position before the opponent makes their move.
gameId
string
Optional
the unique identifier of the specific game and move the puzzle was extracted from. The game would be accessible at https://lichess.org/{GameId}
id
string
Required
the id of the puzzle.
moves
string
Required
the solution to the puzzle. All player moves of the solution are "only moves", i.e. playing any other move would considerably worsen the player position. An exception is made for mates in one: there can be several. Any move that checkmates should win the puzzle.
nbPlays
integer
Optional
the number of times a puzzle was played.
openingTags
array
of string
Optional
a list of openings. This is only set for puzzles starting before move 20.
popularity
integer
Optional
a number between 100 (best) and -100 (worst), calculated as 100 * (upvotes - downvotes)/(upvotes + downvotes). Votes are weighted by various factors such as whether the puzzle was solved successfully or the solver's puzzle rating in comparison to the puzzle's.
minimum: -100maximum: 100rating
integer
Required
the Glicko-2 rating of the puzzle.
ratingDeviation
integer
Required
the Glicko-2 rating deviation of the puzzle.
themes
array
of string
Optional
a list of puzzle themes.
View raw schema
{
"type": "object",
"required": [
"id",
"fen",
"moves",
"rating",
"ratingDeviation"
],
"properties": {
"id": {
"type": "string",
"description": "the id of the puzzle."
},
"fen": {
"type": "string",
"description": "the FEN string of the position before the opponent makes their move."
},
"moves": {
"type": "string",
"description": "the solution to the puzzle. All player moves of the solution are \"only moves\", i.e. playing any other move would considerably worsen the player position. An exception is made for mates in one: there can be several. Any move that checkmates should win the puzzle."
},
"gameId": {
"type": "string",
"description": "the unique identifier of the specific game and move the puzzle was extracted from. The game would be accessible at https://lichess.org/{GameId}"
},
"rating": {
"type": "integer",
"description": "the Glicko-2 rating of the puzzle."
},
"themes": {
"type": "array",
"items": {
"type": "string"
},
"description": "a list of puzzle themes."
},
"nbPlays": {
"type": "integer",
"description": "the number of times a puzzle was played."
},
"popularity": {
"type": "integer",
"maximum": 100,
"minimum": -100,
"description": "a number between 100 (best) and -100 (worst), calculated as 100 * (upvotes - downvotes)/(upvotes + downvotes). Votes are weighted by various factors such as whether the puzzle was solved successfully or the solver's puzzle rating in comparison to the puzzle's."
},
"openingTags": {
"type": "array",
"items": {
"type": "string"
},
"description": "a list of openings. This is only set for puzzles starting before move 20."
},
"ratingDeviation": {
"type": "integer",
"description": "the Glicko-2 rating deviation of the puzzle."
}
},
"description": "The shared representation of a chess puzzle returned by the puzzle queries."
}