Skip to main content

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

Acquiring itch io player username with API(or something)

A topic by NemphisGames created Mar 02, 2023 Views: 589 Replies: 1
Viewing posts 1 to 2
(+1)

Hello. In my game im going to have a highscore list and user accounts. But i dont want players to register in any way.
I need the username of the logged in account on itch.io. When the HTML5 game launches on itch, it takes the username of the player and checks if there is an account with that username. If not, the game will create one, otherwise fetch data from a server with that username. 
I've seen another post from a couple years ago that said something about https://itch.io/api/1/me/me
and it surely does give me an username.(if i click the link myself). Is it possible with the Godot engine to access this and collect the user data for when a player launches the game?

(2 edits)

This is explained in the API documentation.

IIRC, either they use the Itch app, or they have to explicitly allow your game from their browser.

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