Zum Inhalt springen
GET /v1/firstflush

First-flush diverter volume

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/rainwater-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

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

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

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