/v1/harvest
Collected volume from roof + rainfall
Live testen
10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.
Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.
API-Key holenCode-Snippets
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_..."}
)
Beispiel-Response
Echte Antwort dieses Endpoints, erfasst beim letzten 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
}