Zum Inhalt springen
GET /v1/simulate

Simulate a colour under CVD

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/colorblind-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

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

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "data": {
        "original": "#ff0000",
        "simulations": {
            "protanopia": {
                "hex": "#918e00",
                "rgb": {
                    "b": 0,
                    "g": 142,
                    "r": 145
                },
                "label": "red-blind"
            },
            "tritanopia": {
                "hex": "#f20000",
                "rgb": {
                    "b": 0,
                    "g": 0,
                    "r": 242
                },
                "label": "blue-blind"
            },
            "deuteranopia": {
                "hex": "#9fb300",
                "rgb": {
                    "b": 0,
                    "g": 179,
                    "r": 159
                },
                "label": "green-blind"
            },
            "achromatopsia": {
                "hex": "#4c4c4c",
                "rgb": {
                    "b": 76,
                    "g": 76,
                    "r": 76
                },
                "label": "total color blindness"
            }
        }
    },
    "meta": {
        "timestamp": "2026-06-02T16:51:59.757Z",
        "request_id": "65bff257-167f-4c05-ab67-41d6665a6167"
    },
    "status": "ok",
    "message": "Simulate a colour",
    "success": true
}