Premium User Specific Endpoints and Endpoints for Game Reviews and Evaluations?

Sort:
winstonpurkiss

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?

Martin_Stahl

That isn't something that is possible and also not something currently stored at all. Since Game Review data is limited by account status, even it the data was stored, it woudn't be available in the Public API

winstonpurkiss

Thanks for the response! I figured it wouldn't be part of the public api since premium evaluations are inherently private. But because private accounts can show the accuracy of an evaluated game on demand at least SOME of the review has to be stored for the user to quickly load the app. I was hoping that because that information has to be stored somewhere and we are required to go through the entire OAuth process to prove that we are acting on behalf of a private account, that there'd be some way to get to it.

Martin_Stahl

Currently, only the accuracy values are being stored. The data for the review is being regenerated each time when loading the game review page.

The site used to store the review but that was removed earlier in the year when the site was experiencing high loads. I believe that was done to minimize the database hits for loading reviews.

Martin_Stahl

Even if that was being stored, it seems like making it directly available would compete with Insights, which has that in the tactics sections.

schwifty42069
Martin_Stahl wrote:

Currently, only the accuracy values are being stored. The data for the review is being regenerated each time when loading the game review page.

The site used to store the review but that was removed earlier in the year when the site was experiencing high loads. I believe that was done to minimize the database hits for loading reviews.

I think it's cached somewhere for some duration because it generates the report immediately for me if I just recently reviewed a game. I couldn't even estimate the retention length because it's not something I've had any reason to look into, but I'm certain there is one.
This game for example was played 2 days ago and the review is generated immediately. 

Martin_Stahl

It's possible the results are cached locally for a member revisiting their previous review. Assuming you run your reviews at Maximum, when visiting the game I had to wait for the review to generate.

Unless something very recently changed, I know that the reviews haven't been stored for a while.

LateToMate

Once you have the games downloaded, it's fairly straightforward (though processor-intensive if there are a large number of games) to do the analysis you described locally. There are various chess annotation scripts out there that could serve as a starting point for your development, and this is one:

https://pypi.org/project/chess-annotator/

winstonpurkiss

Hey thank you! I may end up going down that route, I'm in the process of laying out my project and if I can't use chess.com's api to get useful game information then this may be my best option.