Naar de inhoud
GET /v1/room

Lumens needed for a room

Probeer het live

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

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

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

Verkrijg een API-sleutel

Codefragmenten

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

Voorbeeldrespons

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

{
    "data": {
        "note": "Lumens = area (m²) × target lux. Target levels are typical guidance; this is a lumen-method estimate (no room/utilisation factors).",
        "input": {
            "area_m2": 20,
            "room_type": "office",
            "target_lux": 500
        },
        "footcandles": 46.45,
        "total_lumens": 10000,
        "lumens_per_m2": 500
    },
    "meta": {
        "timestamp": "2026-06-03T17:41:55.144Z",
        "request_id": "f7ebaef5-be73-4c75-901c-6149c4d52ed6"
    },
    "status": "ok",
    "message": "Lumens for a room",
    "success": true
}