Get a game snapshot (public)
const url = 'https://play-api.jc.id.lv/games/example';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://play-api.jc.id.lv/games/exampleThe polling read of a single game — the same state object the game stream sends on connect. Also where a withheld dice reveal (mirror-pair games) becomes available once both games of the pair conclude.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Game id.
Responses
Section titled “Responses”The current public game state.
The single-game snapshot — identical to the game stream’s Snapshot.state.
object
DFEN — the 7th field is the pending dice pool as piece letters.
Single-key status, e.g. {“Active”:{}} or {“Ended”:{}}.
object
A single-key time-control wrapper.
object
object
A single-key time-control wrapper.
object
object
A single-key time-control wrapper.
object
object
A single-key time-control wrapper.
object
object
Remaining milliseconds per side as of the carrying event; null on Unlimited games.
object
SHA-256 of the server seed (the dice commitment).
Revealed server seed after the game ends (null until then; withheld for a pending mirror pair).
The two revealed client seeds
A prefix tree of UCI micro-moves. Each key is a micro-move; its value is the tree of legal continuations. A leaf ({}) is a complete legal turn. An empty top-level tree means a forced pass. On inline copies, null means the enumeration was too large — fetch GET /games/{id}/moves.
object
object
A participant’s public, spectator-safe face — never a raw id.
object
Team-qualified bot name
A participant’s public, spectator-safe face — never a raw id.
object
Team-qualified bot name
Example
{ "activeSeat": "White", "players": { "white": { "kind": "Bot" }, "black": { "kind": "Bot" } }}Unknown resource.