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

×
avatar
mrkgnao: Yes. This is the non-redirected link. A redirected link would look something like:
https://www.gog.com/downloads/80_days/en1installer0

How to enable redirection depends on the language you are using. I don't know NodeJS.

I googled "nodejs get redirect url" and found a couple of links that might be relevant:
https://www.tutorialspoint.com/redirecting-requests-in-node-js
https://www.tutorialkart.com/nodejs/node-js-redirect-url/
https://stackoverflow.com/questions/16687618/how-do-i-get-the-redirected-url-from-the-nodejs-request-module

Hope this helps.
Yep, I searched a bit before you sent so I think I get it now. Thanks a lot!

If anything good comes out of it I will share with the community ;)
Is there any API function to query if a game is part of a game collection?

Example:
When I look up Hitman I would like to get IOI Collection (and maybe other collections?) as the result.
avatar
eiii: Is there any API function to query if a game is part of a game collection?

Example:
When I look up Hitman I would like to get IOI Collection (and maybe other collections?) as the result.
open:
- https://api.gog.com/v2/games/1207658996 (Hitman)
then look for:
- isIncludedInGames:
and find:
- "https://api.gog.com/v2/games/1608424141?locale=en-US" (IOI Collection)
but you also find:
- "https://api.gog.com/v2/games/1207665493?locale=en-US" (Ultra Pack Deluxe Turbo HD Remix vol.2, a weird 715-game bundle)

P.S. The same information can be found on gogdb under the "References" tab.
Post edited April 24, 2021 by mrkgnao
avatar
mrkgnao: open:
- https://api.gog.com/v2/games/1207658996 (Hitman)
then look for:
- isIncludedInGames:
and find:
- "https://api.gog.com/v2/games/1608424141?locale=en-US" (IOI Collection)
Thank you! That looks like the info I want. Now I only have to grab the game ID from the store page. Or is there also an API function which maps the game name from the store URL ("hitman") to the game ID?

avatar
mrkgnao: but you also find:
- "https://api.gog.com/v2/games/1207665493?locale=en-US" (Ultra Pack Deluxe Turbo HD Remix vol.2, a weird 715-game bundle)
Interesting game collection. GOG's data are always fun to explore. :D
At least that record can be filtered out easily as it has no store URL.
avatar
mrkgnao: open:
- https://api.gog.com/v2/games/1207658996 (Hitman)
then look for:
- isIncludedInGames:
and find:
- "https://api.gog.com/v2/games/1608424141?locale=en-US" (IOI Collection)
avatar
eiii: Thank you! That looks like the info I want. Now I only have to grab the game ID from the store page. Or is there also an API function which maps the game name from the store URL ("hitman") to the game ID?

avatar
mrkgnao: but you also find:
- "https://api.gog.com/v2/games/1207665493?locale=en-US" (Ultra Pack Deluxe Turbo HD Remix vol.2, a weird 715-game bundle)
avatar
eiii: Interesting game collection. GOG's data are always fun to explore. :D
At least that record can be filtered out easily as it has no store URL.
I don't know of any name-to-id API. You can get it from the game page, but assuming you want it for more than one game, it's more efficient to get it from the catalogue (you get 48 ids with one query, rather than just one).
Is there an API endpoint which provides a list of companies (developers + publishers) in the catalog? The old catalog's source code contained the list. It is possible to generate the list if one iterates over the .json for all catalog pages but I am actually looking for companies which have been added but no listed game yet.
avatar
The-Business: Is there an API endpoint which provides a list of companies (developers + publishers) in the catalog?
Perhaps Yepoleb may have further insights, but AFAIK Galaxy does not need developer/publisher information outside of listing game entries, therefore there are no such API endpoints. I am guessing GOG may also be trying to "plug a hole" with the new search page by eliminating the drop-down filter responsible for it.

P.S.: I've looked into the new catalog page here, but there's no explicit replacement for gogData.
Post edited January 25, 2022 by WinterSnowfall
Anybody else is noticing that validation .xml files are more miss than hit recently?

