Page 1 of 1

[Mod portal]Api endpoint broken

Posted: Wed Jan 17, 2018 7:34 pm
by Bilka
https://mods.factorio.com/api/mods?q=search%20term used to search the mod list, as documented here. This no longer works, you always get the full list of mods. The other get parameters like page still work.

Re: [Mod portal]Api endpoint broken

Posted: Wed Jan 17, 2018 9:44 pm
by HanziQ
I am treating this as a feature request, the mod portal api was never public, so this change is not a bug. It will probably come back though.

Re: [Mod portal]Api endpoint broken

Posted: Wed Jan 17, 2018 9:59 pm
by Bilka
Well, there where two active bots I know of that used it, the alienbot/constructionbot over in the factorio discord and the linkmod bot on reddit. The feature to search for mods to display them is dearly missed, so I hope this suggestion has an appropriately high priority.

Re: [Mod portal]Api endpoint broken

Posted: Thu Jan 18, 2018 8:42 am
by Arnavion
Also, the individual mod response (`api/mods/$mod_name`) used to contain the original `info.json` in the `info_json` field, so it contained the `factorio_version` and `dependencies` fields. Now it returns a stripped-down object that only contains the `factorio_version` field. Would be nice to get atleast `dependencies` in there too or have some other API to get them - my mod manager uses it.

Re: [Mod portal]Api endpoint broken

Posted: Sun Feb 11, 2018 3:25 am
by asdff45
Would be nice to get this feature back.
Would be even better when it contains more features, like searching for mods that are compatible with a specific factorio-version.

Re: [Mod portal]Api endpoint broken

Posted: Tue Feb 20, 2018 8:51 pm
by boail
any news about the api? :mrgreen:

Re: [Mod portal]Api endpoint broken

Posted: Mon Apr 09, 2018 2:16 am
by Arnavion
Since there's been no update, I hooked up the game to Fiddler and looked at what it itself uses:
  • https://mods.factorio.com/api/mods?page_size=max This gets all the mods available on the website. It's used by the "Install mods" page. The game does not send the search query or sort parameters to the server - it filters and sorts the list client-side. The response does not contain all the releases of every mod, only the latest one of each, which is what gets installed if you click the "Install" button.
  • https://mods.factorio.com/api/mods/foo This is the same as before the API changed - it gets the information of a single mod, including all the releases.
  • https://mods.factorio.com/api/mods?page ... melist=bar This is a way to query multiple mods' information in one request instead of querying `/api/mods/foo` and `/api/mods/bar` separately. It includes all the releases of each mod, not just the latest one. It's used by the "Check for updates" button.