/v1/size
Physical size from resolution & PPI
Live testen
10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.
Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.
API-Key holenCode-Snippets
curl "https://api.oanor.com/ppi-api/v1/size" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/ppi-api/v1/size", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/ppi-api/v1/size");
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/size",
headers={"x-oanor-key": "oanor_test_..."}
)
Beispiel-Response
Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.
{
"data": {
"note": "Physical size from a resolution and a known PPI.",
"input": {
"ppi": 91.79,
"width": 1920,
"height": 1080
},
"width_cm": 53.13,
"height_cm": 29.89,
"diagonal_cm": 60.96,
"aspect_ratio": "16:9",
"width_inches": 20.917,
"height_inches": 11.766,
"diagonal_inches": 23.999
},
"meta": {
"timestamp": "2026-06-03T17:41:56.121Z",
"request_id": "78ee238f-119a-4fbb-83bb-17aefccabc00"
},
"status": "ok",
"message": "Physical size from PPI",
"success": true
}