Hi there! I want to ask to add to Chess.com API two endpoints: 1) Live matches endpoint (we need it very much because of LCWL tournament taking part now on chess.com and for other future tournaments). 2) Live tournaments endpoint. Thank you!
Hi All, I am trying to build a python program that analyses your chess.com games, part of which is the difference between the best possible move and the ones you made. My issue is that the python-chess library evaluates the position and returns a PovScore object I am unable to cast to an integer for comparison. I also can't directly subtract one PovScore from another. Just wondering if anyone has tried to do something similar or has more experience with python chess engine.analyse()
stephen_33 Nov 6, 2019
I have come across two instances of specification not in line with actual endpoints. Items in Red not documented. 1. https://api.chess.com/pub/player/{username}/clubs Spec :- { "clubs": [ { "url": "https://api.chess.com/pub/club/test", "joined": 1305310668, "last_activity": 1305310668 } ] }Example of actual data returned{"@id":"https://www.chess.com/club/team-england","name":"Team England","last_activity":1564491194,"icon":"https://images.chesscomfiles.com/uploads/v1/group/4329.0671b524.50x50o.901d1c243243.jpeg","url":"https://www.chess.com/club/team-england","joined":1229035911}2. https://api.chess.com/pub/player/{username}/statsEnd point returns "fide":nnnn,Not in documentation.
andreamorandini Oct 31, 2019
Today we played a tournament and I tried to retrieve the information via API: https://api.chess.com/pub/tournament/iacf-rapid-swiss-1114665/. Registered user count = 52, but the endpoint returns only the first page of users (the first 25 users). Is it a bug or there is a way to retrieve the next pages?
andreamorandini Oct 28, 2019
Different result from web page and API in member club end point. https://www.chess.com/clubs/home/gutsygecko Shows membership of two clubs https://api.chess.com/pub/player/gutsygecko/clubs Returns {"message":"User \"gutsygecko\" not found.","code":0}
Hey guys, I recently made a spreadsheet for my club that plays alot of daily chess. I have previously used importJSON on google sheets to constantly update people's bullet ratings on a sheet, but is it possible to have a constantly updating match score of a Team Match? I can't find it under https://api.chess.com/pub/match/1034696 (https://www.chess.com/news/view/published-data-api#pubapi-endpoint-match-profile). Any help? Thanks
stephen_33 Oct 20, 2019
Hi, as far i understood an API to do something like: login play move seek game accept invites etc, is "on the way" => i only see a public api as readonly. If thats so, how can "square off" (this chess board) providing this functionality right now?
Niedowidek Oct 16, 2019
Hi all, Excuse my ignorance, a relative newbie... I've written a few functions to extract game archive data and am encountering a 524 error when trying to extract game PGN information... Anyone able to give some pointers to get around this? Thanks in advance.
andreamorandini Sep 24, 2019
that wou,d be nice instead of having to navigate through a bajillion of them u could just skip to the one u want
NathanMa17 Sep 17, 2019
Puzzle battle has recently been released and I think it is really fun. However, it seems impossible to challenge friends (via a challenge link). I think this would be a really cool feature and not too hard to implement. What do you guys think?
DoctorTimofey Sep 16, 2019
Hi guys! I recently switched from an iOS device to an Android one and I noticed the difference in the premoves. Mainly, on iOS I could capture a piece with a premove and generally select any premove even not possible by chess rules which is very convenient and I can't do it on Android. Could you make an update encorporating more premoves available? Thanks!
ImperfectAge Sep 4, 2019
I’m sure a lot of you have already been solving this challenge. What’s the best way to assign a name (of a member or of a club) to an immutable identifier of any kind? I mean, club names may change and members can change their names too. If I cache some data (e.g. how many team matches a member has tried to sign up for) and then a name gets changed, how easily find out that I already have some data cached for that name? In theory, a good sollution would be to convert the current name of a member (or club) to an integer, which doesn’t need to hold any meaning, just be unique and immutable (hence the title of the thread). Some sort of a primary key candidate. Members register to Chess.com sequentially (and clubs are created in sequential order too), so the number in the registration order would be a candidate, if it’s accessible somehow. So, what’s currently the best way to do this?
Hi there! Recently i've noticed, that in the endpoint https://api.chess.com/pub/player/mxgolota/stats number of attempts in puzzle rush isnt updated for all players. For example on my page i see, that i made 316 attempts. And api returns 35 as number of attempts.
youhadyourchance Aug 20, 2019
Hello, I want to report this case where you can change the Score of a finished Match by recalculating it through the "Admin Tools > Sync Scores" In this match GFL 2019 R1: Juventus F.C. vs Boca Juniors when it was in course, the player Racine2806 was banned and the two games that he won, once the match finished, was assigned to the player ADeGa. After that, the match result was Juventus 8.5 vs Boca 9.5. After doing a Sync Scores the score changed assigning the points to Racine2806 without considering that he was banned while the match was in course. I think that when the match finishes if you make an adjustment to the score contemplating banning in the games after do a Sync Scores you have to keep that criteria to recalculate the match. I hope some admin can give more clarity on the subject. Thanks.
stephen_33 Aug 13, 2019
I think we should to recomend to developers of chesscom make option to creating subclubs inside main club.
tortoises3 Aug 9, 2019
Any chance of adding the following two items to the stats end point? https://api.chess.com/pub/player/{username}/stats 1. Include the FIDE or national rating if on web page 2. Include Average with Puzzle Rush stats. Thanks
Tricky_Dicky Jul 27, 2019
https://api.chess.com/pub/player/ElenaStamataki Web page shows location as "England" https://www.chess.com/member/ElenaStamataki API end point does not include "location" data
Tricky_Dicky Jul 26, 2019
under the endpoint https://api.chess.com/pub/player/hikaru/games/2019/07 there is an `end_time` but no `start_time` property(daily games seems to have it, but not bullet/blitz, haven't checked rapid). also could the `result` be removed from the `white` and `black` properties, and just be added to the main properties of the game. I feel like from an OOP approach, the game should have a result, players of the game shouldn't have the result(this would make it tons easier to query from a LINQ perspective) under the endpoint https://api.chess.com/pub/player/hikaru/stats puzzle_rush:best:total_attempts <--> appears to be incorrect total_attempts
CalculatedBlunder Jul 19, 2019
Are there plans to support the access to https://www.chess.com/tactics ? It would be great if we could search by tag, rating, etc. and get some json with the position and correct moves. My idea is to have an app were you can create a custom set of tactics to resolve multiple times.
ChessCoach Jul 16, 2019
Hi Everyone, I'm very new to chess.com but quite addicted already and was stoked to discover this API !! Only just found it a few hours ago but knocked up a little Powershell (my preferred language) and thought I'd share (since nobody else I know "in real life" will appreciate it)... Clear-Host $myUser = Read-Host "Your chess.com username" $opponent = Read-Host "Opponent's username (leave blank for all opponents)" if (!$opponent) { $opponent = ".*"} $myArchives = Invoke-WebRequest -Uri https://api.chess.com/pub/player/$myUser/games/archives | ConvertFrom-Json $games = @() foreach ($archive in $myArchives.archives) { $games += Invoke-WebRequest -Uri $archive | select -ExpandProperty content | ConvertFrom-Json } $results = $games.games | select white,black $whiteWins = 0 $whiteLosses = 0 $whiteDraws = 0 $whiteAbandons = 0 $blackWins = 0 $blackLosses = 0 $blackDraws = 0 $blackAbandons = 0 foreach ($row in $results) { if (($row | select -ExpandProperty white | select -ExpandProperty username) -eq $myUser ` -and ($row | select -ExpandProperty black | select -ExpandProperty username) -match $opponent) { switch (($row | select -ExpandProperty white | select -ExpandProperty result)) { "win" { $whiteWins += 1} "checkmated" { $whiteLosses += 1} "resigned" { $whiteLosses += 1} "agreed" { $whiteDraws += 1} "abandoned" { $whiteAbandons += 1} "timeout" { $whiteLosses += 1} } } if (($row | select -ExpandProperty black | select -ExpandProperty username) -eq $myUser ` -and ($row | select -ExpandProperty white | select -ExpandProperty username) -match $opponent) { switch (($row | select -ExpandProperty black | select -ExpandProperty result)) { "win" { $blackWins += 1} "checkmated" { $blackLosses += 1} "resigned" { $blackLosses += 1} "agreed" { $blackDraws += 1} "abandoned" { $blackAbandons += 1} } } } Write-Host "`n$myUser playing as White... Wins: $whiteWins Losses: $whiteLosses Draws: $whiteDraws Abandoned: $whiteAbandons" Write-Host "`n$myUser playing as Black... Wins: $blackWins Losses: $blackLosses Draws: $blackDraws Abandoned: $blackAbandons" Write-Host "`n$myUser Totals... Wins: $($blackWins + $whiteWins) Losses: $($blackLosses + $whiteLosses) Draws: $($blackDraws + $whiteDraws) Abandoned: $($blackAbandons + $whiteAbandons)"