Aller au contenu
GET /v1/list

List named colours

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/list" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/colorname-api/v1/list", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/colorname-api/v1/list");
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/list",
    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": {
        "count": 148,
        "colors": [
            {
                "hex": "#f0f8ff",
                "rgb": [
                    240,
                    248,
                    255
                ],
                "name": "aliceblue"
            },
            {
                "hex": "#faebd7",
                "rgb": [
                    250,
                    235,
                    215
                ],
                "name": "antiquewhite"
            },
            {
                "hex": "#00ffff",
                "rgb": [
                    0,
                    255,
                    255
                ],
                "name": "aqua"
            },
            {
                "hex": "#7fffd4",
                "rgb": [
                    127,
                    255,
                    212
                ],
                "name": "aquamarine"
            },
            {
                "hex": "#f0ffff",
                "rgb": [
                    240,
                    255,
                    255
                ],
                "name": "azure"
            },
            {
                "hex": "#f5f5dc",
                "rgb": [
                    245,
                    245,
                    220
                ],
                "name": "beige"
            },
            {
                "hex": "#ffe4c4",
                "rgb": [
                    255,
                    228,
                    196
                ],
                "name": "bisque"
            },
            {
                "hex": "#000000",
                "rgb": [
                    0,
                    0,
                    0
                ],
                "name": "black"
            },
            {
                "hex": "#ffebcd",
                "rgb": [
                    255,
                    235,
                    205
                ],
                "name": "blanchedalmond"
            },
            {
                "hex": "#0000ff",
                "rgb": [
                    0,
                    0,
                    255
                ],
                "name": "blue"
            },
            {
                "hex": "#8a2be2",
                "rgb": [
                    138,
                    43,
                    226
                ],
                "name": "blueviolet"
            },
            {
                "hex": "#a52a2a",
                "rgb": [
                    165,
                    42,
                    42
                ],
                "name": "brown"
            },
            {
                "hex": "#deb887",
                "rgb": [
                    222,
                    184,
                    135
                ],
                "name": "burlywood"
            },
            {
                "hex": "#5f9ea0",
                "rgb": [
                    95,
                    158,
                    160
         
…