Hello everyone, Apologies if this has been asked before, but I'm having trouble with accessing the player lists of some countries like the US and UK, and I'm assuming that's due to the size of those lists. Does anyone have any ideas about the cause of the problem and solutions or workarounds? Thanks!
Hello,thank you for the great API.I am wondering if there is possible to query only one game based on the chess.com id. Is it a possibility to do https://api.chess.com/pub/game/292659724?Thank you in advance.
Avatar of elmsakni
elmsakni Jan 7, 2021
Is it possible to add new timestamp "end_time" in this api: https://api.chess.com/pub/club/team-usa-southwest/matches I didn't find it else where...
Avatar of multivac
multivac Jan 5, 2021
I want to make a Python program that makes a graph for members per day using this API: https://api.chess.com/pub/club/the-golden-64-squares/members. How can I do this?
Avatar of RAD_Financials
RAD_Financials Jan 3, 2021
Hi, maybe I can't find the correct endpoint, but I want to get information about the current game a player is playing (not in a tournament). So, for example, if someone is playing 10min rated, that I can get information on which color he is, duration etc. Is there an endpoint for this?
Avatar of APISTOTELHS
APISTOTELHS Dec 29, 2020
End point https://api.chess.com/pub/match/live{ID} Missing spec for maximum and minimum rating setting in match. (Should max_team_players also be included?) "settings":{ "rules":"chess", "time_class":"standard", "time_control":600, "time_increment":2, "min_team_players":1, "min_required_games":0, "autostart":false
Avatar of Tricky_Dicky
Tricky_Dicky Dec 28, 2020
Hi there! I have coded a discord bot just for fun using the chess web API. I have used node JS and Typescript. The most important NPM libraries I have used are discordjs and chess-web-api. You can get a player profile or the stats from a player by inserting a few commands. I have parsed the response so it looks beauty. Player profile: Player stats: The library chess-web-api has no types so I have create the interfaces for the responses. The possibilities are huge, if anyone have any idea please share! Responses are in spanish, sorry for that. Github repo: https://github.com/pablomendezroyo/chess-bot
Avatar of Tanjirou0
Tanjirou0 Dec 25, 2020
Howdy, Does anyone have a example of using R language with the API? TIA, David
Avatar of davidjayjackson
davidjayjackson Dec 18, 2020
Hey everyone, I made https://howmanymasters.com to see how many titled players you've beaten. Check it out!
I've been trying to download the match archive for this club ... https://www.chess.com/club/chess-school ..but I keep getting an HTTP 500 error. Although the club has a history of playing matches, it seems the endpoint isn't available? At least that's what I'm seeing when I enter the URL into the address bar of my browser... https://api.chess.com/pub/club/chess-school/matches I receive back... {"status":"error","message":"Internal Server Error"}
I noticed that some of my pgn downloads from the past week are missing some fields compared to my pgns from a couple months ago. Some of the missing fields are CurrentPosition, Timezone ,ECO, ECOUrl, UTCDate, UTCTime "23:04:15". I'm particularly interested in having the ECO code. I'm getting these pgns from selecting from my daily games and clicking on the download button. Does anyone know if there are plans to restore these fields, and if not is there some other way I can get this data? Thanks.
Avatar of Tricky_Dicky
Tricky_Dicky Dec 16, 2020
Hello, a very helpful and friendly member named @APISTOTELHS recently helped us figure out a script, to be entered in the Firefox Console, which returns all usernames in a club. var request = new XMLHttpRequest();request.open('GET','https://api.chess.com/pub/club/the-chess-elite/members',false);request.send();var response = JSON.parse(request.responseText);var list = '';for(type in response)for(member of response[type])list += member.username + '\r\n';console.log(list); We are now facing a new problem, and require a minor modification to the previous code. What we would like to achieve: Extract all usernames, but from those who were "Most Recently Online" You can display only the members who were most recently online via this box: Here an example in full view, from this club: How could we do that with the script?
Avatar of stephen_33
stephen_33 Dec 13, 2020
I'm not sure how widely known it is that a club's Live team matches are now included at the end of the list of 'finished' matches in the club matches endpoint? You'd certainly be forgiven for missing this after reading the documentation:- Club Matches Description: List of daily and club matches, grouped by status (registered, in progress, finished).URL pattern: https://api.chess.com/pub/club/{ID}/matches { "finished": [ /** List of matches */ { "name": "match name", //the team match name "@id": "URL", // URL pointing to the team match endpoint "opponent": "https://api.chess-dev.com/pub/club/testing-teams", // URL pointing to the opponent club endpoint "result": "win", // see "Game results codes" section "start_time": 1305324926, // timestamp of the match start "time_class": "daily" } ], "in_progress": [ /** List of matches */ I completely missed what was meant by 'List of daily and club matches' & wasted some time trying to obtain useful Live match data by other means. And the "time_class" of "daily" gives the clear impression that only Daily matches are included. So could the documentation please be updated to reflect the fact that both Daily & Live matches are included within the 'finished' category?
Howdy! Is there a limit on the number of games I can analyze with the "Game Report" feature for the Gold, Platinum, and Diamond memberships?I know on the free account you get 1 Game report per day. So on premium ones is it like 100, 200, or unlimited per day?Thanks!
Avatar of stephen_33
stephen_33 Dec 13, 2020
Hello chess.com developer community! I'm currently in a training program for Big Data. For my first project, I'm hoping to write a simple application for reading and analyzing chess games. It looks like I can use chess.com to acquire this data which is obviously the first step, however, I'm not sure how to go about it. Tips for how to begin this process would be much appreciated! Essentially my application will just be reading in chess game data, and organizing that data into a database. It may do other things but that's the starting point at least. Thanks!
Avatar of stephen_33
stephen_33 Dec 11, 2020
This has two parts: Part A. There are some people who yes cheat but some people get there accounts randomly closed because they played 10-sec and they lost to many consecutive games. This could be improved by changing the computers code for picking it up. Part B. There has been a sudden increase also in hackers, trolls, and People Who Are Using Chess.com As A Platform for Evil. I would like it if chess.com could make a system that moderates all messages and chats. This way we could limit this. Also a system for detecting spamming and advertising too. Thank you. Xhive24
Avatar of Tricky_Dicky
Tricky_Dicky Dec 10, 2020
In 2 clubs, a member made a graph of members. He said he is using a chess.com API to do this. How can I do it too? I am very curious
Request For Comments: New country endpoints As an RFC, we are publishing our plans in the hope that you would provide constructive criticism to help us make it better before it is created. We plan to publish an RFC for each major collection of endpoints.   A common request is to be able to look up players in a country, and players which are active (see this forum thread). This Published-Data API provides only data that has been prepared before you ask for it, so it cannot provide custom searches. These new country endpoints attempt to supply the per-country and active-player lists requested in one data set that should be fast to download for most countries (we estimate that the largest data set, for the USA, would be about 2Mb; most would be a few Kb to download). This is not intended to replace the Player Stats, such as ratings, timeouts, etc., but only to support certain collection processes that you currently use.   /pub/country/{XX} Where "XX" is the 2-letter country code. The data response will be: "@id" of its own URL "code" is the 2-letter country code "name" is the English name Future additions to this country data may include translated names, flag URLs (same as we display on this site), and possibly other data. We do not intended this to be a Wikipedia entry! This is only for the purpose of allowing automated tools to recognize groups of players by self-stated nationality. The Player Profile data format will be updated so that the "country" field is a URL pointing to this endpoint.   /pub/country/{XX}/players Where "XX" is the 2-letter country code. The response is a simple array named "players", consisting of username-based PlayerProfile URLs of enabled users who have logged in over the past 7 days. Because this lists URLs, your client should be able to link to each player profile as needed to collect any required information. In the future, based on that URL you will be able to retrieve more player stats. This list can get large for certain countries with a lot of active players. As such we do not anticipate adding additional player data on this endpoint; you will need to request the relevant data from the Player Profile. You will need to filter the data yourself, to remove players you already have data for.   Both endpoints will update their data no more often than once per day. This is not useful for determining who is online.
Avatar of aliadoprimo
aliadoprimo Dec 6, 2020
Making the request `GET /player/:user/tournaments` only returns Swiss tournaments. Is there any request I can make to get hold of arena tournaments?
There are multiple swiss and arena types of tournaments but what could really set Chess.com different from all the rest of the chess websites out there is creating live knockout tournaments!!!
Avatar of Tricky_Dicky
Tricky_Dicky Dec 6, 2020