/v1/demand
Storage tank sizing
Probeer het live
10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.
Het werkt. Haal een API-key op en gebruik hem in je project.
Verkrijg een API-sleutelCodefragmenten
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_..."}
)
Voorbeeldrespons
Een echte respons van dit endpoint, vastgelegd bij de laatste 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
}