Context: I have my service/app that downloads all of GOG.com data (http://github.com/arelate/vangogh) and have been using the following simple rule to download validation files: for binary files, add .xml to the resolved URL.

It seems that recently GOG has moved to a new CDN provider as URLs resolve to https://gog-cdn-lumen.secure2.footprint.net/... and adding .xml works for some, but seems to be weirdly missing for recent updates. Server returns 200 OK and the response is just empty - I don't have good idea how to handle this generically.

I sync my data almost every day and it seems like this problem just started to occur with updates (perhaps .xml are no longer generated?).

Some examples of missing xml:
- dlc_northgard___lyngbakr__clan_of_the_kraken_enUS_2_7_5_24893_53701.pkg.xml
- dlc_northgard___sv_fnir__clan_of_the_snake_enUS_2_7_5_24893_53701.pkg.xml
- dlc_northgard___svardilfari__clan_of_the_horse_enUS_2_7_5_24893_53701.pkg.xml
- fault___milestone_two_side_above_enUS_gog_1_20919.pkg.xml
- northgard_enUS_2_7_5_24893_53701.pkg.xml
- setup_simpleplanes_1.12.123.0_(32bit)_(53567).exe.xml
- setup_strangeland_2.5_(52449)-1.bin.xml
- setup_strangeland_2.5_(52449).exe.xml
- simpleplanes_enUS_1_12_123_0_53567.pkg.xml
avatar
boggydigital: Anybody else is noticing that validation .xml files are more miss than hit recently?

Context: I have my service/app that downloads all of GOG.com data (http://github.com/arelate/vangogh) and have been using the following simple rule to download validation files: for binary files, add .xml to the resolved URL.

It seems that recently GOG has moved to a new CDN provider as URLs resolve to https://gog-cdn-lumen.secure2.footprint.net/... and adding .xml works for some, but seems to be weirdly missing for recent updates. Server returns 200 OK and the response is just empty - I don't have good idea how to handle this generically.

I sync my data almost every day and it seems like this problem just started to occur with updates (perhaps .xml are no longer generated?).

Some examples of missing xml:
- dlc_northgard___lyngbakr__clan_of_the_kraken_enUS_2_7_5_24893_53701.pkg.xml
- dlc_northgard___sv_fnir__clan_of_the_snake_enUS_2_7_5_24893_53701.pkg.xml
- dlc_northgard___svardilfari__clan_of_the_horse_enUS_2_7_5_24893_53701.pkg.xml
- fault___milestone_two_side_above_enUS_gog_1_20919.pkg.xml
- northgard_enUS_2_7_5_24893_53701.pkg.xml
- setup_simpleplanes_1.12.123.0_(32bit)_(53567).exe.xml
- setup_strangeland_2.5_(52449)-1.bin.xml
- setup_strangeland_2.5_(52449).exe.xml
- simpleplanes_enUS_1_12_123_0_53567.pkg.xml
I noticed the same. I also have issues with "Longest Road on Earth" and "Forgotten Fields".

Someone hinted that this problem occured in the past and it might be transient.
avatar
boggydigital: ...
avatar
Magnitus: I noticed the same. I also have issues with "Longest Road on Earth" and "Forgotten Fields".
Someone hinted that this problem occured in the past and it might be transient.
Interesting! I don't have "LRoE", and at the moment "Forgotten Fields" xml files downloads fine for English, Windows and macOS installers, the ones I've listed above still product an error. I'll keep an eye on that issue and it's good to know it might be transient, thank you.
avatar
WinterSnowfall:
Thanks for posting the list of all tags. Is there an API function to request this list? Or have you just collected the tags from the list of all games?
avatar
eiii: Thanks for posting the list of all tags. Is there an API function to request this list? Or have you just collected the tags from the list of all games?
You're welcome. The second option :), although there might be a way to scrape them off of the game catalog page I guess (haven't really looked into that)?

https://api.gog.com/v2/games/product_id?locale=en-US usually returns a "properties" field for game ids, which contains the list of tags linked to that entry. Some actually don't have it at all, but I've compiled the list by sorting a list of unique values collected from all the game IDs which are currently public.
Post edited April 20, 2022 by WinterSnowfall
avatar
WinterSnowfall: ...
It does seem like store pages are created from the data provided by https://api.gog.com/v2/games/product_id?locale=en-US endpoint as most of things visible on those pages can be mapped to that API.

With that said I've noticed that few pages use data, that I couldn't trace back to any known API. Context - I've created a backend + frontend to get and display GOG data locally and as part of that was extracting https://items.gog.com/... links from the game descriptions. It goes smooth for 6000+ current products with few exceptions, namely:

1928341659 Shardpunk: Verminfall
1295420179 BEAUTIFUL DESOLATION

I've captured some differences in https://github.com/arelate/vangogh_cli_api/blob/main/cli/get-items-bugs.md - if anybody knows where the new data is coming from, please share :-)
avatar
boggydigital: It does seem like store pages are created from the data provided by https://api.gog.com/v2/games/product_id?locale=en-US endpoint as most of things visible on those pages can be mapped to that API.
Indeed, product pages call this endpoint to retrieve data, you are correct.

avatar
boggydigital: if anybody knows where the new data is coming from, please share :-)
I haven't really looked into those things as they don't really interest me, but if past experience has taught me anything it's that if you have new data and you don't know where it's coming from, Galaxy is the likely source :P.
Post edited April 21, 2022 by WinterSnowfall
I'm far from a competent programmer, but I'm trying my hand at some crawling. Does anyone know how to convert the globalReleaseDate to a human-readable form? I can't figure out the conversion. It doesn't seem to be an offset, so I just don't know, and there's nothing I can find in a pretty extensive search. Thanks!