Zum Inhalt springen
GET /v1/fov

Field of view from distance & size

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/viewdistance-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

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

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "data": {
        "note": "Horizontal field of view = 2 · atan(width / (2 · distance)). SMPTE recommends ≥30°, THX 36–40°.",
        "assessment": "Within the SMPTE–THX recommended range.",
        "aspect_ratio": "16:9",
        "diagonal_inches": 65,
        "distance_inches": 105,
        "horizontal_fov_degrees": 30.2
    },
    "meta": {
        "timestamp": "2026-06-04T01:59:10.542Z",
        "request_id": "52228841-62da-466d-a842-38c149c2619b"
    },
    "status": "ok",
    "message": "Field of view from distance and screen size",
    "success": true
}