Export a single game
Download one game in PGN or JSON format.Path Parameters
The game ID (8 characters)
Query Parameters
Include the PGN moves
Include the PGN tags
Include clock comments in the PGN moves when available
Include analysis evaluation comments in the PGN when available
Include the opening name
Insert textual annotations in the PGN about the opening, analysis variations, mistakes, and game termination
Include the full PGN within the JSON response, in a
pgn fieldInclude accuracy percent of each player, when available
Include the division information (opening, middle game, end game boundaries)
Response Format
By default, games are exported in PGN format. Set theAccept header to application/x-ndjson or application/json to get JSON.
Export games by IDs
Download multiple games by their IDs.Request Body
Game IDs separated by commas. Max 300 IDs (or 600 for OAuth).
Query Parameters
Same as single game export, plus:URL of a text file containing real names and ratings for PGN tags, one player per line separated by semicolons.
Response
Returns an ND-JSON stream where each line is a JSON object representing one game, or a stream of PGN games separated by double newlines.Export games by user
Download all games of a user.Path Parameters
The username
Query Parameters
Download games played since this timestamp in milliseconds
Download games played until this timestamp in milliseconds
Maximum number of games to download. Leave empty to download all games.
Filter games by opponent username
Filter rated or casual games
Filter by game type (perf). Multiple types can be specified, separated by commas.Possible values:
ultraBullet, bullet, blitz, rapid, classical, correspondence, chess960, crazyhouse, antichess, atomic, horde, kingOfTheHill, racingKings, threeCheckFilter by color played. Possible values:
white, blackFilter games with or without a computer analysis available
Include ongoing games. The last 3 moves will be omitted.
Include finished games. Set to
false to only get ongoing games.Sort order. Possible values:
dateAsc, dateDescResponse
Returns an ND-JSON stream where each line is a JSON object representing one game, or a stream of PGN games separated by double newlines.Export imported games
Download all PGN games previously imported by a user.Authentication
Requires OAuth token withgame:read scope.
Response
Returns a stream of PGN games separated by triple newlines.Export bookmarked games
Download all games bookmarked by the authenticated user.Authentication
Requires OAuth token withgame:read scope.
Query Parameters
Download games bookmarked since this timestamp in milliseconds
Download games bookmarked until this timestamp in milliseconds
Maximum number of games to download (default 5000)
Sort order. Possible values:
dateAsc, dateDesc
