Page 1 of 1

Is There An API for the Mod Portal? (Edit - Yes)

Posted: Sun Aug 07, 2016 4:37 am
by AlyxDeLunar
I'm going to begin working on version 2 of my mod manager soon, and I wanted to be able to get a list of mods on the portal, like Factorio does in game.

I haven't been able to find any information about how Factorio does this though. Is there any documentation or information laying around that anybody knows of?

Re: Is There An API for the Mod Portal?

Posted: Sun Aug 07, 2016 6:52 pm
by AlyxDeLunar
Alright, I found it! Admittedly, it was fairly obvious.

The API endpoint is https://mods.factorio.com/api/mods

Re: Is There An API for the Mod Portal? (Edit - Yes)

Posted: Thu Mar 02, 2017 10:52 am
by MakCuber
Is it just me or does this endpoint only provide 25 mods? do you have to specify which page to access or something?

EDIT: Ima dumb, its a simple HTTP get variable called page :P Eg: https://mods.factorio.com/api/mods?page=#

Re: Is There An API for the Mod Portal? (Edit - Yes)

Posted: Thu Mar 02, 2017 10:57 am
by DaveMcW
Use the mods website to get hints about how to query it.

For example:
https://mods.factorio.com/?tags=cheats

Maps to:
https://mods.factorio.com/api/mods?tags=cheats