/v1/inverse-square
Inverse-square scaling
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/photometry-api/v1/inverse-square" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/photometry-api/v1/inverse-square", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/photometry-api/v1/inverse-square");
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/photometry-api/v1/inverse-square",
headers={"x-oanor-key": "oanor_test_..."}
)
Beispiel-Response
Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.
{
"data": {
"note": "Inverse-square law E2 = E1·(d1/d2)². Doubling the distance quarters the illuminance.",
"inputs": {
"distance1": 2,
"distance2": 4,
"illuminance": 250
},
"illuminance_lux": 62.5
},
"meta": {
"timestamp": "2026-06-05T19:50:24.300Z",
"request_id": "1256f5a9-b387-4de9-a24d-06495b87da8f"
},
"status": "ok",
"message": "Inverse-square law",
"success": true
}