Posted April 24, 2016
Johny.: Go to regular getFilteredProducts on your account, like:
https://www.gog.com/account/getFilteredProducts?mediaType=1
There's "tags" key in the JSON.
You also have them on https://www.gog.com/account/ in gogData.tags (defined in HTML so you can parse it).
mrkgnao: Yes. I found that, but it's quite inconvenient, as it would require N queries, one per tag, and some peoples have tens of tags. I was hoping for something more straightfoward, such as a single JSON of all tags with the list of all games associated with each tag. https://www.gog.com/account/getFilteredProducts?mediaType=1
There's "tags" key in the JSON.
You also have them on https://www.gog.com/account/ in gogData.tags (defined in HTML so you can parse it).
Thanks anyhow.
Don't you fetch the whole library? (I guess per page) Each game have tags array (with tag IDs) in the details.
@MarkoH01 I don't know about that. I guess that question would apply to all filters in library and in catalog. Now it's like
( Filter1_A OR Filter1_B OR Filter1_C ) AND ( Filter2_B OR Filter2_D )
Which is I guess most correct way for this user interface.
To customize more it would require a little more advanced filter creation interface than just selecting checkboxes. :)