CurseForge API

Base: https://api.curseforge.com/v1

CurseForge Modpacks API (classId=4471) — Suche, Details und Datei-Downloads.

Verarbeitung: CurseForgeProvider
GET /mods/search

Search Modpacks

Search CurseForge modpacks

Parameter

Name Typ Pflicht Beschreibung
x-api-key string Ja Your CurseForge API key
gameId integer Ja Game ID (432=Minecraft)
classId integer Nein Class ID (4471=Modpacks)
searchFilter string Nein Search keyword
pageSize integer Nein Results per page (max 50)
index integer Nein Pagination offset

Antwort-Beispiel

{"data":[{"id":261725,"name":"RLCraft","slug":"rlcraft","summary":"A modpack designed around survival","downloadCount":30000000,"classId":4471}],"pagination":{"index":0,"pageSize":20,"totalCount":500}}

cURL

curl -H "x-api-key: YOUR_KEY" "https://api.curseforge.com/v1/mods/search?gameId=432&classId=4471&searchFilter=rlcraft&pageSize=5"
GET /mods/{modId}

Get Modpack Details

Fetch full modpack info

Parameter

Name Typ Pflicht Beschreibung
x-api-key string Ja Your CurseForge API key
modId integer Ja CurseForge modpack ID

Antwort-Beispiel

{"data":{"id":261725,"name":"RLCraft","slug":"rlcraft","summary":"A modpack designed around survival","downloadCount":30000000}}

cURL

curl -H "x-api-key: YOUR_KEY" "https://api.curseforge.com/v1/mods/261725"
GET /mods/{modId}/files

Get Modpack Files

List modpack versions/files

Parameter

Name Typ Pflicht Beschreibung
x-api-key string Ja Your CurseForge API key
modId integer Ja CurseForge modpack ID
gameVersion string Nein Filter by MC version

Antwort-Beispiel

{"data":[{"id":4500000,"displayName":"RLCraft-1.12.2-2.9.2.zip","fileName":"RLCraft-1.12.2-2.9.2.zip","downloadUrl":"https://edge.forgecdn.net/...","gameVersions":["1.12.2","Forge"]}]}

cURL

curl -H "x-api-key: YOUR_KEY" "https://api.curseforge.com/v1/mods/261725/files"