Incidentally, is that just me or is the traditional method for downloading your own games at https://www.chess.com/games/archive - currently broken? The download button gets enabled when I press checkbox, but then fails to do anything when I press it. I tried two browsers, same result. It worked two weeks ago.
How to download all games played from chess.com with times (not one page of games)
Incidentally, is that just me or is the traditional method for downloading your own games at https://www.chess.com/games/archive - currently broken? The download button gets enabled when I press checkbox, but then fails to do anything when I press it. I tried two browsers, same result. It worked two weeks ago.
There have been some bug reports entered and staff are aware.
Incidentally, is that just me or is the traditional method for downloading your own games at https://www.chess.com/games/archive - currently broken? The download button gets enabled when I press checkbox, but then fails to do anything when I press it. I tried two browsers, same result. It worked two weeks ago.
There have been some bug reports entered and staff are aware.
Thanks, Martin, is there another thread or link to follow about updates on this?
Is there any tool to do it?
I can use archive but it allow download only one page of games (or I do not know how to do it)?
I learned that there some api so maybe someone write some application to do it.
Your advice or hint are welcome.
To download all your games with timestamps from chess.com, navigate to your game archive, select the desired games (or all games on a page), and then download them as a PGN file. For including timestamps, ensure the clock icon is checked during the download process, according to Chess.com's support page.
Here's a more detailed breakdown:
1. Go to your Game Archive:
Access your completed games archive on chess.com.
2. Select Games:
Choose the specific games you want to download. You can select individual games or use the "Select All" option to download all games on a page.
3. Download PGN:
Click the "Download PGN" button. If you want timestamps, make sure the clock icon is checked before downloading, says Chess.com's support page.
4. Consider API for bulk downloads:
If you have a large number of games, consider using the Chess.com Public API for monthly downloads.
The public API doesn't seem to be working well lately.
```
$ curl -s https://api.chess.com/pub/player/cheemsburger9000/games/2024/01/pgn -v
...
* HTTP/2 stream 1 was not closed cleanly: INTERNAL_ERROR (err 2)
* Connection #0 to host api.chess.com left intact
```
This leads to the output pgn being cut off
I know it's not my connection because I've tested this from my VPS as well, which is in another country. I've just been retrying every two minutes and sometimes it works, but it takes a long while, and I feel bad for spamming chess.com
Chess.com can experience connection issues due to high traffic, particularly during peak hours, and while they are actively working to improve server stability, the issue can stem from various factors beyond your local connection, including issues with internet service providers or the routing between your location and their servers.
You can somehow automate with this:
One file per year: `for Y in {2018..2025}; do for m in {1..12}; do wget https://api.chess.com/pub/player/<USER>/games/$Y/$m/pgn -O- >> $Y.pgn ; done ; done`
One file: `for Y in {2018..2025}; do for m in {1..12}; do wget https://api.chess.com/pub/player/<USER>/games/$Y/$m/pgn -O- >> ; done ; done`
You can somehow automate with this:
One file per year: `for Y in {2018..2025}; do for m in {1..12}; do wget https://api.chess.com/pub/player/<USER>/games/$Y/$m/pgn -O- >> $Y.pgn ; done ; done`
One file: `for Y in {2018..2025}; do for m in {1..12}; do wget https://api.chess.com/pub/player/<USER>/games/$Y/$m/pgn -O- >> ; done ; done`
{"code":0,"message":"Data provider not found for key \"/pub/player\"."}
The public API doesn't seem to be working well lately.
```
$ curl -s https://api.chess.com/pub/player/cheemsburger9000/games/2024/01/pgn -v
...
* HTTP/2 stream 1 was not closed cleanly: INTERNAL_ERROR (err 2)
* Connection #0 to host api.chess.com left intact
```
This leads to the output pgn being cut off
I know it's not my connection because I've tested this from my VPS as well, which is in another country. I've just been retrying every two minutes and sometimes it works, but it takes a long while, and I feel bad for spamming chess.com
{"status":"error","message":"Resource not found.","code":9,"more_info":"https:\/\/api.chess.com\/codes#9"}
Another option is to use this link to get all your games by month in pgn format. It only took a small amount of time to download and import into Chessbase for me.
https://api.chess.com/pub/player/hikaru/games/2022/12/pgn
Excellent.. Thank you