Stream current game moves
Stream positions and moves of a game in real-time, using Server-Sent Events.Path Parameters
The game ID (8 characters)
Response
Returns a Server-Sent Event stream. Each event is a JSON object representing the game state.Event Types
Full game data sent at the beginning of the stream
Game ID
Chess variant information
Game speed (ultraBullet, bullet, blitz, rapid, classical, correspondence)
Whether the game is rated
Clock configuration with
initial (seconds) and increment (seconds)White player information with
id, name, and ratingBlack player information with
id, name, and ratingGame state update sent after each move
Current moves in UCI format, space separated
White’s remaining time in milliseconds
Black’s remaining time in milliseconds
Game status (started, mate, resign, stalemate, timeout, draw, outoftime, cheat, noStart, unknownFinish, variantEnd)
Winner color (white or black) when game is finished
Stream games by users
Stream games played between specific users in real-time.Request Body
Usernames separated by commas. The stream will emit games played between any of these users.
Query Parameters
Include games that are already in progress at the time of starting the stream
Response
Returns an ND-JSON stream where each line is a JSON game object. Games are emitted when they are created and when they finish.Stream games by IDs
Stream multiple games by their IDs with the ability to add more games dynamically.Path Parameters
Arbitrary stream ID that you define. Use the same ID to add more games later.
Request Body
Game IDs separated by commas
Response
Returns an ND-JSON stream of game states. Each game sends a full game object when added, then state updates after each move.Adding Games to Stream
Use the/add endpoint to dynamically add more games to an existing stream:
Stream games by OAuth origin
Stream games created with your OAuth app in real-time.Authentication
Requires OAuth token. The stream will emit games created by users authenticated with your OAuth application.Response
Returns an ND-JSON stream of game objects created via your OAuth application.Stream personal events
Stream events for the authenticated user.Authentication
Requires OAuth token with appropriate scopes.Response
Returns a Server-Sent Event stream. Events include:gameStart- A game was startedgameFinish- A game was finishedchallenge- A challenge was receivedchallengeCanceled- A challenge was canceledchallengeDeclined- A challenge was declined

