I've been using the Chess.com Public API for a long time, lately it seems like only daily games are showing up in the games methods. Example: https://www.chess.com/member/plumptonredhttps://api.chess.com/pub/player/plumptonred/games/2021/11 I see from old post that there has been a bug in the past where this happened, could this bug have been reintroduced? yaybjorn
funkyfresh12 Dec 3, 2022
Hi, i am trying to connect to "cometd" websocket in NodeJS that is opening on https://www.chess.com/play/online "games/watch" tab, but it is protected with some data i can't reach :/ Does anyone know how to reproduce connection in node?
We played mr-bullet-3534725 about an hour ago. It should show up in my tournament list but it hasn't appeared.
Hey everyone, I've created an updated postman collection for the chess.com API which now includes path variables. I have also added requests for live team match, live team match board, streamers, leaderboards & random puzzles View on Github
Hello, I'm using the published API for a couple of things mostly linked to daily matches and extracting stats from them, and I have a couple question. I dug a bit in the forums but I haven't found my answers there, sorry if I'm asking things that's already been answered before. 1. Getting admins in charge of a team match Using the endpoint https://api.chess.com/pub/match/{ID} (e.g. https://api.chess.com/pub/match/1) I can get various information about a team match, but the IDs of the admins organizing the match for both teamis not present in the JSON, and I haven't found a way to get it at all. Is there a workaround for that? 2. Error with country code XX clubs When trying to get the list of clubs per country, I get an error with code XX (international) : https://api.chess.com/pub/country/XX/clubs gets "{"status":"error","message":"Internal Server Error"}". I suspect it's probably giving a result too big or something. Is there a workaround to get that list? 3. Limit of 500 team matches According to the API documentation, the list of team matches per club we can get using https://api.chess.com/pub/club/{ID}/matchesis limited to 500. Except by bruteforcing (which works but is not so clean), would there be a smarter way to get older matches of a team? Thanks!
Tricky_Dicky Oct 27, 2022
Hello, If we use https://api.chess.com/pub/country/IT/players we get only 10000 records with a ""comment":"Results are temporarily reduced to the first 10000 players for performance reasons"". Can we get more than 10000 records or next 10000 records? Possibility to get 10000 records starting from given record would be (probably) the best.
RathiDragon Oct 26, 2022
I would like to be able to use chess.com as an auth system for my site. Is it possible to redirect users to chess.com to authenticate?
NechIvVas Oct 24, 2022
Hi, I'm looking for a lightweight and fast way to retrieve a player's live game history. The only way I found is to use the monthly archive (https://api.chess.com/pub/player/{username}/games/{YYYY}/{MM}), but it can be massive with hundreds of verbose PGNs. Will it be possible to support a more lightweighted way to retrieve this data? (i.e retrieve games only for a specific day/time range, retrieve only the links to the games...)
cezarywagner Oct 23, 2022
I was hoping there is a way to manipulate the address in the search bar to gain access to the overall archive of all players rated at a particular level? Here is a pic of what I am getting at, if you look at the items circled in red pen, I was wondering if I can manipulate the address bar in anyway to gain access to perhaps a Chees.com archive, instead of an individual player's archive and then in the interface circled to the right, put in a rating range, to then be able to download batches of games, where I can omit players who are untitled for example?
Christopher_Parsons Oct 22, 2022
lately i've been getting error 502, how could i minimize this?
Slugotter Oct 20, 2022
I help with the technical aspects of running the Knockout match league (I use Python vers. 3.9) and one of the functions I carry out is to provide lists of adjusted (for closed accounts/fair-play) match results with each round in a tournament. Here's a typical example.... Obsessive Chess Disorder. (31.0) vs FanatikClub (29.0)(no result)Chess Dream Team (34.0) vs 1 day per move club (27.0)(1-0) That format of team scores and overall result (in blue) has been working faultlessly for years but then we began a new tournament with an Arab-themed club and suddenly I noticed this problem... Team Match Chess (35.0) vs Arab National Team - منتخب العرب (25.0)(1-0) I thought it was just another niggling encoding type issue and tried using the Python 'unescape' method from the html module to convert the escaped Arabic characters but it doesn't seem to change the output. This is the club: Arab National Team - منتخب العرب URL: https://www.chess.com/club/arab-national-team-mntkhb-l-rb The name string as given in the match endpoint:- "Arab National Team - \u0645\u0646\u062a\u062e\u0628 \u0627\u0644\u0639\u0631\u0628" Another thing that took me a while to work out - not only is the result of (1-0) misplaced in the string, it's also reversed! Then I realised Arabic text is always read from right to left. Something seems to be happening that's causing my version of Python to include some non-Arabic text to be treated as if it is and outputing it in the same way (right to left). The odd thing is, if I omit the match score or the result it outputs correctly in my console but when I copy the text here it's then reveresed... Arab National Team - منتخب العرب (1-0)Arab National Team - منتخب العرب (25) Strangely it's not reversing the match score, only the result. Here's a screenshot of what I see when I print the various strings to my Python console... Can anyone else repeat these results? And can anyone suggest a solution?
stephen_33 Oct 20, 2022
I've figured out how to get the results from a swiss tournament from the API, but I haven't found a way to get the results from an arena tournament. For example, is there any way to get the results from here: https://www.chess.com/play/arena/2160844 Also, is there any way to get rank from the Swiss tournament? The player who comes in first is the "winner", and the players are listed from first to last, but there is no indication of a tie, for example a tie for 2nd.
Hello everyone. From my brief experience with the API, I have seen that we are able to collect the FEN of the final position of a game. Is there a way to retrieve the FEN after every move of a particular game? I saw that we are able to retrieve the moves, but not in the FEN format.
callmefilms Oct 14, 2022
i’m looking for API endpoints to get live, current, on-going games of a user. none of the endpoints I’ve looked at so far return current live games (they’re only available after the game has ended). I don’t even need the moves necessarily. Any idea when or if this will be available?
ssoroka78 Oct 12, 2022
I am wondering if there is a way to isolate all of the games played by GMs vs GMs in daily, IMs vs IMs, FMs vs FMs, etc ?At some point, I wouldn't mind doing this each time control, but I was hoping to start with daily chess. Thanks for your time and any help you could provide.
Christopher_Parsons Oct 8, 2022
Hi, I built a web app that pulls a player's games and 1) shows the number of games for each year and time control combination 2) identifies the highest rated player played and their rating 3) identifies the highest player beaten and their rating 4) shows who a player has beaten and lost to the most 5) identifies the five best and worst openings for each color for a given year and time control combination and 6) shows graphs of a player's average rating over time. This is a beta version and feedback is appreciated. Thank you for your consideration, https://chess-analytics.herokuapp.com/
Hi all, Has someone come across a way to programmatically create a challenge link for a game based on parameters, or perhaps knows a way to automate it? Much appreciated
Vert19800 Oct 5, 2022
Hi everyone, I have an app in which I generate FEN strings and I would like users to be able to launch their phone's Chess.com app, and/or the website via some chess.com/analysis?FEN=X sort of URL. Does that capability exist? I tried working with the analysis?FEN= url from the analysis page, but I can't seem to properly get it to recognize the FEN. A deep link directly through the app would be even better, but the url method should be fine as well. I searched around a bit but could not find any sort of information on this aside from an old 2019 request here: https://www.chess.com/clubs/forum/view/deeplink-open-chess-com-app-with-a-fen-position Thanks for any help you can provide!
pawnpatrol_pawnpatrol Sep 29, 2022
One of the things I keep an eye on in the team-match leagues I help to run is player removal at the registration stage. It's sometimes done in order to manipulate teams and make them stronger by removing the lowest rated players. In fact I've been surprised at how very unusual it is for admins to do this, at least in the tournaments I help supervise. But I just did a second sweep of a set of matches that are due to start in a few days and had a program failure I haven't encountered before. It was for this match:- KOTML S34 R1 Squadron Commandos vs Waldesrauschen On the previous sweep of teams I'd collected this list of players for the Waldesrauschen team:- [0812leonliu,a-marinho,arthurlee2021,av1224,bananapeelthegm,bigsoccer12,cvijad,eagle_268,gnomenreigen,myauno,pripor,raison88,rocknmetalforever45,rookside_castling,sammli,stavan2004,sulaluka,tired_of_ignorance] All matches in our leagues must have the 'Minimum Games' setting set at 10 games and this is the case in this match. But the player @stavan2004 was detected as missing on my most recent seep through and that prompts a check of the player's "timeout_percent" figure to decide whether or not the removal is allowed (we permit the removal of players with rates at or above 15%). That's when things went pear-shaped because the following endpoint has no "chess_daily" field! https://api.chess.com/pub/player/stavan2004/stats {"chess_bullet":{"last":{"rating":1372,"date":1658770331,"rd":246},"best":{"rating":1372,"date":1658770331,"game":"https://www.chess.com/game/live/52509094135"},"record":{"win":1,"loss":0,"draw":0}},"chess_blitz":{"last":{"rating":1404,"date":1658947200,"rd":248},"best":{"rating":1404,"date":1658947200,"game":"https://www.chess.com/game/live/52685966885"},"record":{"win":1,"loss":0,"draw":0}},"fide":0,"tactics":{"highest":{"rating":818,"date":1658770352},"lowest":{"rating":802,"date":1658770358}},"lessons":{},"puzzle_rush":{}} My question is - how is it possible for a player with no history of Daily games to enter a match in which the Minimum Games setting specifies ten games?
(This isn't so much a problem with the site's API as a problem between the way data is represented in club endpoints and club home-pages) I help run a VC league and we had a strange situation earlier in which one team was unable to find their opponent while setting up their game challenge/seek. The club is 'The Square Knights' and I was skeptical until I tried sending a VC challenge myself and got the 'No results found' response. It looked like being a problem with the club name and a check of the club's api data showed what it was.... https://api.chess.com/pub/club/the-square-knights "name":"The Square Knights" Note the double-space between Square and Knights! I remember having a very similar problem a few years ago and I was told then that the correct spelling for any club is always as given in the endpoint data. That's fine and dandy if you know your way around the site's api but can't something be done to fix this problem permanently? It's a hopeless situation for team admins to be copying a club's name into the VC game search field only for it to fail every time without any clue as to why.
stephen_33 Sep 2, 2022