Aller au contenu
GET /v1/kelvin

Kelvin to RGB

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/colortemp-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/colortemp-api/v1/kelvin" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/colortemp-api/v1/kelvin", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/colortemp-api/v1/kelvin");
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/colortemp-api/v1/kelvin",
    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": {
        "css": "rgb(255, 167, 87)",
        "hex": "#ffa757",
        "rgb": {
            "b": 87,
            "g": 167,
            "r": 255
        },
        "kelvin": 2700,
        "description": "warm white (incandescent)"
    },
    "meta": {
        "timestamp": "2026-06-03T09:25:00.119Z",
        "request_id": "9da7d942-55ba-44a4-a787-6f2039507e5d"
    },
    "status": "ok",
    "message": "Kelvin to RGB",
    "success": true
}