/v1/retina
Retina / viewing-distance analysis
Δοκιμάστε το ζωντανά
10 δωρεάν κλήσεις την ημέρα — χωρίς εγγραφή, χωρίς κλειδί API. Μέσω του gateway του oanor.
Δουλεύει. Πάρε ένα κλειδί API και χρησιμοποίησέ το στο έργο σου.
Λάβετε ένα κλειδί APIΑποσπάσματα κώδικα
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_..."}
)
Παράδειγμα απόκρισης
Πραγματική απόκριση αυτού του endpoint, από τον τελευταίο έλεγχο υγείας.
{
"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
}