Skip to main content

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

Nick Defrunct

5
Posts
1
Topics
1
Followers
45
Following
A member registered Jan 12, 2023 · View creator page →

Creator of

Recent community posts

I'm still looking for a solution to this.

And I've just run into another obstacle: game jam entries don't seem to expose a game slug anywhere (they use game IDs instead). Because of that, the username/game-slug approach doesn't work for game jam pages.

I wish there were a simple endpoint like itch.io/games/game-id/data.json that returned a game's public metadata.

Maybe I didn't explain my use case clearly.

Yes, I can extract all the metadata I need from the game page itself. The problem is that I want to display that information on my extension's settings page, which is separate from itch.io.

That means I either have to cache all of the game's metadata locally (which significantly increases the amount of stored data and requires a mechanism to keep it up to date), or store only an identifier and fetch the rest when needed.

I think the second approach is preferable. In fact, I can already do it using URLs like https://username.itch.io/game-slug/data.json. What I don't like is that this requires storing the author's username and the game's slug instead of a single immutable ID.

Besides taking up more space, usernames and slugs can change over time, while the game's ID remains constant.

What why?

Hi everyone!

I'm working on a browser extension that allows users to add custom labels to itch.io pages. I found out that every game (or asset) has a unique ID that I could use to store the corresponding labels. However, I've run into an issue while implementing the extension's management page.

To make the UI more user-friendly, I'd like to display each game's cover image, title, author etc. Unfortunately, I haven't found a convenient way to retrieve that data.

I know about Serverside API. It accepts a GAME_ID, but it requires authentication tokens, which makes it impractical for a browser extension.

Also there is Itch.getGameData() method from JavaScript API, which doesn't require authentication. However, it uses username and game name instead of ID. That means I'd have to store additional data, and it's not very reliable since either of those values can change over time.

So I'm wondering if there's another way to retrieve information about a game using only its unique ID, without requiring authentication, that I might have overlooked? Any suggestions or recommendations would be appreciated. Thanks!

Wow. Controls is not the best, but this story is perfect!