Skip to content
GET /v1/size

Physical size from resolution & PPI

Try it live

10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.

Custom headers (optional)
api.oanor.com/ppi-api

It works. Grab an API key and use it in your project.

Get an API key

Code 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_..."}
)

Example response

A real response from this endpoint, captured by the latest 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
}