Aller au contenu
GET /v1/meta

Spec

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/colorname-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

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

Exemple de réponse

Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.

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