SpigotMC / Spiget API
Base: https://api.spiget.org/v2
SpigotMC is the oldest and largest plugin site for Bukkit-based servers, and Spiget is the free REST interface that makes its resources searchable. The plugin lists the most downloaded resources, searches by keyword, reads the versions of a resource and checks whether a direct download is possible. No API key is needed. The calls go to api.spiget.org/v2 with a timeout of at least 15 seconds.
Endpoints
/resources
List resources
Lists SpigotMC resources, sorted by downloads. This is the list the plugin shows when you open the Spigot tab without a keyword.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
size
|
integer | No | Results per page. The plugin uses the plugins-per-page setting (default 20). |
page
|
integer | No | Page number. |
sort
|
string | No | Sort field, a leading minus means descending. The plugin sends -downloads. |
Response Example
[{"id":1,"name":"EssentialsX","tag":"The essential plugin","downloads":5000000,"rating":{"average":4.5},"icon":{"url":"data/resource_icons/1/1.jpg"}}]
cURL
curl "https://api.spiget.org/v2/resources?size=5&sort=-downloads"
Internal Behavior
/search/resources/{query}
Search resources
Full-text search across SpigotMC resources by name. The keyword is part of the path.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
query
|
string | Yes | Search keyword as a path segment. |
size
|
integer | No | Results per page. |
page
|
integer | No | Page number. |
Response Example
[{"id":9089,"name":"EssentialsX","tag":"The essential plugin suite","downloads":12000000,"updateDate":1700000000}]
cURL
curl "https://api.spiget.org/v2/search/resources/essentials?size=5"
Internal Behavior
/resources/{resourceId}
Get resource
Returns the details of a single SpigotMC resource: name, tag line, author, downloads, rating and links.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
resourceId
|
integer | Yes | Numeric SpigotMC resource ID, for example 9089. |
Response Example
{"id":9089,"name":"EssentialsX","tag":"The essential plugin suite","downloads":12000000,"rating":{"average":4.8},"versions":[{"id":500000}],"premium":false}
cURL
curl "https://api.spiget.org/v2/resources/9089"
Internal Behavior
/resources/{resourceId}/versions
Get resource versions
Lists the published versions of a SpigotMC resource, newest first.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
resourceId
|
integer | Yes | Numeric SpigotMC resource ID. |
size
|
integer | No | Number of versions. The plugin sends 100. |
Response Example
[{"id":500000,"uuid":"abc123","name":"2.20.1","releaseDate":1700000000,"downloads":50000}]
cURL
curl "https://api.spiget.org/v2/resources/9089/versions?size=5"