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

×
"api" returned 100 posts
Clear search criteria
avatar
Yepoleb: This seems really strange to me, because there must be a way to get the data or Galaxy wouldn't be able to download these games. Are you sure they're the right IDs?
Yes, I'm sure the above id is for Sudden Strike 3: Arms for Victory and I'm sure about the rest as well. Galaxy does not use the products API to download installers as far as I'm aware and trust me when I say it has a way of knowing what to download even in this case. Still, the product API gives you the most relevant information about a game entry, so the fact that it doesn't list anything for these games is unfortunate.

Here is the product entry for the pack: https://api.gog.com/products?ids=1875699572

To be honest, I haven't found the id for Sudden Strike: The Last Stand yet, but I'll keep looking. My bet is that it's also not listed in the products API.
Post edited September 12, 2017 by WinterSnowfall
And today we see the addition of a new attribute part of the product API json playload, namely "is_installable". Not sure what it does yet, but what I do know is that it broke my scripts, so please bear with us dear caller while we code this new field into our logic...

Edit: From what I'm seeing so far, it's set to true for ids that map to "game" or "dlc" as game_type and false for "pack" ids.
Post edited September 14, 2017 by WinterSnowfall
avatar
WinterSnowfall: And today we see the addition of a new attribute part of the product API json playload, namely "is_installable". Not sure what it does yet, but what I do know is that it broke my scripts, so please bear with us dear caller while we code this new field into our logic...

Edit: From what I'm seeing so far, it's set to true for ids that map to "game" or "dlc" as game_type and false for "pack" ids.
Interesting... I wonder why they would need that..
What about DLC like soundtracks or art books?
avatar
adaliabooks: What about DLC like soundtracks or art books?
I see your point... well, seems OSTs are very much installable :).

Here's an example:
https://api.gog.com/products/1076210813?expand=downloads,expanded_dlcs,description,screenshots,videos,related_products,changelog

P.S.: Oh, but it seems at least movies, which are ironically registered as a "game", are not installable.
Post edited September 14, 2017 by WinterSnowfall
avatar
WinterSnowfall: I see your point... well, seems OSTs are very much installable :).

Here's an example:
https://api.gog.com/products/1076210813?expand=downloads,expanded_dlcs,description,screenshots,videos,related_products,changelog
Well, that's the only case I could see it being useful for... otherwise it seems redundant and just doing the same thing as the game_type field..
avatar
WinterSnowfall: Galaxy does not use the products API to download installers
it definitely does.
or at least it did last time I checked
given that the two examples you found are the most recent( I think?) released game bundles, it might mean that they have changed the way they handle these game packs.

curios how Galaxy downloads the installer then ...
guess we need to wait until someone who owns these games sniffs things out :)
Just bought the game to investigate this. The ID is correct and I can't open it in Firefox. Galaxy definitely does use the products API and has no other way of knowing what to download, I checked this with mitmproxy. To get access you need to change the user agent in the HTTP header to something the server doesn't recognize. The responsive design mode in Firefox has a convenient option to test this.
This is what has worked for me reliably so far:

1. Set the user agent to something GOGGalaxyClient
2. Authorize the call using a token
3. Use the fully expanded URL with locale set to en-US:
https://api.gog.com/products/2134842136?expand=downloads,expanded_dlcs,description,screenshots,videos,related_products,changelog&locale=en-US

Once the product has been requested successfully, you can drop the expand query again and it will continue to work. After so many months of dealing with the GOG API, it still surprises me which incredible inconsistencies they manage to introduce. Seriously, WTF?
Post edited September 15, 2017 by Yepoleb
Found the product id for Sudden Strike 3: The Last Stand, and surely enough, as expected, the products API does not list anything for it under normal circumstances at least: https://api.gog.com/products?ids=1297948342

A sign that perhaps the GOGBear is locking down its APIs?
avatar
Yepoleb: This is what has worked for me reliably so far:

