PGN data from the API Endpoint is different from the Chess.com web "Download PGN" option. The archive api and web based download return different fields and differ in the in the information provided in moves. It would be best to merge these and have all the data accessible, instead of different data for each view. Here is a summary of the differences I see: API Endpoint provides the following additional information not found in Web "export/download": ECOUrl -- a link to the chess.com discussion of the opening LInk -- link to the game EndDate StartTime -- note this is always the same as EndTime except in Daily games -- IMO this should be the actual start time of the game or omitted as in the Web interface. Web provides the following additional information not found in API: Game clock information with each move. formatted as {%clk} Example: https://www.chess.com/live/game/2103285046 Via player api under the archive https://api.chess.com/pub/player/tryingtolearn1234/games/2017/05 [Event "Live Chess"][Site "Chess.com"][Date "2017.05.16"][Round "-"][White "tryingtolearn1234"][Black "111roger"][Result "1-0"][ECO "C47"][ECOUrl "https://www.chess.com/openings/C47-Four-Knights-Game-Italian-Variation"][WhiteElo "1118"][BlackElo "1048"][TimeControl "600"][Termination "tryingtolearn1234 won by checkmate"][StartTime "02:48:20"][EndDate "2017.05.16"][EndTime "02:48:20"][Link "https://www.chess.com/live/game/2103285046"] 1. e4 e5 2. Nf3...(game continues) Via the Download Feature [Event "Live Chess"][Site "Chess.com"][Date "2017.05.15"][White "tryingtolearn1234"][Black "111roger"][Result "1-0"][ECO "C47"][WhiteElo "1003"][BlackElo "974"][TimeControl "600"][EndTime "19:48:20 PDT"][Termination "tryingtolearn1234 won by checkmate"][CurrentPosition "2bk1b1r/3pqpp1/1Q1N3p/2p5/2B5/8/PPP3PP/1K1R4 b - - 0 18"] 1.e4 {[%clk 0:10:00]} e5 {[%clk 0:09:59]}....
rafaelmonge Apr 29, 2020
Is there an API endpoint for the embed id of the match? I see this differs from the id used at the end of the game url? Or alternatively is there a link to the id at the end of the game url and the embed id?
stephen_33 Apr 21, 2020
How can I get it to fetch members from a certain club to show on a website?
Hi, I've contacted support, but was redirected to post here. I don't user Google Play Store. Is there any other way to get the Chess.com Android app .apk? Kind regards,Mikołaj
klausweiss Apr 15, 2020
I can’t write why? I know that I was hacked, but they told me that that little man is a developer and I didn’t write bad words and I can’t write! Why?
BaronVonChickenpants Apr 14, 2020
Hello, I have tried to get my tournament data through: https://api.chess.com/pub/tournament/3eobr-1174076 And https://api.chess.com/pub/tournament/3eobr-1174076/1/1 It works almost fine except that the list of players in the first endpoint is limited to 25. Is there way to get full list ordered by standing? Thanks, Petr
Dale00007 Apr 13, 2020
Do you know any software which can determine your elo just after one 10 minutes blitz game? I have one. It can be usefull for new players’ calibration or just for interest. I think when new user chooses his skill by himself it could probably spoil next few games for both players (cause skill difference could be very big). So, my solution: https://github.com/dendiod/elometer
DATACOMMANDER Apr 5, 2020
I've read through the API overview here: https://www.chess.com/news/view/published-data-api Is there no endpoint for live games? Would that just be too hard to keep updated, or...?
DATACOMMANDER Mar 21, 2020
Dear developers, this is the tournament: https://api.chess.com/pub/tournament/iecc-cc4-2019-01 on https://api.chess.com/pub/tournament/iecc-cc4-2019-01/1/1 instead of the tournament results I get this error report: Unrecognized field: game.gameEndTime Any idea where this error comes from? I need to download the tournament games in PGN format. The other tournaments I do they are ok. For example: https://api.chess.com/pub/tournament/iecc-cc7-2020-01/1/1 Any idea. Best, Detlef
DelfMittelmark Mar 6, 2020
Returned endpoint, https://api.chess.com/pub/club/{ID}/matches, does not conform to specification. API data includes "start_time": & "time_class": Not in specification
Tricky_Dicky Mar 5, 2020
This user @splattergun is registered for team match in API but not on Web page. Is also not a member of the Team. https://www.chess.com/club/matches/1096702/games https://api.chess.com/pub/match/1096702
Hi all, I was writing a Node.js wrapper for the API and figured I'd make it open source and publish to NPM. https://www.npmjs.com/package/chess-web-api It includes a priority queue for requests. So even if you accidentally add multiple requests at a time, you won't get hit with an error for parallel requests. You just pass in a reference to the method you want from the wrapper, a callback function, any parameters, options and it's priority. Runs through each one as soon as the previous is complete. I also incorporated their header "If-None-Match" with the "etag" into a function called "ifChanged", where you can request any of the methods with an "etag". Always returns an object with a boolean property "changed", and if it has changed, the data as well. Let me know if you see any errors or if there's anything I should add! I'll try to make sure it's updated when changes are made to the API. Hope someone finds it useful!
andyruwruw Mar 3, 2020
Hello, For me it would be useful to be able to retrieve only the last played game by me. At the moment I can only retrieve a full month only.
I have a program written in Python that checks the current admin status of those admins representing their clubs in the TMCL tournaments. It's worked well up until now to highlight those admins that have been removed or left their clubs but today I came across one who used to be an admin but has now become a 'coordinator'. Coordinators don't appear in the list of admins in the club endpoint. For example, AstroHorse7 is a coordinator in this club:- https://www.chess.com/club/chocolate-ii but the club endpoint gives this list of admins:- https://api.chess.com/pub/club/chocolate-ii "admin": "https://api.chess.com/pub/player/empr14","https://api.chess.com/pub/player/bsaeagle60","https://api.chess.com/pub/player/irinolf"] Shouldn't coordinators be included in the list of admins?
Is there any reason to provide names of players in the list of "fair play removals" at the match endpoint keeping its capitalization? Or is it just an oversight? In list of players spelling of each username is lowercase. Maybe, it would be better to have them in the same style? Example: https://api.chess.com/pub/match/862300 For sure, API (as well as website itself) works well with any capitalization (e.g. https://api.chess.com/pub/player/sebachEVA ), but be aware doing a comparison of strings in your code. You should explicitly convert names to lowercase.
SJCVChess Feb 26, 2020
Error message returned for this end point: https://api.chess.com/pub/player/yorgunkelebek/games/archives {"status":"error","message":"Internal Server Error"} Member @YorgunKelebek Web archive for daily: https://www.chess.com/games/archive/yorgunkelebek
Tricky_Dicky Feb 21, 2020
Hello, I would like to know if there exists a free chess bot control to prevent players to cheat. On chess.com, it exists, if you play with a bot, the chess engine will know it and ban you from the website, does anybody know where I can find something like this ? Best regards, Axel
As live team matches are now available from API can the results be included in player team match end point https://api.chess.com/pub/player/tricky_dicky/matches
Tricky_Dicky Feb 7, 2020
I just tried downloading a batch of 47 match endpoints without being logged into the site & all was well until I came to this one... https://api.chess.com/pub/match/1086522 ..that returned a 530 status code which I've never seen before. A search shows it to be a code associated with accessing sites without being logged in but I don't see how that can apply in this case because all the other endpoint requests I made were responded to normally & being a REST api, all data from chess.com is public anyway. Has anyone else had a similar problem?
andreamorandini Feb 4, 2020
Hello, has anyone in the dev community used the api to gather bughouse games information and turn that into a pgn?
ColeAlves Jan 26, 2020