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?
Is There An API for the Mod Portal? (Edit - Yes)
- AlyxDeLunar
- Fast Inserter
- Posts: 105
- Joined: Mon Dec 22, 2014 7:32 pm
- Contact:
Is There An API for the Mod Portal? (Edit - Yes)
Last edited by AlyxDeLunar on Sun Aug 07, 2016 6:55 pm, edited 1 time in total.
- AlyxDeLunar
- Fast Inserter
- Posts: 105
- Joined: Mon Dec 22, 2014 7:32 pm
- Contact:
Re: Is There An API for the Mod Portal?
Alright, I found it! Admittedly, it was fairly obvious.
The API endpoint is https://mods.factorio.com/api/mods
The API endpoint is https://mods.factorio.com/api/mods
Re: Is There An API for the Mod Portal? (Edit - Yes)
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 Eg: https://mods.factorio.com/api/mods?page=#
EDIT: Ima dumb, its a simple HTTP get variable called page Eg: https://mods.factorio.com/api/mods?page=#
Last edited by MakCuber on Thu Mar 02, 2017 11:00 am, edited 1 time in total.
Re: Is There An API for the Mod Portal? (Edit - Yes)
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
For example:
https://mods.factorio.com/?tags=cheats
Maps to:
https://mods.factorio.com/api/mods?tags=cheats