# Chess.com API

> 3 public methods for Chess.com (chess.com), each 1 credit per completed run.

Unofficial. Not affiliated with or endorsed by Chess.com.

- Page: https://fous.com/methods/chess.com

## Methods

### [List recent games](https://fous.com/methods/chess.com/list-recent-games.md)

`chess.com/list_recent_games`, read. Lists a Chess.com player's completed public games for a month, newest first, with results, ratings, opening and game links.

Returns: games with end time, color, ratings, opponent, result, how it ended, time control, opening, game link, PGN and final position

### [Get player stats](https://fous.com/methods/chess.com/get-player-stats.md)

`chess.com/get_player_stats`, read. Gets a Chess.com player's public profile, ratings and game records, best puzzle rating and Puzzle Rush best score from a username or member profile link.

Returns: username, display name, title, country, dates, followers, profile and avatar links, rapid/blitz/bullet/daily ratings and records, best puzzle rating, Puzzle Rush best score

### [List top players](https://fous.com/methods/chess.com/list-top-players.md)

`chess.com/list_top_players`, read. Lists up to 50 top Chess.com players for a time control, in rank order, with ratings, game records and profile links. Puzzles rankings use puzzle scores.

Returns: rank, username, name, title, country, rating, wins, losses, draws, profile link
