Ir al contenido
GET /v1/dependencies

The projects a project depends on

Pruébalo en vivo

10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.

Encabezados personalizados (opcional)
api.oanor.com/modrinth-api

Funciona. Consigue una clave API y úsala en tu proyecto.

Obtener una clave API

Fragmentos de código

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_..."}
)

Respuesta de ejemplo

Una respuesta real de este endpoint, capturada en la última comprobación de estado.

{
    "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
}