Ir al contenido
GET /v1/harvest

Collected volume from roof + rainfall

Pruébalo en vivo

10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.

Encabezados personalizados (opcional)
api.oanor.com/rainwater-api

Funciona. Consigue una clave API y úsala en tu proyecto.

Obtener una clave API

Fragmentos de código

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

Respuesta de ejemplo

Una respuesta real de este endpoint, capturada en la última comprobación de estado.

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