I would like to make an application that alerts if hikaru is online and sends me the moves for example.
andreamorandini Apr 8, 2019
I was hoping if we could have an option that could tell us how many people have been invited to a club by a person and we could invite more than 30 users per day?
aBhinav_147 Apr 5, 2019
Can we add those two values? When I access data through Google sheets I can't effectively read full member list to get count and avg rating. Those two values are available in web-version on club details, so should be available somewhere in your database. Thanks.
Edit: URL corrrected per @Tricky_Dicky's post #3. https://www.chess.com/news/view/published-data-api#pubapi-endpoint-club-matches It would be very helpful to me to have start_time included in the above endpoint, where one is set, or where the match is "in_progress" or "finished". I am writing a report on which members of a club are active. I would like not to have to pull down all match data ever for a club, and if start_time were included I could ignore, say, matches older than 12 months without having to download their data. Thanks for your consideration. [ Priority? So far, not so bad; downloading match data for a team is faster than I thought it would be. I've not tried for Team Russia or The Power of Chess. They would be painful. ]
Hi there, I appreciate this isn't the ideal place to put this question, but the searches I was running led me here and I think if anyone knows the people here will. I'm trying to set up a small in-club ladder and would like to make it easy to challenge players with the correct time settings and a standard game name to help players recognise those incoming challenges Is it possible to craft a URL that will trigger a game request automatically with set criteria? For example, can I set the opponent, and game length / game name automatically in this way? It's be great if I could craft a 'Challenge This Player' link people could easily click.
BaronVonChickenpants Mar 27, 2019
I may be missing something obvious here but when I open UTF-8 encoded files that I've saved in MS Notepad, it sometimes opens them in ANSI mode by default. The result is that any non-standard characters are not displayed & their codes are shown instead. It may only be when I've saved a UTF-8 encoded file as output from a Python script but they do save correctly in that format. Here's an example - writing '✮ Chess Abrogators ✮' to file returns the following if opened in ANSI: ✮ Chess Abrogators ✮ Now this is easily corrected if the option of UTF-8 is selected as the encoding mode when opening the file but is there a way of setting this as the default? And why, if I'm saving a file in UTF-8, does Notepad bother to use ANSI as the default sometimes? I can't see a setting in Notepad for correcting this.
stephen_33 Mar 20, 2019
error in 960 stats endpoint Example Web page https://www.chess.com/member/apsuaserkan Profile page shows 960 Unrated, highest 1200. Full stats show highest 800 (constant - no changes) API https://api.chess.com/pub/player/apsuaserkan/stats Shows 800 When entered Team match was placed in 1200 rating position. As I am writing this I realise the error is probably Web page and not API.
I'm developing software that needs to access a user's most recently completed game. I see that I can get the games in near realtime using e.g. : https://api.chess.com/pub/player/ck_russ/games/2019/02 But this something I probably want to poll every 10 seconds or so potentially from numerous players since users may want to also use the software on games played by their friends or favorite players. As each archive grab could easily grow to thousands of games it seems like this would be a drain on both chess.com's resources, as well as that of my users. Is there any other more efficient way to obtain recent completed games? If there isn't I'd propose an API endpoint along the lines of: api.chess.com/pub/player/ck_russ/games/after/TIMESTAMP which just returns the 0 or more games played and completed after TIMESTAMP.
I had the idea to write a simple moo.bot command that would use moo.bot's JSON url fetch integration and the chess.com Published data API to provide links to the next club tournament for a friends stream. Basic Concept A viewer watching on twitch goes into the chat window and types the command e.g. "!tournament" Alternatively schedule the command to run every few minutes. Moo.bot sees the command and executes a JSON URL fetch to get the next tournament for a specific club or perhaps using player endpoint for the streamer Moo.bot populates a message e.g. "Join my club {club url} and then join the tournament here: {tournament url} and posts to the chat. Everyone watching sees the message via twitch chat. Twitch mods and streamers rejoice as they don't have to keep modifying a copy and pasted message every time a new tournament is queued up. All the ways I tried and failed so far Unfortunately it looks like this is impossible; but I'm posting here in hopes I've missed something or maybe the chess.com developers will take pity on me and offer a fix/workaround/enhancement. Here are my investigations so far: 1- The Club Endpoint (data not available) -- shows matches, but does not show tournaments :-( . No luck there 2- The Tournaments Endpoint (can't get a list of tournaments) -- only lets you get the tournament if you know the URL; no way to query for all upcoming live tournaments and get the URL. 3- Player Tournament Participation Endpoint (broken) --https://api.chess.com/pub/player/{username}/tournaments) -- in theory this should work because the spec says it provides an array of registered tournaments with the tournament URLs. Unfortunately this isn't working for example: https://api.chess.com/pub/player/tryingtolearn1234/tournaments always returns empty data even though I've played in many tournaments. I tried other players as well, it never seems to have data. {"finished":[],"in_progress":[],"registered":[]}
WhiteDrake Feb 18, 2019
I created a chess club at my high school. To ensure fairness in matches, I created a spreadsheet (Google Sheets) with all members' names and a column for Rapid ratings. However, it is obvious that manually editing this would be tedious. I know that the API can fetch Stats data, but I am new to working with this. If anyone is able to help, it would be much appreciated. Thank you.
WhiteDrake Feb 16, 2019
Hi, I've made some of my scripts a little more forgiving of HTTP errors recently, and thought it might not hurt to document some of the errors seen "in the wild", so to speak. This isn't criticism of api.chess.com or chess.com's operations and network staff; network errors are a fact of life especially if your network client's connection is complex. (Mine is.) Giles
This member, @U4a, was a self closed account until two days ago. Now account shows FPV icon and 'Account Closed' label. (No FPV label) The API end point shows status as 'Premium' https://api.chess.com/pub/player/u4a
KAMarycheva Jan 28, 2019
Hello everyone, I''ve encountered a strange issue in which the game ended in a draw because of insufficient material (I was the one having insufficient material (only king), while my opponent had a queen and a bishop) instead of me winning since my opponent ran out of time. As far as I've read, it would have also been a draw if I was the one running out of time. My question is: why is this happening? Is there a motivation behind this? I'd be really interested to hear it out .
ThomasJEvans Jan 27, 2019
I would like to make a process to make every invite count. So far... I am sending the invites manually and I don`t have any control, so maybe I am sending invites for guys that have already been invited. I want to choose guys that are from my country, Brazil. The account should be at least one month old. Have name and surname, have a profile picture, (I choose nice pictures, will not be able to this) OR is a premium subscriber (Its ok for a premium do not have a nice picture or a picture at all, and even name or surname). I used to be a programmer, I am rusty, so I am spending some time in pythons tutorials. I would like to prioritize guys that log more often So, I will list all the guys using https://api.chess.com/pub/country/BR/players and for every player, I will call https://api.chess.com/pub/player/{username} And the idea is to do this every day, and I will invite first the guys that logged every day. And I will keep in a file every invited member. Is this a good plan ? Can I do this on an everyday base or will I be surpassing usage limits? Any other suggestions?
My laptop crashed after a routine download this week - long story short - I had to reinstall Python which gave me the chance to download the latest version: 3.7.2 So far so good but I've started getting errors when accessing endpoints on this site. The pertinent one (I think) is this:- urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1056)> I can run test codes to download API data from other sites but not chess.com. This is the cod I'm running:- import urllib.request, json url = 'https://api.chess.com/pub/match/885716' def response(url):____with urllib.request.urlopen(url) as response:________return response.read() res = response(url)print(json.loads(res)) .If for example I substitute 'https://hacker-news.firebaseio.com/v0/topstories.json?print=pretty' for the url, it works normally & other sites I've tried work fine too but not this one. I've spent hours searching online for a solution but without success. If possible I'd like to continue using the Python urllib.request module.
stephen_33 Jan 20, 2019
Hello chess friends a crazy glitch happend to me in live blitz I moved my bishop up four squares then around four moves later when it wasn’t even my turn my bishop automatically moved back to it’s old position and caused a checkmate for the other player.
destroyer8470_Inactive Jan 19, 2019
Is it possible to open the chess.com app from another app with a fen position and be right on the analysis board? Something like lichess has here: https://github.com/veloce/lichobile/blob/8e634377a8f2463d9363c45835dad06d70c2ce03/deepLinkTest.html
I believe the the colon & close parentheses combination are causing an issue for API. Web site profile page is OK even though I can't show it properly here as it automatically displays a smiley. https://www.chess.com/member/jg https://api.chess.com/pub/player/jg:)
tanonel10 Jan 3, 2019
This user exists. Web page is OK. API link returns correct data. https://api.chess.com/pub/player/jimbo2019 Clubs link returns error message https://api.chess.com/pub/player/jimbo2019/clubs {"message":"User \"jimbo2019\" not found.","code":0}
Hey, I'm looking to do something to notify myself when there's something to do on chess.com. When another user sends a challenge, is there a way to detect that currently using the API? Thanks