Modrinth API
Base: https://api.modrinth.com/v2
Modrinth Projekt-Suche, Details und Versionsliste.
Verarbeitung: ModrinthProvider
GET
/search
Search Projects
Search Modrinth for mods
Parameter
| Name | Typ | Pflicht | Beschreibung |
|---|---|---|---|
query
|
string | Nein | Search keyword |
facets
|
string | Nein | Facets JSON e.g. [["project_type:mod"]] |
limit
|
integer | Nein | Results per page (default 10) |
offset
|
integer | Nein | Pagination offset |
Antwort-Beispiel
{"hits":[{"slug":"fabric-api","title":"Fabric API","description":"Essential hooks for modding with Fabric","project_type":"mod","downloads":250000000,"icon_url":"https://cdn.modrinth.com/...","versions":["1.20.1","1.21"]}],"offset":0,"limit":10,"total_hits":1}
cURL
curl "https://api.modrinth.com/v2/search?query=fabric-api&facets=[[\"project_type:mod\"]]&limit=5"
GET
/project/{id|slug}
Get Project
Get a single project by ID or slug
Parameter
| Name | Typ | Pflicht | Beschreibung |
|---|---|---|---|
id|slug
|
string | Ja | Project ID or slug |
Antwort-Beispiel
{"slug":"fabric-api","title":"Fabric API","description":"Essential hooks...","downloads":250000000,"project_type":"mod","server_side":"required","loaders":["fabric","quilt"]}
cURL
curl "https://api.modrinth.com/v2/project/fabric-api"
GET
/project/{id|slug}/version
List Versions
List all versions of a project
Parameter
| Name | Typ | Pflicht | Beschreibung |
|---|---|---|---|
id|slug
|
string | Ja | Project ID or slug |
loaders
|
string | Nein | JSON array e.g. ["fabric"] |
game_versions
|
string | Nein | JSON array e.g. ["1.20.1"] |
Antwort-Beispiel
[{"id":"abcd1234","version_number":"0.91.0","game_versions":["1.20.1"],"loaders":["fabric"],"files":[{"url":"https://cdn.modrinth.com/...","filename":"fabric-api-0.91.0.jar","hashes":{"sha1":"..."}}],"dependencies":[]}]
cURL
curl "https://api.modrinth.com/v2/project/fabric-api/version?loaders=[\"fabric\"]&game_versions=[\"1.20.1\"]"