Can I download PGN with score and clock using API?

Sort:
cezarywagner

I want to download games with scores and clocks to check if I play with cheater or not after or for other analysis.

I know how to download game/games and so on but I do not know how to get scores.

I already done this here:
https://github.com/ChameleonRed/cw_download_chess_com_games

I do not see topic to talk this so I asked here ... maybe it is wrong no idea.

justbefair

There is a club for people who use the API.

https://www.chess.com/club/chess-com-developer-community

cezarywagner
justbefair wrote:

There is a club for people who use the API.

https://www.chess.com/club/chess-com-developer-community

Do you think that is official support for API or it is unofficial research?

On lichess.org everything is clear and public.

Martin_Stahl
cezarywagner wrote:
justbefair wrote:

There is a club for people who use the API.

https://www.chess.com/club/chess-com-developer-community

Do you think that is official support for API or it is unofficial research?

On lichess.org everything is clear and public.

 

You can use the API to gather data that's listed as available through the API. From what I can tell, timestamps are not available through that way.

cezarywagner
Martin_Stahl wrote:
cezarywagner wrote:
justbefair wrote:

There is a club for people who use the API.

https://www.chess.com/club/chess-com-developer-community

Do you think that is official support for API or it is unofficial research?

On lichess.org everything is clear and public.

 

You can use the API to gather data that's listed as available through the API. From what I can tell, timestamps are not available through that way.

You are wrong clock is available happy.png
Problem is how to get scores?

cezarywagner

Check this if you want to download all with clocks:

https://github.com/ChameleonRed/cw_download_chess_com_games

Martin_Stahl
cezarywagner wrote:

You are wrong clock is available
Problem is how to get scores?

 

Ah, I was looking at one of the sample API links and apparently it didn't have any timestamps.

 

As to your question, what scores? The results are in the PGNs.

cezarywagner
Martin_Stahl wrote:
cezarywagner wrote:

You are wrong clock is available
Problem is how to get scores?

 

Ah, I was looking at one of the sample API links and apparently it didn't have any timestamps.

 

As to your question, what scores? The results are in the PGNs.

Clocks are everywhere -> https://api.chess.com/pub/player/cezarywagner/games/2022/10
1. d4 {[%clk 0:05:05]} 1... Nf6 {[%clk 0:05:01.7]}

Score is engine evaluations - for example on lichess.org it is:
1. g3 { [%eval 0.13] [%clk 0:10:00] }
1... Nf6 { [%eval 0.4] [%clk 0:10:00] } { A00 Hungarian Opening: Indian Defense }

On chess.com is chart with it but I can not found this in API or it is not documented:
https://imgur.com/W8jMjO9

Scores are at bottom when charts is enable.


Martin_Stahl

You can't get evals from the API and there isn't an API that includes game review data.