Is there currently any way to get the email of authenticated users?
Avatar of Martin_Stahl
Martin_Stahl Jul 26, 2024
I was looking through player timeout ratios and I see some incorrect results for a few players: Example: https://www.chess.com/games/archive/cryonicity?gameOwner=other_game&gameTypes%5B0%5D=chess960&gameTypes%5B1%5D=daily&gameType=daily&page=1 Notice their last timeout was in 2023. Now hit the stats endpoint and you'll see it shows they have an 85% timeout ratio: https://api.chess.com/pub/player/cryonicity/stats "chess_daily": { "last": { "rating": 869, "date": 1721090624, "rd": 125 }, "best": { "rating": 1301, "date": 1434908697, "game": "https://www.chess.com/game/daily/61992096" }, "record": { "win": 113, "loss": 178, "draw": 1, "time_per_move": 48498, "timeout_percent": 85 } }, This is extremely inconvenient for teams that reply on the API returning accurate information. Is this a bug with the API or did something change with the response recently? If this is a bug, please prioritize this as it's causing a massive headache for people. I reviewed the docs and see it should be the last 90 days still: "timeout_percent": 9.99 // timeout percentage in the last 90 days
Hello everyone! I’m building Stilltheory, a website where online chess players can gain insights into their opening repertoires. I just finished the first version of the site, and I thought I would share it with the club to get some feedback. The site only has an opening tree with the player’s repertoire for now, but I’m working a bunch of other features that should be up pretty soon.Link: https://stilltheory-99ad88062fe2.herokuapp.com/ A few notes about using the site: The site looks terrible on mobile for now, so please open it on a computer.- If you ever encounter a bug while using the site, please DM me describing what happened, ideally with a screenshot.- The percent on each circle is the win rate you have in that opening, and the number below it is the number of games it was reached. Hover over an opening to view the position on a board.For now, please don’t request too many reports in the same day, as these reports take a good amount of processing power and strain the server quite a bit.- Stilltheory only processes your 500 most recent games for now. In the future, we’re hoping to make this customizable to the user.- If you notice the progress bar stay at ‘Initializing’ for a while (over 20 seconds) without changing. Please log out and try again. Let me know if this happens.- Unlike pretty much all other chess insights websites, Stilltheory does not look for known openings in each player’s games. Instead, we look at the most commonly reached positions within the player’s games and then group them into openings. This allows players who are not very well-versed in theory to gain high-quality insights on their opening game.- Openings that do not have names have the same name as their parent, and their name was omitted for this reason.- If you have any feature requests, please DM me, and I’ll be more than happy to discuss them with you.- Enjoy!
I'm trying to build backward on to a series of databases that start at 2021, that someone else has put together. One PGN database for each month, approx. 3-4GB each, starting at 1950 elo. I was able to query for all the names of titled players, and along with just brute-forcing the copy and paste thing with the leaderboard, gathered about 21,000 names that stretch back to 2300 elo. (Since my own project using that series of big PGNs already filters starting at 2300, that works just fine.) I built query URLs for each name and downloaded them one-at-a-time in a download manager. Only half of these URLs returned PGNs for 2020-12 and 2020-11, and I expect the problem will only get worse as I go further back in time. Is there any way to find out who used to be a member here? I realize that many of the names would belong to banned players, but also just people who've decided to go elsewhere. It would be pretty hard to do it manually, and I can't think of how to do that anyway.
Avatar of ian-rastall
ian-rastall Jul 21, 2024
The webpage still works: https://www.chess.com/club/team-algeria2  And the endpoint used to work until recently but now doesn't.... https://api.chess.com/pub/club/team-algeria2 now returns... {"code":0,"message":"An internal error has occurred. Please contact Chess.com Developer's Forum for further help https://www.chess.com/club/chess-com-developer-community ."}Note: Team  Algeria has two spaces, not one!
Avatar of stephen_33
stephen_33 Jul 21, 2024
I used to be able to paste text and keep all the extra spaces (etc.) by enclosing it within HTML preserve tags, like this:- <pre>  "name":"Team  Algeria" (note the double-space between the words)</pre> I've been trying to paste the club name retaining the double-space to illustrate to another member that it really has two spaces, not one but every attempt ends with only one space - am I doing something wrong or has the text-editor changed in some way? When I examine the page source I can see the '<pre>' tags ok but the name has been shortened to remove the extra space. Is there any way I can paste raw-block-text without the editor changing it?
Avatar of stephen_33
stephen_33 Jul 14, 2024
(How do I get**)After getting the OAuth token, how do I get the user's username? Thanks.
Avatar of LaithTahboub2005
LaithTahboub2005 Jul 10, 2024
My friends and I have been playing chess for a while. We usually play games over the board, and we like to get creative and add our own things to it. The other day, we came up with an idea we thought was pretty interesting, but difficult to execute in real life: a Capture the Flag version of chess. I coded a prototype version in Python, and it was actually quite enjoyable, so we thought we should maybe suggest it to the chess.com devs. We emailed the support team, and they suggested we post it up here. Here's the idea: At the beginning of a CTF Chess game, a flag icon spawns randomly somewhere between the 3rd and 6th ranks.If a piece/pawn moves to the square the flag is on, the flag is 'captured', and moves along with the capturing piece from then on.If another piece takes a piece which currently has the flag, the flag becomes captured by the taking piece.The goal is to finish the game with the flag in your possession.It might seem pretty straight forward, but it's surprisingly difficult to keep a piece possessing the flag safe, as it puts a "bounty" on it, changing the entire rhythm of the game (because the target of each player keeps shifting, instead of being constant - the king).It doesn't matter whether black wins, white wins or it's a draw, as long as one player possesses the flag. If the king captures the flag, it's an automatic win for the player, but putting your own king in check is still illegal. If the game is completed without anyone capturing the flag (though it's not likely), the game is declared a draw. If you find the idea interesting, please consider adding it to the chess Variations, or contacting us under this post/through this email address: tomersewell@gmail.com (we could send over the prototype code). Thanks so much!
https://api.chess.com/pub/player/hikaru/games/2024/07 For some reason this returns 404
Avatar of Martin_Stahl
Martin_Stahl Jul 5, 2024
Hello. I signed up for Chess.com OAuth access via the official form about a week ago, and I haven't heard back yet. Does anyone know about how long it takes to get a response? Thanks
Avatar of LaithTahboub2005
LaithTahboub2005 Jul 4, 2024
Hello, I have recently been trying to set up some Discord integrations with chess.com, but my VPS seems to be totally blocked from the API endpoints by CloudFlare. Requests from with Python, with curl, anything to any of the API endpoints are receiving a response that my action triggered a security solution and has been blocked. This only happens from my DigitalOcean VPS, not from my local computer. I have never attempted to use the chess.com API previously. I have also tested curl'ing other CloudFlare protected sites from my VPS and not run into these issues. Is there any way I can seek a resolution to this?
Avatar of notjoemartinez
notjoemartinez Jul 2, 2024
there NEEDS TO BE a button that clears all notifications, I have been haveing 200+ for months
Avatar of Martin_Stahl
Martin_Stahl Jul 1, 2024
I've been trying to access the club endpoint for this club... https://www.chess.com/club/team-morocco2 here: https://api.chess.com/pub/club/team-morocco2 getting.... {"code":0,"message":"An internal error has occurred. Please contact Chess.com Developer's Forum for further help https://www.chess.com/club/chess-com-developer-community ."}
Avatar of stephen_33
stephen_33 Jul 1, 2024
https://chess-dot-com-games-explorer.vercel.app/  code: https://github.com/anasmustafa123/ChessDotCom_games_explorer the project is an implementation for chess.com game explorer for ur own gamesall u have to do is to enter ur chess.com username and (start, end dates: if u like) and wait for it to load, the project was finished for a while but extracting the moves from the pgns was slow (i used to get the games using https://api.chess.com/pub/player/{username}/games/{YYYY}/{MM}then after having all the games used chess.js loadpgn funtion to get the moves) but i found it was too slow .so instead i used (https://api.chess.com/pub/player/{username}/games/{YYYY}/{MM}/pgn to extract the pgns only and parse it my self to get the moves which made it much faster), i also added filtering by type of game as i thought is very useful
Avatar of ciaradale
ciaradale Jun 27, 2024
Hi, for a little weekend project I built an R package with the goal of being able to download all games played in TT tournaments. My first attempt was to go on the Live Tournaments page, grab all tournament IDs from the URLs, and ask the API for the PGNs of each tournament. But for each tournament (ex: https://api.chess.com/pub/tournament/late-titled-tuesday-blitz-june-18-2024-4829185), the only enpoint is the final round and 1 group. And in fact I was only able to get PGNs from the last round of each TT (as well as the standings). Instead, I took the alternate path of pulling all games from all titled players, and detecting those played in Titled Tuesday. This works, but is painfully slow (like 100x slower) and unnecessary. I'm working if anyone knows if the data for other rounds is somewhere on the API that I just couldn't find, or if there's a better alternative to do what I'm trying to do. Thanks.
Avatar of GHOSTIQON1234XX5
GHOSTIQON1234XX5 Jun 24, 2024
Wanted to know if there is some other endpoints apart from daily chess games. I mean there aren't any APIs for other games such as Rapid,Blitz, and also game with the bots.
I built this chrome extension which announce game moves on Chess.com.The goal was to improve accessibility but also being able to play with a non DGT chess set without having to look at the screen.It's free, and the code is open source. Hopefully some of you will find it useful.Does anyone knows how to get a chrome extension reviewed and approved by chess.com?
I seen CCL use chess.com pairings API, wonder if its possible to create game challenge URLs from the API or possibly apply for permissions? Thanks!
Avatar of Martin_Stahl
Martin_Stahl Jun 18, 2024
I see that this parameter exists, and may allow for a PGN to be entered directly into the address bar, however I don't know how the PGN needs to be re-formatted to be address bar compatible. For my purposes, I can ONLY enter a PGN via the address bar and not the "PGN paste" field on the webpage. Is anyone familiar with how a PGN must be formatted for this parameter to work?
Avatar of Gunnar247
Gunnar247 Jun 11, 2024
Hello, I made a little extension to make it easier to batch review your games! It essentially just opens the review tab for you(if you have membership), than wait for the review to finish, then close the tab. But not you can easily see if you are playing accurately or not in recent games. link: https://github.com/cyborgdennett/chess-auto-reviewer
Avatar of casper_belier
casper_belier Jun 8, 2024