Vai al contenuto
GET /v1/room

Lumens needed for a room

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/lighting-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

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

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo 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
}