API to submit PGN for game review

Sort:
chesslover0003

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.

chesslover0003

As a start, I'd like to get this information in response to a PGN I submit. It could allow me to create an app that tracks accuracy over time (or perhaps even by opening).

Next, I'd like to get a PGN returned with annotation symbols for each move. Possibly some annotation that includes best moves (when there is an inaccuracy, mistake or blunder).

The coaches end-game comments are also useful.

I also find the game classification useful so I can track results based on this. For example, which openings or defenses am I strongest with? Which ones do I need more practice with?

Martin_Stahl

If that's something being thought about, it would be part of the Interactive API and not the Public API which is read only data available to non-autheticated viewers.

chesslover0003

@Martin_Stahl Yes, it makes sense you would need to be authenticated since you need to have a membership to do game reviews.

Omed

Well it could work if the user has already game reviewed his/her game on chess.com (only for game accuracy). Though you cant send the png to chess.com to get analyzed.

krasibiel

You could probably do it with requests in python where you set your sessionid and then go to the page where your game is analysed. However, this might not work as game review normally takes some time so you would have to figure that out.

chesslover0003

The use case I'm thinking about is a chess gui that would send a game to chess.com for review. The game wouldn't be played on chess.com, however, the user would need to authenticate to submit the game to be reviewed. I can do this manually via the website. It would be nice to do this programmatically. I expect the chess.com mobile app uses such an API.

tanjunior

what

stamp53

@krasibiel can u give me deatiled instructions please. im new to programming but very intrested in learning

ShadowDeveloper
chesslover0003 wrote:

The use case I'm thinking about is a chess gui that would send a game to chess.com for review. The game wouldn't be played on chess.com, however, the user would need to authenticate to submit the game to be reviewed. I can do this manually via the website. It would be nice to do this programmatically. I expect the chess.com mobile app uses such an API.

chess.com is likely to add this feature in the future as a separate subscription instead of as a part of the Interactive API. chess.com really loves its proprietary software (Komodo/Dragon and Torch engines for one) and I doubt that such advanced AI would be given to us plebians. It would be nice tho.

ShadowDeveloper
stamp53 wrote:

@krasibiel can u give me deatiled instructions please. im new to programming but very intrested in learning

Look up a requests tutorial. I would also suggest that you start with something less complex than API calls if you are a beginner. Just my opinion, feel free to do whatever you want.

chesslover0003

If there was an API to submit a PGN for review, it could allow developers to build game review features into apps. Of course, this would require the user to also have a chess.com subscription. IMO, it could help increase sales of chess.com subscriptions. I'm not holding my breath for this capability.

ShadowDeveloper
chesslover0003 wrote:

If there was an API to submit a PGN for review, it could allow developers to build game review features into apps. Of course, this would require the user to also have a chess.com subscription. IMO, it could help increase sales of chess.com subscriptions. I'm not holding my breath for this capability.

I'm not either lol