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

Enhance your gameplay with these tools. This category is also the right place for tools useful for modders.
Mod databases, calculators, cheatsheets, multiplayer, scripts, libs and other useful stuff that is not strictly in-game mods.
User avatar
AlyxDeLunar
Fast Inserter
Fast Inserter
Posts: 105
Joined: Mon Dec 22, 2014 7:32 pm
Contact:

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

Post 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?
Last edited by AlyxDeLunar on Sun Aug 07, 2016 6:55 pm, edited 1 time in total.
Sometimes humorous, usually congenial. Always Alyx.

My Stuff:
Lunar's Factorio Mod Manager
User avatar
AlyxDeLunar
Fast Inserter
Fast Inserter
Posts: 105
Joined: Mon Dec 22, 2014 7:32 pm
Contact:

Re: Is There An API for the Mod Portal?

Post by AlyxDeLunar »

Alright, I found it! Admittedly, it was fairly obvious.

The API endpoint is https://mods.factorio.com/api/mods
Sometimes humorous, usually congenial. Always Alyx.

My Stuff:
Lunar's Factorio Mod Manager
MakCuber
Burner Inserter
Burner Inserter
Posts: 13
Joined: Tue Mar 01, 2016 5:18 am
Contact:

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

Post 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=#
Last edited by MakCuber on Thu Mar 02, 2017 11:00 am, edited 1 time in total.
User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3714
Joined: Tue May 13, 2014 11:06 am
Contact:

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

Post 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
Post Reply

Return to “Tools”