/v1/simulate
Simulate a colour under CVD
Essayez-le en direct
10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.
Ça marche. Récupérez une clé API et utilisez-la dans votre projet.
Obtenez une clé APIExtraits de code
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_..."}
)
Exemple de réponse
Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.
{
"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
}