[Mod portal]Api endpoint broken

A place to talk about the official Factorio mod portal (https://mods.factorio.com)
Bilka
Factorio Staff
Factorio Staff
Posts: 3300
Joined: Sat Aug 13, 2016 9:20 am
Contact:

[Mod portal]Api endpoint broken

Post 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.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.

User avatar
HanziQ
Former Staff
Former Staff
Posts: 630
Joined: Fri Mar 27, 2015 7:07 am
Contact:

Re: [Mod portal]Api endpoint broken

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

Bilka
Factorio Staff
Factorio Staff
Posts: 3300
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: [Mod portal]Api endpoint broken

Post 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.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.

Arnavion
Manual Inserter
Manual Inserter
Posts: 3
Joined: Sat Aug 15, 2015 8:16 am
Contact:

Re: [Mod portal]Api endpoint broken

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

asdff45
Long Handed Inserter
Long Handed Inserter
Posts: 65
Joined: Sun Aug 07, 2016 1:23 pm
Contact:

Re: [Mod portal]Api endpoint broken

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

boail
Manual Inserter
Manual Inserter
Posts: 4
Joined: Thu Jan 11, 2018 7:53 pm
Contact:

Re: [Mod portal]Api endpoint broken

Post by boail »

any news about the api? :mrgreen:

Arnavion
Manual Inserter
Manual Inserter
Posts: 3
Joined: Sat Aug 15, 2015 8:16 am
Contact:

Re: [Mod portal]Api endpoint broken

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

Post Reply

Return to “Mod portal Discussion”