/v1/demand
Storage tank sizing
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/rainwater-api/v1/demand" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/rainwater-api/v1/demand", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/rainwater-api/v1/demand");
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/rainwater-api/v1/demand",
headers={"x-oanor-key": "oanor_test_..."}
)
Risposta di esempio
Una risposta reale di questo endpoint, acquisita dall'ultimo health check.
{
"data": {
"note": "Required storage = daily demand × dry days. Supply check (if annual_rainfall_mm + area given) compares yearly harvest to yearly demand.",
"dry_days": 30,
"required_storage": {
"litres": 4500,
"uk_gallons": 989.9,
"us_gallons": 1188.8,
"cubic_metres": 4.5
},
"daily_demand_litres": 150
},
"meta": {
"timestamp": "2026-06-04T01:59:11.949Z",
"request_id": "4115c221-92e3-4288-8921-0810e482d07a"
},
"status": "ok",
"message": "Storage tank sizing from demand and a dry spell",
"success": true
}