/v1/substrate
Substrate volume and bags
Provalo dal vivo
10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.
Funziona. Prendi una chiave API e usala nel tuo progetto.
Ottieni una chiave APIFrammenti di codice
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_..."}
)
Risposta di esempio
Una risposta reale di questo endpoint, acquisita dall'ultimo health check.
{
"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
}