[Mod portal]Api endpoint broken

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

[Mod portal]Api endpoint broken

Post by Bilka » Wed Jan 17, 2018 7:34 pm

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
Factorio Staff
Factorio Staff
Posts: 620
Joined: Fri Mar 27, 2015 7:07 am

Re: [Mod portal]Api endpoint broken

Post by HanziQ » Wed Jan 17, 2018 9:44 pm

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.

User avatar
Bilka
Factorio Staff
Factorio Staff
Posts: 984
Joined: Sat Aug 13, 2016 9:20 am

Re: [Mod portal]Api endpoint broken

Post by Bilka » Wed Jan 17, 2018 9:59 pm

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

Re: [Mod portal]Api endpoint broken

Post by Arnavion » Thu Jan 18, 2018 8:42 am

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
Burner Inserter
Burner Inserter
Posts: 5
Joined: Sun Aug 07, 2016 1:23 pm

Re: [Mod portal]Api endpoint broken

Post by asdff45 » Sun Feb 11, 2018 3:25 am

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

Re: [Mod portal]Api endpoint broken

Post by boail » Tue Feb 20, 2018 8:51 pm

any news about the api? :mrgreen:

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

Re: [Mod portal]Api endpoint broken

Post by Arnavion » Mon Apr 09, 2018 2:16 am

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”