1. Set the user agent to something GOGGalaxyClient
2. Authorize the call using a token
3. Use the fully expanded URL with locale set to en-US:
https://api.gog.com/products/2134842136?expand=downloads,expanded_dlcs,description,screenshots,videos,related_products,changelog&locale=en-US
Have you tried to see if you can get access to an ID which you don't own? For example 1275264927 which is the ID for Humans 3: Evolution - Lost in Time. Let me know if that works for you.
high rated
Edit: Good news -> now most of these items are visible (listed by the API): see a couple of posts below

I'll start a list of "hidden" bundled game ids, since there seem to be quite a few around:

************** Hidden bundled products (not listed in the products API) ****************

* 1275264927-> Humans 3: Evolution - Lost in Time -> part of The Humans Bundle
* 1297948342 -> Sudden Strike 3 The Last Stand -> part of the Sudden Strike 3 bundle
* 2134842136 -> Sudden Strike 3: Arms for Victory -> part of the Sudden Strike 3 bundle
* 2083140130 -> Ken Follett's The Pillars of the Earth -> first book I assume, part of the Ken Follett’s The Pillars of the Earth - Season Pass bundle
* 1358826905 -> The Journey Down: Chapter One -> part of The Journey Down Trilogy
* 1391062119 -> Humans 2: The Jurassic Levels -> part of The Humans Bundle
* 1443986935 -> Sudden Strike 2 -> part of the Sudden Strike 2 Gold bundle

*****************************************************************************************

I'll keep this updated on a regular basis... I'm sure there are more to come.

Edit: Added Humans 2: The Jurassic Levels.
Edit: Added Sudden Strike 2.
Post edited June 19, 2018 by WinterSnowfall
Edit: For obvious reasons these IDs will always be hidden (unlisted in the API)

Found an entry for the "late" Gremlins Bundle. I'll start a new list here for retired games.

*********** Retired and hidden bundled products (not listed in the products API) **************

1451908972 -> Gremlins Inc. -> part of the now retired Gremlins Bundle
1726175185 -> Gremlins vs Automatons -> part of the now retired Gremlins Bundle

*************************************************************************************************
Post edited June 19, 2018 by WinterSnowfall
Some good news for this week - seems like GOG has now listed some of the bundled game IDs in their products API. You can check this yourself by accessing the links I've posted above - these were previously all unavailable/returning 404. Note that none of these games have linked store pages.
Post edited April 28, 2018 by WinterSnowfall
Now this is certainly interesting. Guess it's the new "content builder" system.

I quote:

GOG Galaxy Build Creator is a tool for developers to prepare, verify and upload new builds. It is added automatically to every GOG developer library. If you are looking for a CLI tool to integrate into your build system, GOG Galaxy Pipeline Builder is what you need.
There's also a changelog:

#### Build Creator ver. 1.0.5.0

* fixed checking for duplicated files in DLCs
* include patch version in bug reports

#### Build Creator ver. 1.0.4.2

* confirmation prompt before exit
* lack of primary task is now an error
* better error message if chosen product is a pack
* linking from Build Game modal to issues
And there's also a reference to this dev portal.
Post edited May 21, 2018 by WinterSnowfall
avatar
WinterSnowfall: Now this is certainly interesting. Guess it's the new "content builder" system.

I quote:

GOG Galaxy Build Creator is a tool for developers to prepare, verify and upload new builds. It is added automatically to every GOG developer library. If you are looking for a CLI tool to integrate into your build system, GOG Galaxy Pipeline Builder is what you need.
avatar
WinterSnowfall: There's also a changelog:

#### Build Creator ver. 1.0.5.0

* fixed checking for duplicated files in DLCs
* include patch version in bug reports

#### Build Creator ver. 1.0.4.2

* confirmation prompt before exit
* lack of primary task is now an error
* better error message if chosen product is a pack
* linking from Build Game modal to issues
avatar
WinterSnowfall: There's also a reference to this.
Interesting for sure, thanks for posting. They told us a few weeks back that there was a pipeline similar to Steam's so we have known about that for a bit now. The Build Creator is new though.
Post edited May 21, 2018 by BKGaming