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
Gekko_Dekko: thanks
avatar
Sonic3R: Do you know what arguments are available for `expand` query string ? I saw mostly used are: downloads,expanded_dlcs,description,screenshots,videos,related_products,changelog

There are more than mentioned ?
According to https://gogapidocs.readthedocs.io/en/latest/galaxy.html#api-gog-com --- which I'm not sure is still being maintained:
"expand (str) – Comma separated list of additional sections to request. Possible values: downloads, expanded_dlcs, description, screenshots, videos, related_products, changelog"
Does Galaxy download files individually? Given a manifest, does it go file by file? If so, what is the url for an individual file? Galaxy isn't cooperating with mitm.
avatar
sleepsoncouch: Does Galaxy download files individually? Given a manifest, does it go file by file? If so, what is the url for an individual file? Galaxy isn't cooperating with mitm.
Do you mean the installer downloads or the content system installs?
Nevermind... ignore this.
Post edited February 14, 2020 by BKGaming
nm :D :) :roll:
Post edited October 25, 2020 by win8user
Hello All,

I was wondering if there is an available API endpoint to get a games System requirement other than just the supported OS class (win/mac/linux).

My goal is to make a quick query that will allow me to input specs (OS, CPU speed, RAM, Graphics card model, VRAM) and that will get me a list of games that I can play with various computers, preferably from my account.

This is what I've done so far, using UT2004 as a baseline:
* I used gogapidocs to dig around the available endpoints but I can't seem to find any properties that contain those values. (api.gog.com/products/1207658691?expand=description)
* While the computed browser view does feature the data I want to parse in the "requirement in requirements.selectedOsRequirements track by $index" divs, the data I get from a webrequest doesn't (https://www.gog.com/game/unreal_tournament_2004_ec).
* Made sure using another userAgent wouldn't spit out a different output

Could I get an insight on how the system requirements are generated on the webstore?

Thanks to the beautiful people that worked on the unofficial API documentation, though!

Vereen
avatar
Vereen: * While the computed browser view does feature the data I want to parse in the "requirement in requirements.selectedOsRequirements track by $index" divs, the data I get from a webrequest doesn't (https://www.gog.com/game/unreal_tournament_2004_ece).
You can find the information on the game page that you link to. That's where MaGog gets her information.

Just search for:
"systemRequirements":[{"type":
and you'll find it.

Since this sequence appears more than once on the page, to avoid getting the wrong one (e.g. the system requirements for the DLCs), before searching I recommend that you delete all the lines that contain:
window.productcardData.cardProduct

Hope this helps.
Post edited December 03, 2020 by mrkgnao
avatar
Vereen: I was wondering if there is an available API endpoint to get a games System requirement other than just the supported OS class (win/mac/linux).
Take this: https://api.gog.com/v2/games/1207658691

It has everything that's shown on the website. Sorry for lacking behind on documenting stuff. :(
avatar
Yepoleb: Take this: https://api.gog.com/v2/games/1207658691

It has everything that's shown on the website. Sorry for lacking behind on documenting stuff. :(
That is perfect, Thanks a lot Yepoleb!

avatar
mrkgnao: You can find the information on the game page that you link to. That's where MaGog gets her information.

Just search for:
"systemRequirements":[{"type":
and you'll find it.

Since this sequence appears more than once on the page, to avoid getting the wrong one (e.g. the system requirements for the DLCs), before searching I recommend that you delete all the lines that contain:
window.productcardData.cardProduct

Hope this helps.
Also thank you mrkgnao for the suggestion. Sorry I was late to discover MaGog, I'm sure it would have covered my needs.
Is there any way to get a public wishlist with a username instead of userID?

Any public way to find a userID for a given username?

Is there a way a user can get their own userID besides logging in and going to the following?

https://www.gog.com/userData.json

I got a feeling the answer to all three of these questions are no.
avatar
geeseven: Is there any way to get a public wishlist with a username instead of userID?
https://www.gog.com/u/USERNAME/wishlist

avatar
geeseven: Any public way to find a userID for a given username?
Go to the link above and search for:
gog-user=".*"
(the value between the quotation marks is the USERID,

avatar
geeseven: Is there a way a user can get their own userID besides logging in and going to the following?

https://www.gog.com/userData.json

I got a feeling the answer to all three of these questions are no.
Use method above with your own wishlist (no need to log in).
Hey mrkgnao,

Thanks for the timely reply.

I should have been more clear. I am looking for wishlist data in json format.

avatar
mrkgnao: Go to the link above and search for:
gog-user=".*"
(the value between the quotation marks is the USERID,
Which above link? Could you give an example?
avatar
geeseven: Hey mrkgnao,

Thanks for the timely reply.

avatar
geeseven: I should have been more clear. I am looking for wishlist data in json format.

avatar
mrkgnao: Go to the link above and search for:
gog-user=".*"
(the value between the quotation marks is the USERID,
avatar
geeseven: Which above link? Could you give an example?
- Example: https://www.gog.com/u/Yepoleb/wishlist
- Search in the page's source for: gog-user=".*"
- Find it: gog-user="48628349971017"
- Yepoleb's user ID is: 48628349971017

If you want it by user name in JSON, the only way I know is to translate from user name to ID as shown above, and then use the ID to get the wishlist in JSON. That's how MaGog does it.
Post edited December 15, 2020 by mrkgnao
avatar
geeseven: Is there any way to get a public wishlist with a username instead of userID?
I'm not aware of one

avatar
geeseven: Any public way to find a userID for a given username?
Use https://www.gog.com/friends/search to get a user id from a name. Click the "Invite new friend" button on the friends page to see how it's used.

avatar
geeseven: Is there a way a user can get their own userID besides logging in and going to the following?
Doesn't really get any simpler than a single API call, does it?
mrkgnao,

Thanks for the example. I was thinking term 'search' needed to be added the URL.

Yepoleb,

Thanks for the reply and all the work you have done.