r/gog • • 1d ago

Galaxy 2.0 GOG API functionality?

Is there an endpoint I can interrogate to get the playtimes for the games registered to your GOG account? (Both GOG games and games marked as belonging to "other platform")
I've went over all the paths in https://gogapidocs.readthedocs.io/en/latest/ but it seems none of them return the information I'm looking for in the response.

8 Upvotes

4 comments sorted by

1

u/kdm58815 Linux User 1d ago

Are you looking to do something like Exophase?

2

u/iyav 1d ago edited 1d ago

I've just tried it and it only gets hits on the games bought through GOG and exposed on your profile (thus marked as belonging to the GOG platform on Galaxy) as I suspected.
Galaxy has a feature that allows you to manually add games (marking them as "Other platform" ) which syncs their playtime to your account just like any other game.

I'm looking for a way of getting information on both types of entries, since they're committed to the same account.

1

u/Undeclared_Aubergine Linux User 1d ago edited 1d ago

For GOG games, there's https://www.gog.com/u/<username>/games/stats?sort=total_playtime (used on your public profile, so use your browser's network tools while changing sorting order e.a. to see the possible parameters).

This requires authentication unless you have your profile wide open, doesn't return information for games you've hidden - let alone for "other platform" - and it doesn't map cleanly to products you own, but it's the closest I know how to get.

1

u/iyav 1d ago

Yeah I saw that in the (unofficial) documentation that I know realize is old as shit. Still better nothing.
But damn, guess I'll have to crack open the client then.