Vai al contenuto
GET /v1/dependencies

The projects a project depends on

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/modrinth-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

curl "https://api.oanor.com/modrinth-api/v1/dependencies" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/modrinth-api/v1/dependencies", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/modrinth-api/v1/dependencies");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
    "https://api.oanor.com/modrinth-api/v1/dependencies",
    headers={"x-oanor-key": "oanor_test_..."}
)

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo health check.

{
    "data": {
        "slug": "sodium",
        "count": 2,
        "source": "Modrinth",
        "dependencies": [
            {
                "slug": "canvas",
                "title": "Canvas Renderer",
                "downloads": 60193,
                "project_type": "mod"
            },
            {
                "slug": "notenoughcrashes",
                "title": "Not Enough Crashes",
                "downloads": 11404971,
                "project_type": "mod"
            }
        ]
    },
    "meta": {
        "timestamp": "2026-06-13T13:54:18.227Z",
        "request_id": "d542d0fc-0c81-4147-879d-8bf09169c0b8"
    },
    "status": "ok",
    "message": "Dependencies retrieved successfully",
    "success": true
}