Zum Inhalt springen
GET /v1/runtime

Run-time to apply a depth

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/irrigation-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

curl "https://api.oanor.com/irrigation-api/v1/runtime" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/irrigation-api/v1/runtime", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/irrigation-api/v1/runtime");
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/runtime",
    headers={"x-oanor-key": "oanor_test_..."}
)

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "data": {
        "note": "Run-time = depth to apply ÷ precipitation rate, then divided by the system efficiency (distribution uniformity) because no system is perfectly even — 75 % is typical for spray, higher for drip. Split long run-times into cycles (cycle-and-soak) on slopes or clay so water soaks in instead of running off.",
        "inputs": {
            "efficiency_pct": 75,
            "water_depth_in": 0.5,
            "precip_rate_in_hr": 1.28
        },
        "base_minutes": 23.4,
        "adjusted_minutes": 31.3
    },
    "meta": {
        "timestamp": "2026-06-06T15:30:44.220Z",
        "request_id": "5bede589-9705-4e61-b69c-949ac57532b3"
    },
    "status": "ok",
    "message": "Run-time",
    "success": true
}