Bot
Stream Bot game state
Changed onStream the state of a game being played with the Bot API, as ndjson. Use this endpoint to get updates about the game in real-time, with a single request. Each line is a JSON object containing a type field. Possible values are:
- gameFull Full game data. All values are immutable, except for the state field.
- gameState Current state of the game. Immutable values not included.
- chatLine Chat message sent by a user (or the bot itself) in the room "player" or "spectator".
- opponentGone Whether the opponent has left the game, and how long before you can claim a win or draw. The first line is always of type gameFull.
get/api/bot/game/stream/{gameId}
Request
- Base URLhttps://lichess.org
- URLhttps://lichess.org/api/bot/game/stream/{gameId}
- AuthOAuth 2Authorization code: https://lichess.org/oauthToken URL: https://lichess.org/api/token scopes: bot:play
Path parameters
gameIdstring required
Example:5IrD6Gzz
Response
The stream of the bot game.
Changes
- info
added the optional property
/////to the response with the status - info
added the optional property
/////to the response with the status
- info