CurseForge API
Base: https://api.curseforge.com/v1
CurseForge hosts Bukkit plugins in class 5 of game 432 (Minecraft). The plugin searches this class, lists the files of a plugin, reads required dependencies and fetches the HTML description. All calls go to api.curseforge.com/v1 and need a CurseForge API key in the x-api-key header. Without a key the CurseForge tab stays empty.
Handler: CurseForgeProvider
GET
/mods/search
Search plugins
Searches CurseForge for Bukkit plugins and returns name, summary, description, authors, downloads, logo and categories.
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, 5 for Bukkit plugins. Fixed in the plugin. |
searchFilter
|
string | No | Search keyword. |
pageSize
|
integer | No | Results per page, at most 50. |
Response Example
{"data":[{"id":32274,"name":"WorldEdit","slug":"worldedit","summary":"In-game map editor","downloadCount":50000000,"classId":5}],"pagination":{"totalCount":200}}
cURL
curl -H "x-api-key: YOUR_KEY" "https://api.curseforge.com/v1/mods/search?gameId=432&classId=5&searchFilter=worldedit"
The plugin always sends gameId 432 and classId 5. Without a keyword the sort order defaults to 2 (popularity), with a keyword to 1 (featured); the browser can override it with its sort selection, and sort field 4 (name) is sent ascending, every other field descending. A selected Minecraft version goes out as gameVersion, a selected category as categoryId. pageSize is the plugins-per-page setting and index the zero-based offset. CurseForge limits pageSize to 50. Without a key no request is sent, and the tab remains empty.
Internal Behavior
Mapping into the browser list: id (as text), name, slug, summary, description, authors joined by a comma, downloadCount, logo.url, dateModified and the names of the categories. The total comes from pagination.totalCount.
Version lists are loaded with /mods/{id}/files and pageSize=50. Unlike the Game Mods Installer, this plugin does send the selected game version to CurseForge in that call. Loaders are derived from the game version tags of a file (bukkit, spigot, paper, purpur, folia, sponge, fabric, forge, neoforge, quilt).
Version lists are loaded with /mods/{id}/files and pageSize=50. Unlike the Game Mods Installer, this plugin does send the selected game version to CurseForge in that call. Loaders are derived from the game version tags of a file (bukkit, spigot, paper, purpur, folia, sponge, fabric, forge, neoforge, quilt).
GET
/mods/{modId}/files
Get plugin files
Lists the files of a CurseForge plugin with file name, date, game versions and download URL. Each file is an installable version.
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 plugin, for example 31043. |
gameVersion
|
string | No | Filter by Minecraft version, for example 1.21.4. Sent by the plugin when a version is selected. |
Response Example
{"data":[{"id":4000000,"fileName":"worldedit-bukkit-7.2.15.jar","downloadUrl":"https://edge.forgecdn.net/...","dependencies":[{"modId":100,"relationType":3}]}]}
cURL
curl -H "x-api-key: YOUR_KEY" "https://api.curseforge.com/v1/mods/32274/files"
The plugin sends pageSize=50 and the Minecraft version of your server as gameVersion when one is known. From each file it reads id, displayName, fileName, fileDate and gameVersions. For the download it calls /mods/{id}/files/{fileId}; if downloadUrl is empty, the file is marked as not directly downloadable and has to be fetched from the CurseForge page. The description of the plugin is available separately at /mods/{id}/description; the answer carries an HTML text in the field data, which the plugin uses when a search hit comes without a description.
Internal Behavior
Required dependencies (relationType 3) are resolved when you install a file: for each dependency the plugin picks the first file CurseForge returns for the same Minecraft version (taken from the first game-version tag that looks like 1.20 or 1.20.4), and the first file overall if there is none. Dependencies are installed together with the plugin. The key is sent with every one of these requests, so a missing key stops the whole chain.