Advice on efficiently fetching all images

Need help with your application? Ask here.
Post Reply
Zabar
Posts: 3
Joined: Thu Aug 08, 2019 6:59 am

Advice on efficiently fetching all images

Post by Zabar » Tue Oct 22, 2019 10:27 am

I'm just getting started on mirroring the database, and I took advantage of the json file linked here viewtopic.php?f=11&t=1129#p2450.

Now I have most of the games mirrored without using the API, but that data does not include artwork. I might have missed something, but there are so many games, and I can't find a way to efficiently fetch the artwork details for each one.

Is there some way to fetch images for several games in one API call?

If not, a json file like "all_games.json" would be a great way to save developers from hitting the API.

User avatar
Zer0xFF
Posts: 284
Joined: Fri Apr 20, 2018 9:18 am

Re: Advice on efficiently fetching all images

Post by Zer0xFF » Tue Oct 22, 2019 2:50 pm

@Zabar,

the plan is to make the entire database downloadable with 1 json file, that file would also include links to all other image arts, and will also be periodically updated, however, I've been busy lately with other work that I haven't had the time to do this.

if you could continue your work for now without them, I'd advise you to do so, and ping me in 2 weeks, if i don't get to this,
else you now have a list of all game ids, and you can batch request images through image api `/Games/Images?filter[type]=...,...&games_id=1,2,3,45,6....`.
you can fit as many ids there as you want (within reason), and youd get a paged result.
Regards
Zer0xFF

Post Reply