Mod Browser API - Image URLs for mods and in search listings.

A place to talk about the official Factorio mod portal (https://mods.factorio.com)
PhonicUK
Manual Inserter
Manual Inserter
Posts: 1
Joined: Thu May 30, 2019 1:31 pm
Contact:

Mod Browser API - Image URLs for mods and in search listings.

Post by PhonicUK »

Right now there's no way to get an image for a given mod for use in an external browser/manager without scraping the page for that specific mod and looking for a `img[data-filename]` - which isn't ideal when you want to blitz through a bunch of search results.

I'd like to ask if results for mods obtained through the API contained either the full image URL for the icon or the UUID of the image used so it can be pulled.

Edit: I've been told about the /full endpoint for single mods, but that doesn't help with listings. The Result Entry would need to be amended to include this. https://wiki.factorio.com/Mod_portal_API#Result_Entry
User avatar
Sanqui
Factorio Staff
Factorio Staff
Posts: 332
Joined: Mon May 07, 2018 7:22 pm
Contact:

Re: Mod Browser API - Image URLs for mods and in search listings.

Post by Sanqui »

I've changed the API so that it returns thumbnail URLs for lists too.
ovo
Post Reply

Return to “Mod portal Discussion”