Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Game data.json doesn't specify currency for price

A topic by Martoon created Jun 05, 2021 Views: 191
Viewing posts 1 to 1
(+1)

When getting the data for a game through the API (Itch.getGameData() in js, or directly from the user/game/data.json url), there is a "price" value, but no currency specified. It's impossible to tell if a "$" price is USD, CAD, or AUD.

Example: https://milosoft.itch.io/casadastra shows the price as $5.00 AUD, but https://milosoft.itch.io/casadastra/data.json just shows "price":"$5.00".

Is there a workaround for this? I'd rather not scrape html.

(The same issue is present for bundles, e.g., https://itch.io/bundle/902/games.json)

This topic has been auto-archived and can no longer be posted in because there haven't been any posts in a while.