Answer: When a member is accessing the site via the mobile app! It seems that via the app, a member is permanently 'logged on' and so never updates the "last_online" setting. This cropped up here: Games Played Long After Last Online Date? But I thought it might be new information for many in this club, so wanted to draw attention to it. It's something I've been using for years to weed out 'absent' club admins who get nominated to look after teams in the leagues I help run but it seems that doesn't work so well any more 🙄
jardele4 Jan 3, 2024
In some profile data I downloaded for informal research, I noticed some cases where games were played long after the last_online date. There were several of these in my sample set of 53, so it doesn't look like an isolated occurrence. Is this a known issue? If so, it seems that my best bet would be to look at the date the last game was played. Here's an example: https://www.chess.com/member/RobinsRevenge0 Last game was on November 7, 2023, but their profile data shows they were last online on June 20, 2023: [{'name': 'RobinsRevenge0', 'status': 'closed:fair_play_violations', 'date_created': '2021-01-18 00:05:08 UTC', 'last_online': '2023-06-20 01:05:19 UTC', 'country': 'CA', 'url': 'https://www.chess.com/member/RobinsRevenge0'}] Used get_player_profile() from the (unofficial) chessdotcom library in Python, if that's relevant.
stephen_33 Jan 2, 2024
Hi,I have a website where the user can enter his nickname from chess.com. When he does this, the website checks his played games once a day, saves it in the database and generates statistics. I want to change the manual username entry to logging in via oauth the chess.com server. I want to make sure that the username the player provides actually belongs to him. The server provides access tokens. My question is: should I save tokens for each user (access and refresh token) and add them to the query for data of each user in turn when I retrieve information about their games? Now, having their usernames, I simply download the data I need from the API without adding tokens and everything works. Please advise.Thanks!
mlody87pl Dec 31, 2023
Under https://www.chess.com/events, if any event is going on, chess.com will show the live games. How are the moves and clock times determined in real time? Is there an external API to get this information?
ChipDaWolf Dec 29, 2023
Hi,I'm trying to access the data for this club tournament using this api endpoint:https://api.chess.com/pub/tournament/1st-blk-international--4427528However, as you can see in the rounds field it only returns a single round despite the tournament clearing having 4 rounds.rounds":["https://api.chess.com/pub/tournament/1st-blk-international--4427528/4"]Does anyone have a fix for this or is this a known bug?
EitanJoseph Dec 18, 2023
Hello, I'm hoping to use the API to query a user's games archive and then walk the archive for games that have been evaluated by chess.com to search for positions with m3 or less. Based on the the Published Data API doc I'm not entirely sure this is possible. Is there currently any API support for seeing people's premium game evaluations?
winstonpurkiss Dec 8, 2023
I really like the game review feature at chess.com. I would be very interested if there is an API that allows me to submit a PGN for a game and to receive game review response. Any plans for this? It could allow Chess GUIs to integrate with chess.com.
ShadowDeveloper Dec 8, 2023
They stole my championship. I cannot have this stay as such... I am not number zero: i triumphed and I want to see my opponents score underneath mine... anyone has had such troubles ? Have you found a way to get your due respect from Chess.com through service help/contact support means?
ThroughtonsHeirAlexHebert Dec 7, 2023
I am processing game result codes right now and have questions about some of them. Any help would be appreciated. I got the game result codes from https://www.chess.com/news/view/published-data-api#game-results I have questions about the following codes 1- Abandoned: What is the difference between abandoned and resigned? 2- Lose: Why would it say lose? Why wouldnt it say resigned, or checkmated? I want to know if these are used and if I should expect them to come up in endpoints. I have been checking some of them and most say "win" or "checkmated" or "agreed" etc...
ShawnBierman Dec 7, 2023
So I have a python program that's querying the API and it's been working fine. A week ago or so I told support I had two accounts and it was approved. Well, now my program has been fine making calls to get PGN data from my newer account, but today I went to pull PGN data from the other account (SimpleChessBrah), and the JSON returned is an error message with error 503, with the message: An internal error has occurred. Please contact Chess.com Developer's Forum for further help https://www.chess.com/club/chess-com-developer-communityHelp would be appreciated.
simplechessbro11 Dec 5, 2023
I don't think this exists, but it would be nice if chess.com could have a setting where you get notified whenever a new member joins your club(s). Could this possibly happen sometime? (btw I was told I should make a topic about this in this club; here is is: chess.com/clubs/forum/view/suggestion-notifications-for-new-members-in-clubs Chess.com Community Club)
I'm running a script that was working fine just yesterday, but today it blocks trying to get the games from this player: https://www.chess.com/stats/daily/chess/eddierapster Here we see there's some daily games that should be at least in the "finished", yet the API returns an empty list: https://api.chess.com/pub/player/eddierapster/matches Any clue what happens here?
Martin_Stahl Dec 2, 2023
Hey everyone, I am new to the world of coding and am going to start a major in data analytics soon. I did a little IBM course to get a feel for the subject, but the projects were very much engineered, and didn't feel like I was actually doing anything. So, I decided that on my first 'real world' project, I would make something that can grab the API for my stats so I can make a regression plot for my Elo or just some neat graphs or something. It didn't take long for me to get my first error, and after consulting with the almighty chat-gpt, I have been led here to try and solve my problem. The error I am getting is a 403 error which seems to indicate that my authentication is being blocked. Any help would be appreciated, and is this project something I can even do?
Takin_These Nov 30, 2023
Hey, I wanted to program something that could say what move was played and then when I thinked I could say what move I want to play and the program plays it on chess.com (for example with a bot). So that I could train to play blinfolded. Do you know if something like that already exist ? and if not, do you know what api I can use to get and control my navigator (which can be anything, like opera or chrome) or even my chess com account to do so ? Thank you.
Louloufou63 Nov 28, 2023
Hey guys, was wondering if anyone could help me in doing the following task:- take a game link as input- grab the pgn from that game in such a format that I can modify it to do things like: -- remove ratings, -- change and use variables to modify usernamesthen print the pgn Preferably in python. I've seen many posts about using many pgns or pgns of a certain user, so was wondering if this was even possible! Thanks.
ninjaswat Nov 27, 2023
Sharing some scripts I've created. They are functional and I could make them more user-friendly if there is any interest. Chess Power Tools is a collection of scripts that can help do the following: Export chess games from Chess.com in JSON and PGN format (chesscom-export) Import chess games from PGN to SQLite DB (pgn2sqlite) The next script I'm planning is for more analysis. For example, expand the SQLite DB to include a table for moves and fields such as: Position (FEN) Engine evaluation Move evaluation Centipawn loss and more (I'm taking suggestions)
chesslover0003 Nov 26, 2023
I've been working on Chess Time for almost 2 years on and off as a way to calculate your play time on Chess.com. I just made a big update on the design and the stats that are available. It's quite nice what you can do with the public API. Now you can track your nemesis and victim players – it's pretty neat to see those stats in action! https://www.chesstime.io/ The app was built with React and Typescript. There is no backend yet but I'm looking into the possibility of building one. Here's a sneak peak: A nice breakdown of the win/loss/draw conditions The player that you played the most games with and the player that you have won/lost/drew the most against. As you can see, I love playing against bots.
Purecojones Nov 23, 2023
Hello chess devs! I want to share with you a project that I've been working on. As a chess enthusiast who got hooked on the game by watching streamers, I wanted to create something that bridges the gap between chess gameplay and streaming. So, I've developed a website that brings together the best of both worlds: Chess.com and Twitch! You can find it at chessvod.com. What Can You Do on the Website? Duel Stream Setup: Watch your favourite streamers go head-to-head by seeing both streamers' clips, side by side. Personalised Experience: Ever played against a streamer? Enter your chess.com nickname and discover clips of your games that were streamed. It's a unique way to see your gameplay from a new perspective. Enter someone’s else’s name, like Magnus Carlsen, and see how they react when they realise that they are playing against the world champion. Behind the Scenes: Integration with Chess.com: The website automatically fetches data about streamers and their games from the chess.com API. Twitch Video Insights: By integrating Twitch's video details, the site determines if a chess.com game was captured in a streamer's video. This feature allows for a seamless connection between the game and its streamed footage. What’s next? Discord Bot Integration: Getting a ping whenever there is a clip where you play against a streamer. If you have any feedback, please let me know
NoBlunderNoGain Nov 13, 2023
Hi, I just noticed that my games archive returns an empty set of games, even though I just played a couple of games. This is the first time I see this: https://api.chess.com/pub/player/paintednow/games/2021/10 The response is just an empty set of games, i.e. {games: [ ]} Any ideas/tips what is going wrong? Thanks, PaintedNow
SwissCookieMan Nov 11, 2023
Hey Chess Developers! I wanted there to be an easy way to watch top level online chess in almost real time so I created a youtube channel called chess-almost-live, that livestreams recently completed games on chess.com (and that other site as well). Here's how it works: a live stream kicks off whenever a minimum of 4 top games conclude within the past 30 minutes. A game is selected and replayed and when it finishes, viewers get to vote on the next game to stream by commenting in the chat. I am hoping that the channel makes these top games more accessible to a wider audience and can serve to grow chess and help people (myself included!) improve their game. The lofty goal is to create a little chess community and collaborate with other channels. If anyone has any questions, wants to collaborate, or simply wants to understand the technical side or the code, I would be happy to chat! Also, a huge thanks to chess.com for their amazing API!https://www.youtube.com/@chess-almost-live
SaldeanKnight Nov 11, 2023