PaperMC / Hangar API
Base: https://hangar.papermc.io/api/v1
Hangar is the plugin repository of the PaperMC project and the natural source for Paper plugins and for proxy plugins for Velocity and Waterfall. The plugin searches projects, lists their versions per platform and picks the matching download. The public API at hangar.papermc.io/api/v1 needs no key. In the plugin the provider is stored as papermc.
Handler: HangarProvider
GET
/projects
Search projects
Searches the Hangar repository for plugins and returns name, description, owner, downloads, avatar and last update.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
q
|
string | No | Search keyword. |
limit
|
integer | No | Results per page. The plugin uses the plugins-per-page setting. |
offset
|
integer | No | Number of results to skip. |
Response Example
{"result":[{"namespace":{"owner":"ViaVersion","slug":"ViaVersion"},"name":"ViaVersion","description":"Allow newer clients...","stats":{"downloads":5000000}}],"pagination":{"limit":25,"offset":0,"count":100}}
cURL
curl "https://hangar.papermc.io/api/v1/projects?q=ViaVersion&limit=5"
The plugin sends q (keyword), limit (plugins per page) and offset, and adds version when a Minecraft version is selected. Hits are in the field result, the total is in pagination.count. A project is identified by owner and slug, which the plugin joins into the ID owner/slug, for example ViaVersion/ViaVersion. This combined ID is what you pass to the version call.
Internal Behavior
Mapping into the browser list: namespace.owner and namespace.slug as ID, name, description, owner as author, stats.downloads, avatarUrl and lastUpdated. If the API does not answer successfully, the list is empty. In the plugin the provider is stored as papermc, which is the value you filter on in the Pelican routes.
GET
/projects/{owner}/{slug}/versions
List versions
Lists the versions of a Hangar project. Each version has download links per platform.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
owner
|
string | Yes | Owner of the project, for example ViaVersion. Found in the search under namespace.owner. |
slug
|
string | Yes | Slug of the project, for example ViaVersion. Found in the search under namespace.slug. |
version
|
string | No | Minecraft version as a filter. The plugin only sends it when a version is selected. |
Response Example
{"result":[{"name":"5.2.0","createdAt":"2026-10-20T10:00:00Z","downloads":{"PAPER":{"downloadUrl":"https://hangar.papermc.io/api/v1/projects/ViaVersion/ViaVersion/versions/5.2.0/PAPER/download"}},"platformDependencies":{"PAPER":["1.8-1.21.10"]}}]}
cURL
curl "https://hangar.papermc.io/api/v1/projects/ViaVersion/ViaVersion/versions?version=1.21.10"
A project is addressed by owner and slug, exactly as the search returns them under namespace. The plugin adds version=<Minecraft version> when one is selected. In the answer, result contains the versions; the version name serves as ID and version number, createdAt as date and platformDependencies as the supported game versions. The call for a single version, /projects/{owner}/{slug}/versions/{name}, returns the downloads per platform.
Internal Behavior
For the download the plugin looks at the platforms in this order: PAPER, VELOCITY, WATERFALL (a platform chosen in the download dialog comes first). If a platform has a downloadUrl, the file is taken from there. If it only has an externalUrl, the plugin marks the download as manual because the file lies outside Hangar. If no platform matches, the version cannot be installed. Required plugin dependencies (pluginDeps with required true) are resolved by name; for each the first version of the dependency project is used.