Naar de inhoud
GET /v1/nearest

Nearest named colour

Probeer het live

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

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

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

Verkrijg een API-sleutel

Codefragmenten

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

Voorbeeldrespons

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

{
    "data": {
        "lab": [
            53.0633,
            79.7986,
            66.5034
        ],
        "nearest_hex": "#ff0000",
        "delta_e_2000": 0.266671,
        "nearest_name": "red"
    },
    "meta": {
        "timestamp": "2026-06-03T17:42:11.061Z",
        "request_id": "a31e04c3-af66-40f7-b7c9-babb095a36b3"
    },
    "status": "ok",
    "message": "Nearest named",
    "success": true
}