Anyone know if we can retrieve the new league data such as trophies, etc...?
spieschess Dec 22, 2021
Hi all! I call: https://api.chess.com/pub/player/levonaronian/stats and get next answer: {"chess_bullet":{"last":{"rating":3002,"date":1636672838,"rd":87},"best":{"rating":3191,"date":1605125818,"game":"https://www.chess.com/game/live/3596245108"},"record":{"win":52,"loss":80,"draw":23}},"chess_blitz":{"last":{"rating":3132,"date":1636670422,"rd":70},"best":{"rating":3152,"date":1636670032,"game":"https://www.chess.com/game/live/5726414488"},"record":{"win":66,"loss":50,"draw":53}},"fide":2790,"tactics":{},"lessons":{},"puzzle_rush":{}} There isn't rapid information, but in levonaronian's profile we can see: Bullet: 3002, Blitz: 3132, Rapid: 2778. How to explain it ?
Both are gimmicks for my discord bot. Right now it only says if you are premium, not gold, platinum or diamond. Avatar URL is also a useful gimmick. I understand OAuth supplies it but I don't want to authenticate the user, and some bots have commands to fetch other people's data. Again I really need the premium level above all. Edit: Also I really want Biography to be exposed, aka "About Me"
I'm trying to make a chess application with java swing and tcp socket for my school project. But I still have some problems. Please help me out. 1. Should I put the clock for each player on server side or client side? 2. What is effective way to detect a checkmate? I can detect a check by checking all the square on the king's column, row, etc. But I dont think this way can detect a checkmate. 3. One again, where shoud i put the checkmate detector? If a player clicks on a piece, the client side will find all legal moves and display it. Shoud I put the checkmate detector somewhere here? Sorry for my bad english.
ZanyZombie22 Nov 18, 2021
I was looking into using the API to look at US Players, but the API doesn't seem to be working. When I use this link, it says there is a Internal Server Error: https://api.chess.com/pub/country/US/players Does anyone know how to fix this? Thanks!
mwakanosya Nov 17, 2021
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