Naar de inhoud
GET /v1/kelvin

Kelvin to RGB

Probeer het live

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

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

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

Verkrijg een API-sleutel

Codefragmenten

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

Voorbeeldrespons

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

{
    "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
}