Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags
(2 edits) (+2)

Hi, I'm not quite sure I understand you.

You ask something, that yourself answer with the link, but then it seems that you are really looking for a DRM system.

First, directly answering your question, in the same link you share you have the following API:


https://itch.io/api/1/KEY/game/GAME_ID/download_keys
You can use this API call to verify that someone has a valid download key to download the game


In other words, with that you can know if a certain user owns your game or not. However, it seems that this is not what you are looking for.

From what you describe, it seems that you are more interested in knowing that indeed the person who is using the PC is a valid itch user and that they have bought your game. In that case read about OAuth which seems to be what you are looking for.

https://itch.io/docs/api/oauth

Regardless of that, since you are talking about piracy, I think what you are really looking for is to incorporate a DRM system, and Itch does not incorporate any such tool, if you want to implement any DRM mechanism in your game, you must implement it yourself.

Sorry for my confusing sentences I usually create most of the time.

https://itch.io/api/1/KEY/game/GAME_ID/download_keys looks like this thing is the best option. Okay, if I own a itch.io game, it will generate a download key for the player. (1) How is it's response if player owns the game?

But now if I send this - https://itch.io/api/1/KEY/game/GAME_ID/download_keys http request from my game, user may always see error:{ invalid } . Because itch.io doesn't knows who is the user, as he/she isn't logged in inside my game. But what I want is now get user logged in my game and than check his name from log in information. And than I want to check if he bought my game by sending http request to itch.io.

Now my problem with this method is how to do a login check with itch.io. So if it's the real itch.io user, than the game continues to check if that user bought the game. If he has the key, than game starts. (2) Is there a login system of itch.io to put it in my C# game ?

(3Do you think OAuth may be better? I checked it a bit before. But itch.io API would also be easier than OAuth. As I expect player is using itch.io apps. But (4) recommend me your opinion, should I do with the login thing or look for OAuth ...

Also, thanks for your timely previous response, I thought none would answer anything.

Sorry if I confused you guys again  😅 

Logging in is done with OAuth, and, yes, this is trivially breakable.