Skip to main content

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

How does one fetch itch.io game HTML pages?

A topic by Blawnode created Feb 04, 2023 Views: 322 Replies: 1
Viewing posts 1 to 2

Hello!

I'm looking to fetch my own games' HTML pages. F.E: "https://blawnode.itch.io/mygamename"
Trying to make a web page with a customized list of several of my games.
I'm trying to do so through a React.js app of mine, hosted via AWS Amplify.
But when I attempt to fetch, I get a CORS issue: "Access to XMLHttpRequest at from origin has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource"

I understand that the CORS issue is for security reasons, and that itch.io will not allow this kind of requets.

The question is - Is there any right and allowed way to get an itch.io HTML page?
And if there is, please do let me know.

Else... I suppose this is a dead-end, and I'll simply scrap the idea.

Better yet, if it's possible - I looked into the usage of the itch.io API.
But one key part is missing - Screenshots.

There's a GET option for most of a game's metadata, other than the screenshots.
That is why I attempted to get the HTML page, instead - to get the screenshots from the HTML DOM.

So... is there any way for me to get the screenshots into my app?

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