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
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
There's this Accuracy feedback after every game, but how about the Elo you played like? Throw millions of games from chess.com to train some AI machine and feedback every player after his game what Elo he played like, could be a cool feature IMO.
Tricky_Dicky Aug 4, 2022
Found two significant errors in end point https://api.chess.com/pub/match/1401215 CC22 Under 1300 Group A Round 4 Devon Chess v Team Dorset Player @jim78 daily rating changed two days ago but is still incorrectly classed in this match as 'Out of rating range' @dhalllawrence was FPV closed three weeks ago. In these matches score is still show as the board finish and not defaulted to opposition win because game archive icon is shown as 'Account closed' not 'Closed: Fair play' https://www.chess.com/club/matches/1385887 https://www.chess.com/club/matches/1356341 https://www.chess.com/club/matches/1350997 The match scores are inconsistant with the aggregated board scores. Also still waiting for the country code login to be resolved after 6 months https://api.chess.com/pub/country/{iso}/players I get the impression the API is no longer of any interest to Chess.com
Tricky_Dicky Jul 25, 2022
This follows from discussion in notes, transferring here @bcurtis' request. 1. Having player_id and group_id be guaranteed to be continued to be provided(*) would be of benefit as account names may both be changed and reused, and prior to club_id appearing (perhaps it was always there, and I missed it?) there was no way to track group name changes. Club name changes are critically important for the many team-based competitions on chess.com, such as TMCL (Team Match Championship League) that @stephen_33 helps run. (club_id 35246). (OK, https://api.chess.com/pub/club/team-match-championship-league) Group name changes are not uncommon: France/Deutschland Group changed to France-Deutschland Group to make something easier (I don't recall the details) and Great Viking Warriors changed name temporarily to Asger's Great Viking Warriors and then decided to make the change permanent. A number of Australian city/state teams regularised their names. (To a format I don't like, but hey, wasn't my decision.) User name changes are not uncommon either, and it is useful to have an unchanging reference when tracking members (who has played in what matches?) if any cached data is involved (and long-lasting groups play a lot of matches). A consistent player_id is also useful when tracking potential trolls, abusive members and cheats 2. An endpoint to find a member by player_id saves having to stumble across them, or else try to track every active chess.com member and their current profile 3. An endpoint to find a club by club_id would ease running competitions via tools using api.chess.com, as the club_id can be recorded as the competition entrant and competition administrators don't even need to be told of club name changes; they will be obvious. From the current documentation: (*)Note: the "player_id" is provided as a convenience to determine when a username has been changed. If you retrieve a Player Profile by the username-based URL linked from a Game or other object, and this new Player Profile has a "player_id" that matches a Profile you previously downloaded, then you can safely assume that this new Profile replaces the old, and all URLs with the previous username will now be found under the new username. This should be an extremely rare occurrence. This "player_id" will never change for a given account, however the future availability of this ID is not guaranteed.
stephen_33 Jul 24, 2022
G'day everyone. I'm putting together a website and I'd like to use the embeddable iframe share option that chess.com offers to display certain games. But, I'd prefer to do this programmatically. I get the latest games for relevant players daily already and store most of the returned JSON in a DB, but cannot find anything about generating or retrieving that embeddable iframe html. Has anyone done this in the past or know a good place to start? I know I could always use a PGN viewer as I already save the PGN, but chess.com's iframe is basically exactly what I want. Thanks!
I'm looking over the site's REST API and wondering if there is way to download all of my games where a brilliant move was played or annotated by an engine (agnostic of which side had the move)? I don't need to find the brilliancies as part of the API call, but I would like to pull all of the games that have engine analysis, along with the annotations of course. Does anyone know if this is possible to do?
Luke_Thighwalker Jul 15, 2022
Was trying to find a way to pull scheduled live events from a club's Upcoming List. Is there something in the API I've missed?