download all my games for a month

Sort:
Oldest
zsbostonma

When I put this command into a web browser

https://api.chess.com/pub/player/hikaru/games/2021/10

the raw json gets returned. How do I save it into a pgn file so i can open in a database program like chessbase?



    
  
Martin_Stahl
zsbostonma wrote:

When I put this command into a web browser

https://api.chess.com/pub/player/hikaru/games/2021/10

the raw json gets returned. How do I save it into a pgn file so i can open in a database program like chessbase?

 

You'll have to write a program to parse the data and output to a text PGN. Or find code someone else has released that has already done that.

 

AtaChess68
I don’t know what a ‘raw json’ is but I do use this link and import the pgn with Scid vs PC without a problem (using tools/import pgn). I am surprised that that doesn’t work in chessbase.
Martin_Stahl
AtaChess68 wrote:
I don’t know what a ‘raw json’ is but I do use this link and import the pgn with Scid vs PC without a problem (using tools/import pgn). I am surprised that that doesn’t work in chessbase.

 

JSON is a wrapper for other data. The export has a lot of other data and not plain PGNs.

zsbostonma

I figured it out, all you have to do is put the /pgn on the end and it will be converted to pgn. 

https://api.chess.com/pub/player/hikaru/games/2022/12/pgn

Forums
Forum Legend
Following
New Comments
Locked Topic
Pinned Topic