Ir al contenido
GET /v1/zone

Maximum heads per zone

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/irrigation-api

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

Obtener una clave API

Fragmentos de código

curl "https://api.oanor.com/irrigation-api/v1/zone" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/irrigation-api/v1/zone", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/irrigation-api/v1/zone");
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/irrigation-api/v1/zone",
    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": "Max heads per zone = available flow ÷ each head's GPM, rounded down — never exceed the supply or every head loses pressure and throw. Find available GPM from your service pipe size and pressure, and leave a margin. For drip, total emitter GPH must likewise stay under the zone's capacity.",
        "inputs": {
            "gpm_per_head": 2.6,
            "available_gpm": 13
        },
        "used_gpm": 13,
        "max_heads": 5,
        "spare_gpm": 0
    },
    "meta": {
        "timestamp": "2026-06-06T15:30:44.307Z",
        "request_id": "572b3c5f-9f74-4cf3-9b4f-e3779ce91279"
    },
    "status": "ok",
    "message": "Zone heads",
    "success": true
}