SpigotMC / Spiget API

Base: https://api.spiget.org/v2

Spiget REST API für SpigotMC-Ressourcen — Suche, Details, Versionen und Download-Prüfung.

Verarbeitung: SpigotProvider
GET /resources

List Resources

List all SpigotMC resources

Parameter

Name Typ Pflicht Beschreibung
size integer Nein Results per page
page integer Nein Page number
sort string Nein Sort field e.g. -downloads

Antwort-Beispiel

[{"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"
GET /search/resources/{query}

Search Resources

Full-text search across SpigotMC resources

Parameter

Name Typ Pflicht Beschreibung
query string Ja Search keyword
size integer Nein Results per page
page integer Nein Page number

Antwort-Beispiel

[{"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"
GET /resources/{resourceId}

Get Resource

Get details of a single resource

Parameter

Name Typ Pflicht Beschreibung
resourceId integer Ja SpigotMC resource ID

Antwort-Beispiel

{"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"
GET /resources/{resourceId}/versions

Get Resource Versions

List all versions of a resource

Parameter

Name Typ Pflicht Beschreibung
resourceId integer Ja SpigotMC resource ID
size integer Nein Results per page

Antwort-Beispiel

[{"id":500000,"uuid":"abc123","name":"2.20.1","releaseDate":1700000000,"downloads":50000}]

cURL

curl "https://api.spiget.org/v2/resources/9089/versions?size=5"