/v1/meta
Spec
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/meta" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/ppi-api/v1/meta", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/ppi-api/v1/meta");
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/meta",
headers={"x-oanor-key": "oanor_test_..."}
)
Beispiel-Response
Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.
{
"data": {
"note": "For screen/display pixel density. For print resolution and image-to-print sizing use a DPI API.",
"service": "ppi",
"endpoints": {
"/v1/ppi": "PPI, dot pitch, aspect ratio and physical size from a resolution and a diagonal (inches).",
"/v1/size": "Physical dimensions (inches/cm) from a resolution and a known PPI.",
"/v1/retina": "Pixels-per-degree and whether a display is ‘retina’ at a viewing distance."
},
"description": "Screen/display pixel-density maths: PPI from resolution & diagonal, physical size from PPI, and retina / viewing-distance analysis."
},
"meta": {
"timestamp": "2026-06-03T17:41:56.225Z",
"request_id": "1ade03d7-0380-4ec4-b43f-14a908f9f826"
},
"status": "ok",
"message": "Meta",
"success": true
}