Export a single game
Download one game in PGN or JSON format.Path Parameters
string
required
The game ID (8 characters)
Query Parameters
boolean
default:"true"
Include the PGN moves
boolean
default:"true"
Include the PGN tags
boolean
default:"true"
Include clock comments in the PGN moves when available
boolean
default:"true"
Include analysis evaluation comments in the PGN when available
boolean
default:"true"
Include the opening name
boolean
default:"false"
Insert textual annotations in the PGN about the opening, analysis variations, mistakes, and game termination
boolean
default:"false"
Include the full PGN within the JSON response, in a
pgn fieldboolean
default:"false"
Include accuracy percent of each player, when available
boolean
default:"true"
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
string
required
Game IDs separated by commas. Max 300 IDs (or 600 for OAuth).
Query Parameters
Same as single game export, plus:string
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
string
required
The username
Query Parameters
integer
Download games played since this timestamp in milliseconds
integer
Download games played until this timestamp in milliseconds
integer
Maximum number of games to download. Leave empty to download all games.
string
Filter games by opponent username
boolean
Filter rated or casual games
string
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, threeCheckstring
Filter by color played. Possible values:
white, blackboolean
Filter games with or without a computer analysis available
boolean
default:"false"
Include ongoing games. The last 3 moves will be omitted.
boolean
default:"true"
Include finished games. Set to
false to only get ongoing games.string
default:"dateDesc"
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
integer
Download games bookmarked since this timestamp in milliseconds
integer
Download games bookmarked until this timestamp in milliseconds
integer
Maximum number of games to download (default 5000)
string
default:"dateDesc"
Sort order. Possible values:
dateAsc, dateDesc
