[Mod portal]Api endpoint broken

A place to talk about the official Factorio mod portal (https://mods.factorio.com)

[Mod portal]Api endpoint broken

Postby 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
Bilka
Filter Inserter
Filter Inserter
 
Posts: 712
Joined: Sat Aug 13, 2016 9:20 am

Re: [Mod portal]Api endpoint broken

Postby 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
HanziQ
Factorio Staff
Factorio Staff
 
Posts: 602
Joined: Fri Mar 27, 2015 7:07 am
Location: Factorio HQ

Re: [Mod portal]Api endpoint broken

Postby 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.
User avatar
Bilka
Filter Inserter
Filter Inserter
 
Posts: 712
Joined: Sat Aug 13, 2016 9:20 am

Re: [Mod portal]Api endpoint broken

Postby 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.
Arnavion
Manual Inserter
Manual Inserter
 
Posts: 3
Joined: Sat Aug 15, 2015 8:16 am

Re: [Mod portal]Api endpoint broken

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

Re: [Mod portal]Api endpoint broken

Postby boail » Tue Feb 20, 2018 8:51 pm

any news about the api? :mrgreen:
boail
Manual Inserter
Manual Inserter
 
Posts: 4
Joined: Thu Jan 11, 2018 7:53 pm

Re: [Mod portal]Api endpoint broken

Postby 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_size=max&namelist=foo&namelist=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.
Arnavion
Manual Inserter
Manual Inserter
 
Posts: 3
Joined: Sat Aug 15, 2015 8:16 am


Return to Mod portal Discussion

Who is online

Users browsing this forum: No registered users and 1 guest