For this way to access the game API it is necessary to know the game ID on Steam, you have two options to know the ID (the ID is the underlined numbers):
For this way to access the game API it is necessary to know the game Slug on GOG, you have two options to know the Slug (the Slug is the underlined letters):