/v1/meta
Spec
Probeer het live
10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.
Het werkt. Haal een API-key op en gebruik hem in je project.
Verkrijg een API-sleutelCodefragmenten
curl "https://api.oanor.com/colorname-api/v1/meta" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/colorname-api/v1/meta", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/colorname-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/colorname-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 Name API",
"notes": "Uses the CSS Color Module Level 4 named-colour set. Distance is perceptual (Lab); 0 means an exact match. Nothing is stored.",
"version": "v1",
"endpoints": [
{
"path": "/v1/nearest",
"params": {
"color": "hex, rgb(), r,g,b or a name (required)"
},
"returns": "the closest named colour, distance and whether it is exact"
},
{
"path": "/v1/name",
"params": {
"name": "a CSS colour name (required)"
},
"returns": "its hex and RGB"
},
{
"path": "/v1/list",
"params": [],
"returns": "all named colours"
},
{
"path": "/v1/meta",
"params": [],
"returns": "this document"
}
],
"description": "Find the nearest named CSS colour to any colour (perceptually, using CIE76 Lab distance), look up a CSS colour name to its hex/RGB, and list all 140+ named colours. Pure local, no key."
},
"meta": {
"timestamp": "2026-06-03T01:09:43.811Z",
"request_id": "ad97512e-9463-409d-972e-b6b0a9390ac9"
},
"status": "ok",
"message": "Meta",
"success": true
}