Official mod portal API
Posted: Fri Jul 28, 2017 11:58 am
I have been looking at the possibility for servers to get notifications of mod updates, or even be able to auto update mods.
Based on https://wiki.factorio.com/Mod_Portal_API (allthough not sure that is really official) and my own expiermentation in a web browser (so very not official) it seems to be possible to get all required info to detect and fetch updates by polling at some frequency.
Namely fetching https://mods.factorio.com/api/mods?order=updated (likely only 1 page) to see what changed since I last polled /mods (id fetch all pages the first time).
But it would be really good to have an official API, that will be retained for the new upcoming portal (even if thats simply a "we will implement a https://mods.factorio.com/api/mods to be like before"), and maybe even one better suited for automation / syncing. e.g. a https://mods.factorio.com/api/mods?upda ... e_size=inf with no paging to get full (mods/:name) info on updates.
For the purpose of at least my automation, "updated" wouldnt need to include download counts, ratings, etc. But maybe if people did have a use for that, a way of getting push updates, or deltas (only changed properties) would be even better.
Based on https://wiki.factorio.com/Mod_Portal_API (allthough not sure that is really official) and my own expiermentation in a web browser (so very not official) it seems to be possible to get all required info to detect and fetch updates by polling at some frequency.
Namely fetching https://mods.factorio.com/api/mods?order=updated (likely only 1 page) to see what changed since I last polled /mods (id fetch all pages the first time).
But it would be really good to have an official API, that will be retained for the new upcoming portal (even if thats simply a "we will implement a https://mods.factorio.com/api/mods to be like before"), and maybe even one better suited for automation / syncing. e.g. a https://mods.factorio.com/api/mods?upda ... e_size=inf with no paging to get full (mods/:name) info on updates.
For the purpose of at least my automation, "updated" wouldnt need to include download counts, ratings, etc. But maybe if people did have a use for that, a way of getting push updates, or deltas (only changed properties) would be even better.