Export ongoing game of a user
Changed onDownload the ongoing game, or the last game played, of a user. Available in either PGN or JSON format. Ongoing games are delayed by 3 moves, as to prevent cheat bots from using this API.
Request
- Base URLhttps://lichess.org
- URLhttps://lichess.org/api/user/{username}/current-game
- Authnone required
Path parameters
Query parameters
Include the PGN moves.
Include the full PGN within the JSON response, in a pgn field.
Include the PGN tags.
Include clock status when available. Either as PGN comments: 2. exd5 { [%clk 1:01:27] } e5 { [%clk 1:01:28] } Or in a clocks JSON field, as centisecond integers, depending on the response type.
Include analysis evaluations and comments, when available. Either as PGN comments: 12. Bxf6 { [%eval 0.23] } a3 { [%eval -1.09] } Or in an analysis JSON field, depending on the response type.
Include accuracy percent of each player, when available. Only available in JSON.
Include the opening name. Example: [Opening "King's Gambit Accepted, King's Knight Gambit"]
Plies which mark the beginning of the middlegame and endgame. Only available in JSON
Insert textual annotations in the PGN about the opening, analysis variations, mistakes, and game termination. Example: 5... g4? { (-0.98 → 0.60) Mistake. Best move was h6. } (5... h6 6. d4 Ne7 7. g3 d5 8. exd5 fxg3 9. hxg3 c6 10. dxc6)
Headers
Specify the desired response format. Use application/x-chess-pgn to get the games in PGN format. Use application/json to get the games in JSON format.
Response
The ongoing (or last) game of a user. This may be in either PGN or JSON format, depending on the Accept header of your request.
Changes
- info
added the optional property
//////////to the response with the status - info
added the optional property
//////////to the response with the status
- info
- breaking
added to the
/////response propertyoneOflist for the response status - breaking
added to the
/////response propertyoneOflist for the response status - breaking
the
/////response's property type changed fromobjectto no type for status - breaking
the
/////response's property type changed fromobjectto no type for status - breaking
removed the required property
//////from the response with the status - breaking
removed the required property
//////from the response with the status - breaking
removed the required property
//////from the response with the status - breaking
removed the required property
//////from the response with the status - warning
removed the optional property
//////from the response with the status - warning
removed the optional property
//////from the response with the status - warning
removed the optional property
//////from the response with the status - warning
removed the optional property
//////from the response with the status - warning
removed the optional property
//////from the response with the status - warning
removed the optional property
//////from the response with the status - warning
removed the optional property
//////from the response with the status - warning
removed the optional property
//////from the response with the status - warning
removed the optional property
//////from the response with the status - warning
removed the optional property
//////from the response with the status - warning
removed the optional property
//////from the response with the status - warning
removed the optional property
//////from the response with the status
- breaking