Naar de inhoud
GET /v1/meta

Spec

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

Voorbeeldrespons

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

{
    "data": {
        "name": "Color Temperature API",
        "notes": "Kelvin uses the Tanner Helland black-body approximation; wavelength uses the Dan Bruton visible-spectrum approximation — both are perceptual approximations, not colorimetric (CIE) conversions. For format conversion (hex/RGB/HSL) and palettes use a colour API. Nothing is stored.",
        "version": "v1",
        "endpoints": [
            {
                "path": "/v1/kelvin",
                "params": {
                    "kelvin": "colour temperature in K (1000–40000)"
                },
                "returns": "the RGB/hex colour and a description (warm/neutral/cool)"
            },
            {
                "path": "/v1/wavelength",
                "params": {
                    "nm": "wavelength in nanometres (380–780)"
                },
                "returns": "the approximate RGB/hex colour and the spectral band"
            },
            {
                "path": "/v1/meta",
                "params": [],
                "returns": "this document"
            }
        ],
        "description": "Turn physical light into RGB colours. The kelvin endpoint converts a colour temperature in Kelvin into the RGB colour of a black body at that temperature — warm candle and incandescent tones below 3000 K, neutral and daylight whites around 5000–6500 K, and cool bluish light above — using Tanner Helland's well-known approximation, with a plain-English description. The wavelength endpoint converts a wavelength of visible light in nanometres (380–780 nm) into the approximate RGB colour the eye perceives, with the natural intensity fall-off at the edges of the spectrum, and names the band (violet, blue, green, yellow, orange, red). Pure local, no key."
    },
    "meta": {
        "timestamp": "2026-06-03T09:25:00.315Z",
        "request_id": "3596f300-b8eb-48ca-9e99-7d921426e3b0"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}