It seems that you're using an outdated browser. Some things may not work as they should (or don't work at all).
We suggest you upgrade newer and better browser like: Chrome, Firefox, Internet Explorer or Opera

×
It is possible to download my purchase history (with title, date, amount....) as csv, xml, json or similar? I saw in html code of the purchase list a JavaScript variable "var gogData". It contains all I need, but this dictionairy seems not complete...

https://www.gog.com/account/settings/orders

Thanks!
Post edited November 11, 2016 by Lebostein
high rated
avatar
Lebostein: It is possible to download my purchase history (with title, date, amount....) as csv, xml, json or similar? I saw in html code of the purchase list a JavaScript variable "var gogData". It contains all I need, but this dictionairy seems not complete...

https://www.gog.com/account/settings/orders

Thanks!
You can get JSON like that:
https://www.gog.com/account/settings/orders/data?canceled=1&completed=1&in_progress=1&not_redeemed=1&page=1&pending=1&redeemed=1

In the response you'll see totalPages value, and you can get next page changing "page=1" to "page=2"

https://www.gog.com/account/settings/orders/data?canceled=1&completed=1&in_progress=1&not_redeemed=1&page=2&pending=1&redeemed=1

You can change other filters to "0" if you want.
avatar
Lebostein: It is possible...
If by chance you get a script going would you be willing to share?
avatar
Johny.: You can get JSON like that:
@ Johny: Very great!! That would help. Thanks!!!
avatar
Starkrun: If by chance you get a script going would you be willing to share?
I am on a little python script. I post it if i am finished....
Post edited November 11, 2016 by Lebostein
avatar
Lebostein: I am on a little python script. I post it if i am finished....
already rocking Python for gogrepo.py ^_^
avatar
Lebostein: I am on a little python script. I post it if i am finished....
avatar
Starkrun: already rocking Python for gogrepo.py ^_^
Interesting! Thanks


@Johny: Is there a same way to get the library informations?
avatar
Starkrun: already rocking Python for gogrepo.py ^_^
avatar
Lebostein: Interesting! Thanks

@Johny: Is there a same way to get the library informations?
There is, can't remember off the top of my head but if you have the console open in the network tab on your library page and change pages or filters you should see the url come up.
On my laptop now, here's the url for the library:

ttps://www.gog.com/account/getFilteredProducts?hiddenFlag=0&mediaType=1&page=2&sortBy=tags&tot alPages=2

You can change the various variables (that one gets it sorted by tags, which is my default sort order)
avatar
Starkrun: already rocking Python for gogrepo.py ^_^
avatar
Lebostein: Interesting! Thanks

@Johny: Is there a same way to get the library informations?
Exactly as Adalia said above.

https://www.gog.com/account/getFilteredProducts?hiddenFlag=0&mediaType=1&page=1&sortBy=date_purchased

There is a total pages value inside. If you remove hiddenFlag parameter at all - it will show both hidden and not-hidden games.

edit: ninja'd ;)
Post edited November 11, 2016 by Johny.
Thanks!

Other question: Why the titles of the games are not consistent? In library game titles are in german (if localized), and in purchase history list all game titles are in english!
Post edited November 12, 2016 by Lebostein