CurseForge API
Base: https://api.curseforge.com/v1
CurseForge has the largest catalogue of Minecraft modpacks and is one of two providers that install directly onto your server. The plugin searches class 4471 (modpacks) of game 432 (Minecraft), reads pack details and lists the files of a pack. All calls go to api.curseforge.com/v1 and need a CurseForge API key in the x-api-key header. Server installations read the manifest.json of the pack and fetch the listed mods one by one.
/mods/search
Search modpacks
Searches CurseForge for Minecraft modpacks and returns name, summary, first author, download count, thumbnail and last modification date.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
x-api-key
|
string | Yes | Your CurseForge API key (CURSEFORGE_API_KEY in the plugin settings). Without it the plugin makes no request and the list stays empty. |
gameId
|
integer | Yes | Game ID, 432 for Minecraft. Fixed in the plugin. |
classId
|
integer | No | Content class, 4471 for modpacks. Fixed in the plugin. |
searchFilter
|
string | No | Search keyword. Omitted when the search field is empty. |
pageSize
|
integer | No | Results per page, at most 50. |
index
|
integer | No | Zero-based offset in the result list. |
Response Example
{"data":[{"id":261725,"name":"RLCraft","slug":"rlcraft","summary":"A modpack designed around survival","downloadCount":30000000,"classId":4471}],"pagination":{"index":0,"pageSize":20,"totalCount":500}}
cURL
curl -H "x-api-key: YOUR_KEY" "https://api.curseforge.com/v1/mods/search?gameId=432&classId=4471&searchFilter=rlcraft&pageSize=5"
Internal Behavior
When you install a CurseForge pack on a server, the plugin unpacks the archive and reads manifest.json. For every file listed there it resolves the download URL through the CurseForge API and downloads the mods, then copies the overrides folder of the pack into the server directory.
/mods/{modId}
Get modpack details
Returns the complete record of one modpack, including the long description, logo, author list and the link to its CurseForge page.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
x-api-key
|
string | Yes | Your CurseForge API key (CURSEFORGE_API_KEY in the plugin settings). Without it the plugin makes no request and the list stays empty. |
modId
|
integer | Yes | Numeric CurseForge ID of the modpack, for example 1210677. |
Response Example
{"data":{"id":261725,"name":"RLCraft","slug":"rlcraft","summary":"A modpack designed around survival","downloadCount":30000000}}
cURL
curl -H "x-api-key: YOUR_KEY" "https://api.curseforge.com/v1/mods/261725"
Internal Behavior
/mods/{modId}/files
Get modpack files
Lists the files of a modpack: each file is a version that you can select for the installation.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
x-api-key
|
string | Yes | Your CurseForge API key (CURSEFORGE_API_KEY in the plugin settings). Without it the plugin makes no request and the list stays empty. |
modId
|
integer | Yes | Numeric CurseForge ID of the modpack, for example 1210677. |
gameVersion
|
string | No | Filter by Minecraft version. Valid at CurseForge, not sent by the plugin. |
Response Example
{"data":[{"id":4500000,"displayName":"RLCraft-1.12.2-2.9.2.zip","fileName":"RLCraft-1.12.2-2.9.2.zip","downloadUrl":"https://edge.forgecdn.net/...","gameVersions":["1.12.2","Forge"]}]}
cURL
curl -H "x-api-key: YOUR_KEY" "https://api.curseforge.com/v1/mods/261725/files"