GET Endpoint for one game

Sort:
elmsakni

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. 

Tricky_Dicky

Unfortunately No!

You need to go through a players archives

https://api.chess.com/pub/player/erik/games/2020/12

or

https://api.chess.com/pub/player/lee/games/2020/12

Then find the game id in the resultant end point.

having got that you can extract the game details

 

Nevfy

@Tricky_Dicky is right. It is not possible to get info about the game, knowing only its ID. You can go through player's archive or, if the game is attributed to some team match, you can find it, knowing match's ID and number of the board.

elmsakni

thank you for the answer. do you know if chess.com is planning to implement such an endpoint? It is a lot of overhead for both servers (chess.com and my server), querying the complete games of a month and filtering them. 

Nevfy

As far as I understand, the answer in no. I saw the answer of API's developer, who said that it is designed to be player oriented (not game oriented). In fact, I thought it was in this topic, but probably it was in the other topic with about the same question.

elmsakni

thank you!