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.
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"
}
}
]
}