/v1/lens
Thin-lens equation
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/lens-api/v1/lens" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/lens-api/v1/lens", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/lens-api/v1/lens");
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/lens-api/v1/lens",
headers={"x-oanor-key": "oanor_test_..."}
)
Beispiel-Response
Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.
{
"data": {
"note": "Real images form on the far side of the lens (di > 0); virtual images on the same side as the object.",
"formula": "1/f = 1/do + 1/di; m = −di/do.",
"lens_type": "converging (convex)",
"image_size": "reduced",
"image_type": "real",
"focal_length": 10,
"magnification": -0.5,
"image_distance": 15,
"object_distance": 30,
"image_orientation": "inverted"
},
"meta": {
"timestamp": "2026-06-04T10:18:47.018Z",
"request_id": "3f79f6fd-f59d-401b-aae7-39b914b6a074"
},
"status": "ok",
"message": "Thin-lens equation",
"success": true
}