/v1/firstflush
First-flush diverter volume
Essayez-le en direct
10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.
Ça marche. Récupérez une clé API et utilisez-la dans votre projet.
Obtenez une clé APIExtraits de code
curl "https://api.oanor.com/rainwater-api/v1/firstflush" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/rainwater-api/v1/firstflush", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/rainwater-api/v1/firstflush");
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/firstflush",
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": "First-flush diverter discards the dirty first ~0.5–2 mm of rain. Volume = area(m²) × flush(mm).",
"flush_mm": 0.5,
"diverter_volume": {
"litres": 40,
"uk_gallons": 8.8,
"us_gallons": 10.6,
"cubic_metres": 0.04
},
"catchment_area_m2": 80
},
"meta": {
"timestamp": "2026-06-04T01:59:12.018Z",
"request_id": "a2d3cea7-ef25-4d88-b0b2-afff2006122d"
},
"status": "ok",
"message": "First-flush diverter volume",
"success": true
}