Modrinth API
Base: https://api.modrinth.com/v2
Modrinth offers a growing collection of plugins for Paper, Spigot, Bukkit, Purpur and Folia and needs no API key. The plugin builds server-side facets, expands short game versions like 1.21 to all patch releases and picks the loaders that fit your server software. This page documents the search and the version list behind the Modrinth tab at api.modrinth.com/v2.
Handler: ModrinthProvider
GET
/search
Search plugins
Searches Modrinth for plugins that run on a server and returns title, description, author, downloads, icon and last modification date.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
query
|
string | No | Search keyword. |
facets
|
string | No | Filter as a JSON array of arrays. The plugin builds project type, platforms and, if selected, versions. |
limit
|
integer | No | Results per page. The plugin uses the plugins-per-page setting (default 20). |
Response Example
{"hits":[{"slug":"luckperms","title":"LuckPerms","project_type":"plugin","downloads":10000000}],"total_hits":50}
cURL
curl "https://api.modrinth.com/v2/search?query=luckperms&facets=[[\"project_type:plugin\"],[\"categories:paper\"]]"
The plugin always sends the facets project_type:plugin and one OR group of the server platforms bukkit, spigot, paper, purpur and folia. If you pick a Minecraft version, a third group with versions:<version> is added; a short version like 1.21 is expanded to all patch releases of that line from the Mojang version list. query is the keyword, limit the plugins-per-page setting, offset the number of skipped results. The facets must be sent as a JSON array of arrays, the plugin takes care of that.
Internal Behavior
Mapping into the browser list: project_id (or the slug), title, slug, description, author, downloads, icon_url and date_modified. The total comes from total_hits. Modrinth needs no key; a non-successful answer returns an empty list. Plugins that are only built for proxies such as Velocity are not found by this search because the facet only contains server platforms.
GET
/project/{id|slug}/version
List plugin versions
Lists the versions of a Modrinth project, filtered by the server platform and optionally by Minecraft version.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
id|slug
|
string | Yes | Project ID or slug. |
loaders
|
string | No | JSON array of loaders, for example ["paper","spigot","bukkit"]. Chosen by the plugin from your server software. |
game_versions
|
string | No | JSON array of Minecraft versions, for example ["1.21.4"]. |
Response Example
[{"id":"ver456","version_number":"5.4.102","loaders":["bukkit","spigot","paper"],"files":[{"url":"https://cdn.modrinth.com/..."}],"dependencies":[]}]
cURL
curl "https://api.modrinth.com/v2/project/luckperms/version?loaders=[\"paper\"]"
Here the plugin does send filters. loaders is a JSON array chosen from your server software; if the software cannot be detected, it falls back to paper, spigot and bukkit. game_versions is a JSON array with the selected Minecraft version, expanded to its patch releases. The result lists, for each version, id, name, version_number, date_published, game_versions and loaders. For the download the plugin calls /version/{id} and uses the file marked primary, otherwise the first file. A version without files cannot be installed.
Internal Behavior
Required dependencies are read from the dependencies list of the version (dependency_type required). A dependency with a fixed version_id is taken as is, otherwise the plugin uses the first version that Modrinth returns for the dependency project. The result is added to the installation like the main plugin.