FeedTheBeast API
Base: https://api.feed-the-beast.com/v1
FeedTheBeast packs can be browsed and searched in the plugin, but they cannot be installed on the server directly, because the download is tied to the FTB launcher. The FTB API loads in two steps: first a list of pack IDs, then the details of every pack. This page documents both steps and explains why a search costs more requests than on the other providers.
Handler: FTBProvider
GET
/modpacks/public/modpack/popular/installs/{limit}
List popular modpacks
Returns the IDs of the most installed FeedTheBeast modpacks. The details of each pack have to be fetched with a separate call.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
limit
|
integer | Yes | Maximum number of pack IDs returned. The plugin inserts the page size. |
Response Example
{"packs":[100,200,300],"total":3}
cURL
curl "https://api.feed-the-beast.com/v1/modpacks/public/modpack/popular/installs/20"
The plugin uses this call as long as the search field is empty. For {limit} it inserts the page size. With a keyword it switches to the search call further down. The answer contains only a packs array of IDs. The plugin then requests every ID separately, so a page of 20 packs causes up to 21 requests. Pack 81 is skipped because it is a test pack. Because no real paging exists, the total shown is simply the number of packs found.
Internal Behavior
If the request fails the plugin logs a warning and returns an empty list. Packs whose detail call fails or returns status error are dropped silently from the list.
Because of the launcher binding, the download information of an FTB pack is always empty and carries the flag requires_launcher. The pack therefore cannot be installed from the panel.
Because of the launcher binding, the download information of an FTB pack is always empty and carries the flag requires_launcher. The pack therefore cannot be installed from the panel.
GET
/modpacks/public/modpack/{packId}
Get modpack details
Returns one FeedTheBeast pack by ID with name, description, artwork and the list of versions.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
packId
|
integer | Yes | Numeric FTB pack ID. Pack 81 is a test pack and is skipped by the plugin. |
Response Example
{"id":100,"name":"FTB Revelation","synopsis":"Kitchen sink modpack","versions":[{"id":1000,"name":"3.5.0","type":"Release"}],"art":[{"url":"https://..."}]}
cURL
curl "https://api.feed-the-beast.com/v1/modpacks/public/modpack/100"
This is the second step of the two-step loading. The plugin takes name, description, the artwork of type square as icon and builds the link feed-the-beast.com/modpacks/{id}. The versions array of the same answer is used as the version list, in reversed order of the API answer; FTB provides no release date or download count, so these stay empty. If the answer contains status error, the pack is treated as not found.
Internal Behavior
The author is always shown as FeedTheBeast, because the API names no author. Install attempts end at the launcher hint, as the download URL is null and requires_launcher is true.
GET
/modpacks/public/modpack/search/{limit}
Search modpacks
Searches FeedTheBeast packs by keyword and returns the IDs of the matches.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
limit
|
integer | Yes | Maximum number of results. The plugin inserts the page size. |
term
|
string | Yes | Search keyword. |
Response Example
{"packs":[100,200],"curseforge":[],"total":2}
cURL
curl "https://api.feed-the-beast.com/v1/modpacks/public/modpack/search/20?term=revelation"
{limit} is the maximum number of results; the plugin inserts the page size. The keyword goes into the query parameter term. As with the list of popular packs, the answer contains only IDs in the field packs, and the plugin loads the details of each ID in a second step. Because that is one request per hit, keep search terms specific; a very broad term makes the first page slow.
Internal Behavior
The request timeout of the plugin (MODPACKS_REQUEST_TIMEOUT, 10 seconds by default) applies to each single request, not to the whole page. A failing search returns an empty list and a warning in the panel log.