Naar de inhoud
GET /v1/retina

Retina / viewing-distance analysis

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/ppi-api

Het werkt. Haal een API-key op en gebruik hem in je project.

Verkrijg een API-sleutel

Codefragmenten

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

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste health check.

{
    "data": {
        "note": "‘Retina’ ≈ pixels indistinguishable at the viewing distance (≈60 pixels/degree for 20/20 vision). At or beyond retina_distance the display is retina.",
        "input": {
            "ppi": 326,
            "distance_cm": 25.4,
            "distance_inches": 10
        },
        "is_retina": false,
        "pixels_per_degree": 56.9,
        "retina_distance_cm": 26.8,
        "retina_threshold_ppd": 60,
        "retina_distance_inches": 10.55
    },
    "meta": {
        "timestamp": "2026-06-03T17:41:56.024Z",
        "request_id": "af37958d-786f-41c4-8a41-30b6e3a8df98"
    },
    "status": "ok",
    "message": "Retina / viewing distance",
    "success": true
}