Page 1 of 1

Feature Request -- Interface to sort mod portal json API

Posted: Wed Aug 19, 2020 10:39 pm
by Uthrom
TL;DR
Please add the ability to sort the json output from https://mods.factorio.com/api/mods, possibly only by last updated date. (I don't care about the rest)
What ?
In viewtopic.php?f=6&t=87788 I was told to use the mod json API to pull lists of mods for another project I'm working on, however the API does not provide a method of filtering the results, meaning that my project will have to download all mods each time, sort them on my end, and then do what I want to do with them, even if I only need 10-20 mods instead of all of them.
Why ?
Efficiency. We're all better off not wasting bandwidth and CPU cycles tossing unnecessary data around.

Re: Feature Request -- Interface to sort mod portal json API

Posted: Wed Nov 17, 2021 4:55 am
by ssilk
moved from suggestions to mod portal

Re: Feature Request -- Interface to sort mod portal json API

Posted: Tue Mar 22, 2022 1:52 pm
by vinzenz
Uthrom wrote:
Wed Aug 19, 2020 10:39 pm
Please add the ability to sort the json output from https://mods.factorio.com/api/mods, possibly only by last updated date. (I don't care about the rest)
Just deployed an update which makes this possible: https://mods.factorio.com/api/mods?sort ... order=desc

You can find more details here: https://wiki.factorio.com/Mod_portal_API#.2Fapi.2Fmods

Re: Feature Request -- Interface to sort mod portal json API

Posted: Sat Mar 26, 2022 5:56 am
by Uthrom
vinzenz wrote:
Tue Mar 22, 2022 1:52 pm
Uthrom wrote:
Wed Aug 19, 2020 10:39 pm
Please add the ability to sort the json output from https://mods.factorio.com/api/mods, possibly only by last updated date. (I don't care about the rest)
Just deployed an update which makes this possible: https://mods.factorio.com/api/mods?sort ... order=desc

You can find more details here: https://wiki.factorio.com/Mod_portal_API#.2Fapi.2Fmods
Awesome, thank you for the update.