/v1/nearest
Nearest named colour
Live testen
10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.
Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.
API-Key holenCode-Snippets
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_..."}
)
Beispiel-Response
Echte Antwort dieses Endpoints, erfasst beim letzten 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
}