v3

OpenAPI 3.1.0AGPL-3.0-or-later2026-07-311871891.1 MB
Games

Get my ongoing games

Get the ongoing games of the current user. Real-time and correspondence games are included. The most urgent games are listed first.

get/api/account/playing

Query parameters

nbinteger

Max number of games to fetch

Response

The ongoing games of the logged in user.

nbMyTurninteger required

Number of games where it is my turn to play

Example response

{
  "nbMyTurn": 1,
  "nowPlaying": [
    {
      "gameId": "rCRw1AuO",
      "fullId": "rCRw1AuOvonq",
      "color": "black",
      "fen": "r1bqkbnr/pppp2pp/2n1pp2/8/8/3PP3/PPPB1PPP/RN1QKBNR w KQkq - 2 4",
      "hasMoved": true,
      "isMyTurn": false,
      "lastMove": "b8c6",
      "opponent": {
        "id": "philippe",
        "rating": 1790,
        "username": "Philippe"
      },
      "perf": "correspondence",
      "rated": false,
      "secondsLeft": 1209600,
      "source": "friend",
      "speed": "correspondence",
      "variant": {
        "key": "standard",
        "name": "Standard"
      }
    }
  ]
}