Aller au contenu
GET /v1/demand

Storage tank sizing

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/rainwater-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/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_..."}
)

Exemple de réponse

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

{
    "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
}