Modrinth API

Base: https://api.modrinth.com/v2

Modrinth Modpack-Suche mit project_type:modpack Facette.

Verarbeitung: ModrinthProvider
GET /search

Search Modpacks

Search Modrinth for modpacks

Parameter

Name Typ Pflicht Beschreibung
query string Nein Search keyword
facets string Nein e.g. [["project_type:modpack"]]
limit integer Nein Results (default 10)

Antwort-Beispiel

{"hits":[{"slug":"simply-optimized","title":"Simply Optimized","project_type":"modpack","downloads":5000000}],"total_hits":100}

cURL

curl "https://api.modrinth.com/v2/search?query=optimized&facets=[[\"project_type:modpack\"]]"
GET /project/{id|slug}/version

List Modpack Versions

Get versions for a modpack

Parameter

Name Typ Pflicht Beschreibung
id|slug string Ja Project ID or slug
game_versions string Nein e.g. ["1.20.1"]

Antwort-Beispiel

[{"id":"ver123","version_number":"1.5.0","game_versions":["1.20.1"],"files":[{"url":"https://cdn.modrinth.com/...","filename":"pack-1.5.0.mrpack"}]}]

cURL

curl "https://api.modrinth.com/v2/project/simply-optimized/version"