[Mod portal]Api endpoint broken
[Mod portal]Api endpoint broken
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.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
Re: [Mod portal]Api endpoint broken
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
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.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
Re: [Mod portal]Api endpoint broken
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
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.
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
any news about the api?
Re: [Mod portal]Api endpoint broken
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.