Naar de inhoud
GET /v1/harvest

Collected volume from roof + rainfall

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/rainwater-api

Het werkt. Haal een API-key op en gebruik hem in je project.

Verkrijg een API-sleutel

Codefragmenten

curl "https://api.oanor.com/rainwater-api/v1/harvest" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/rainwater-api/v1/harvest", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/rainwater-api/v1/harvest");
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/harvest",
    headers={"x-oanor-key": "oanor_test_..."}
)

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste health check.

{
    "data": {
        "note": "Collected ≈ area(m²) × rainfall(mm) × runoff coefficient. 1 mm over 1 m² = 1 litre before losses.",
        "collected": {
            "litres": 2250,
            "uk_gallons": 494.9,
            "us_gallons": 594.4,
            "cubic_metres": 2.25
        },
        "rainfall_mm": 25,
        "catchment_area_m2": 100,
        "coefficient_source": "metal",
        "runoff_coefficient": 0.9
    },
    "meta": {
        "timestamp": "2026-06-04T01:59:12.109Z",
        "request_id": "8d78cd32-d94c-4be5-b5bd-468b2b935bc2"
    },
    "status": "ok",
    "message": "Collected volume from roof area and rainfall",
    "success": true
}