/v1/inverse-square
Inverse-square scaling
Provalo dal vivo
10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.
Funziona. Prendi una chiave API e usala nel tuo progetto.
Ottieni una chiave APIFrammenti di codice
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_..."}
)
Risposta di esempio
Una risposta reale di questo endpoint, acquisita dall'ultimo 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
}