Naar de inhoud
GET /v1/zone

Maximum heads per zone

Probeer het live

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

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

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

Verkrijg een API-sleutel

Codefragmenten

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

Voorbeeldrespons

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

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