/v1/dli
DLI from PPFD
Try it live
10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.
It works. Grab an API key and use it in your project.
Get an API keyCode snippets
curl "https://api.oanor.com/hydroponics-api/v1/dli" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/hydroponics-api/v1/dli", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/hydroponics-api/v1/dli");
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/hydroponics-api/v1/dli",
headers={"x-oanor-key": "oanor_test_..."}
)
Example response
A real response from this endpoint, captured by the latest health check.
{
"data": {
"dli": 38.88,
"note": "DLI (mol/m²/day) = PPFD (µmol/m²/s) × photoperiod(h) × 3600 ÷ 1,000,000. Leafy greens want ~12–17, fruiting crops ~20–30+.",
"inputs": {
"ppfd": 600,
"photoperiod": 18
}
},
"meta": {
"timestamp": "2026-06-05T21:48:44.969Z",
"request_id": "760d0282-3e28-43b4-a2b1-60e1dd00de43"
},
"status": "ok",
"message": "DLI from PPFD",
"success": true
}