Aller au contenu
GET /v1/substrate

Substrate volume and bags

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/aquascape-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

curl "https://api.oanor.com/aquascape-api/v1/substrate" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/aquascape-api/v1/substrate", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/aquascape-api/v1/substrate");
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/aquascape-api/v1/substrate",
    headers={"x-oanor-key": "oanor_test_..."}
)

Exemple de réponse

Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.

{
    "data": {
        "note": "Substrate volume = footprint area × depth. A planted tank wants ~5–8 cm, sloped deeper at the back for depth and rooting; carpets and big root-feeders like the upper end. Aquasoil bags are commonly ~9 L — set bag_liters for your product. Buy a little extra for a slope.",
        "inputs": {
            "depth_cm": 6,
            "width_cm": 30,
            "length_cm": 60,
            "bag_liters": 9
        },
        "bags_needed": 2,
        "substrate_liters": 10.8
    },
    "meta": {
        "timestamp": "2026-06-06T15:30:47.677Z",
        "request_id": "f570017b-c498-4f4d-a803-a5e5ef2a77b2"
    },
    "status": "ok",
    "message": "Substrate volume",
    "success": true
}