Vai al contenuto
GET /v1/harvest

Collected volume from roof + rainfall

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/rainwater-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

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

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo 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
}