Aller au contenu
GET /v1/efficacy

Lumens / watts / efficacy

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/lighting-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

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

Exemple de réponse

Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.

{
    "data": {
        "note": "Luminous efficacy (lm/W) relates light output to power. Presets: incandescent 14, halogen 20, CFL 60, fluorescent 80, LED 90.",
        "input": {
            "watts": null,
            "lumens": 800,
            "efficacy": 90,
            "bulb_type": "led"
        },
        "watts": 8.89,
        "lumens": 800,
        "efficacy_lm_per_w": 90
    },
    "meta": {
        "timestamp": "2026-06-03T17:41:54.976Z",
        "request_id": "d984cdaa-8a91-4936-8db7-d10c68c4d598"
    },
    "status": "ok",
    "message": "Lumens / watts / efficacy",
    "success": true
}