Chess.com API guide

chess.com

Look up Chess.com ratings and recent games, check results and opening codes, and open a game on the analysis board.

Actions and inputs

chess stats

View ratings and win, loss, and draw counts by game type.

Inputs username

chess games

List recent games from monthly archives, newest first.

Inputs username, optional result limit

chess game

Get a game's result, opening code, and time control.

Inputs full live or daily game URL

chess analyze

Open a game on the Chess.com analysis board.

Inputs full live or daily game URL

Game collections

Create

Create a collection in your Chess.com Library and add games for later analysis.

Inputs Collection name and game links

Read

Open a collection and choose a game to review on the analysis board.

Inputs Collection name and optional game

Update

Rename a collection or add and remove games from it.

Inputs Collection name and new name or game links

Delete

Delete a collection you own without deleting the original games.

Inputs Collection name and confirmation