/v1/demand
Storage tank sizing
Live testen
10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.
Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.
API-Key holenCode-Snippets
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_..."}
)
Beispiel-Response
Echte Antwort dieses Endpoints, erfasst beim letzten 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
}