/v1/firstflush
First-flush diverter volume
Pruébalo en vivo
10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.
Funciona. Consigue una clave API y úsala en tu proyecto.
Obtener una clave APIFragmentos de código
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_..."}
)
Respuesta de ejemplo
Una respuesta real de este endpoint, capturada en la última comprobación de estado.
{
"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
}