PaperMC / Hangar API
Base: https://hangar.papermc.io/api/v1
Hangar plugin repository — search projects and list platform-specific versions.
Handler: HangarProvider
GET
/projects
Search Projects
Search Hangar plugin repository
Parameter
| Name | Type | Required | Description |
|---|---|---|---|
q
|
string | No | Search keyword |
limit
|
integer | No | Results per page (default 25) |
offset
|
integer | No | Pagination offset |
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"
GET
/projects/{slug}/versions
List Versions
List versions for a Hangar project (owner/slug format)
Parameter
| Name | Type | Required | Description |
|---|---|---|---|
slug
|
string | Yes | Project slug e.g. ViaVersion |
limit
|
integer | No | Results per page |
Response Example
{"result":[{"name":"4.9.3","downloads":{"PAPER":100000},"pluginDependencies":{"PAPER":[]},"platformDependencies":{"PAPER":["1.8-1.21"]}}]}
cURL
curl "https://hangar.papermc.io/api/v1/projects/ViaVersion/versions?limit=5"