Hi all!There is example 'https://api.chess.com/pub/player/erik/is-online'in chapter 'Player online status'on 'https://www.chess.com/news/view/published-data-api'.Data Format must be:{"online": boolean, //true or false}I call 'https://api.chess.com/pub/player/erik/is-online'and has result:{"code":0,"message":"Data provider not found for key \"/pub/player/erik/is-online\"."}What am I doing wrong ?
I'm trying to build a utility tool pack for blindfold chess and one of the tools involves calculating the minimum number of moves to get from one square to another with any piece. The pawn, bishop, queen, and rook are relatively simple (mathematically resolvable), but I don't particularly understand how to go about doing this with the knight. Someone has already suggested a solution utilizing some graph theory but is there, by chance, a simpler way to do this?
WhiteDrake Nov 11, 2021
Hi all!There is description "fide": "integer" // FIDE ratingin chapter 'Player Profile'on 'https://www.chess.com/news/view/published-data-api'.I call 'https://api.chess.com/pub/player/hikaru'and element 'fide' not found in result.What am I doing wrong ?
Tricky_Dicky Nov 10, 2021
Game `7a93b1c4-2fad-11ec-9f26-09ff3c010001` has an end time before start time in the pgn when viewing through the api. It is important to note this was a 1+1 game where I gave my opponent a lot of extra time. Also, I think it is possible that we had a game abort by accident due to inactivity. Then we restarted the game. So perhaps the end time is from the accidental aborted game? Reproduction: Go to https://api.chess.com/pub/player/gammonheck/games/2021/10 Search in page for 7a93b1c4-2fad-11ec-9f26-09ff3c010001 Note that the end time is before the start time.
stephen_33 Nov 10, 2021
What API can return data about arena?
Hello guys, I made an eletronic board to play on a real board and a mobile app to control the match using bluetooth, the question is: on lichess I use the board API to start, finish and play matchs, there is something similar here? I do prefer chess.com and don't want to give it no support on my board. Thanks.
rodolpho_netto Nov 2, 2021
With 4PC getting more and more popular we should be able to get at least the basics (ratings etc.) with API calls. Is there something like this in place? Thanks.
BabYagun Nov 2, 2021
Lichess does it, searching up a player's username will return profile preferences, patron status, rating, etc... And it makes everything much easier, because all you need is one query. I have a discord bot that shows wings for Lichess patrons for not for Chess.com, because I don't want to bother 2 API calls just for the extra diamond / gold icon for premium members.
Having looked at other online chess platforms public APIs, and being a chess.com subscriber and enthusiast, I would just like to make some suggestions for further APIs to be publicly exposed. 1. Positive and negative streaks per game type. (classical/rapid/blitz/bullet) ie. dimpoul - blitz | Max win streak: 6 | Max loss streak: 4 2. N Best wins and N worst losses per game type. ie. what are the 5 highest rated players I've won and 5 lowest ones I lost to. Best Wins of dimpoul in blitz: blah (2522), NM blah (2478), blah blah (2472) 3. Score between 2 players out of all the games they have played against each other. (I have opened a new forum post on this one) 4. Puzzlerush and other puzzle variant results. We are currently given very little on this: "puzzle_rush":{"best":{"total_attempts":28,"score":25}}} and it is not shown whether this is 3 minute or 5 minute scores. Also what about survival etc. 5. We need some kind of feed which says the other persons "activities" during their last session. For example: - Dimpoul started a live stream - Dimpoul played 5 rapid games (W: 2, L: 2, D:1) - Dimpoul played 3 puzzlerush and his highest score was 28 - Dimpoul played in a bullet arena and finished 5th Thanks for reading and congrats on the very hard work by whoever is involved so far in chess.com APIs.
Is there a punlic chess.com api that gives you the score between two players out of the total games played between the each other? I know this piece of info is available in the players' profile pages. Thanks. dimpoul
I have noticed that stats contain best rush score and attempts through all 3 versions 3min/5min/survival - it would be nice to provide them separately
I encountered this bug too: https://www.chess.com/clubs/forum/view/cors-error-while-requesting-games that is, if I make parallel requests for monthly games ( even for only 2 requests ), the response header does not contain the field access-control-allow-origin: * I am positive that this is not the intended behavior, and it is clearly going against the documentation, please fix it.
How can I get a list of Tournaments from the API? One can get the information from a particular tournament using https://api.chess.com/pub/tournament/{url-ID},The documentation says that the "url-ID" is the same as found in the URL for the tournament's web page on www.chess.com. but the whole point of the API is to have direct calls instead of parsing the website. How do one get a list of valid tournament "url-ID"? or even better a filtered list of "url-ID"s.
I need this for my discord bot for quick authentication, I hope someone has an answer for this issue. If Chess.com has OAuth2, it completely lacks documentation for it. https://github.com/eyal282/Chess-ELO-Discord-Bot
Hello, I'm wondering if it's possible to obtain a large collection of games for AI research. I'm training Leela Chess Zero (Lc0) networks based on human games to experiment with various learning methods. For past months I have been data-mining the game archives of Lichess which (at the time of writing) has around 1.6 billion games. As Chess.com has games archived since about 2007 I'm very much interested to know if there are any compressed downloads available for this kind of research. Lichess has game archives per month which contain (for the recent months in 2020) up to 70+ million games per download. This makes it easy to data-mine larger data-sets. For me it's key to get a large portion of games in various rating ranges and time controls (preferably no bullet games): 1000-1050 1200-1250 1400-1450 <> 2600+ I have been reading the API documentation lately and apparently for serial access the API should be unrestricted / uncapped but I have seen 429 responses every now and then. Game archives on chess.com are per-player and also on a monthly basis. To my knowledge there is not really a fine-grained way to obtain players in a certain ELO range and thus this would require some 'probing' to find the right sub-set of players (e.g. for example by iterating over the player listings for each country). I hope to hear some directions how to achieve above goals.
Mensch-Maschine Oct 17, 2021
Hello peeps, Anyone has help to offer for fetching players from the US. Api for doing this from the chess.com API page (https://api.chess.com/pub/country/{iso}/players) is not working. It's kind of unnerving especially as I have tested this before in the past and it worked fine. Please your ideas. Thanks
veryfastdoggo Oct 11, 2021
For example percentage of games lost by timeout/checkmate or so on. Or maybe this is already available I just missed it in the documentation.
krasibiel Oct 6, 2021
This is the Github link to my code of the opening e4-https://github.com/Nivesh-GitHub/e4-openings d4-https://github.com/Nivesh-GitHub/d4openings.py Run in jupytrer notebook
nivesh673 Oct 2, 2021
I have a discord bot that verifies you as the account owner by the "Location" data of the player. I want to immediately use the data after linking, but I need to send another request for it. Lichess does it a lot better, sending every data possible for the user in one endpoint