/v1/gnomon
Gnomon (style) angle
Pruébalo en vivo
10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.
Funciona. Consigue una clave API y úsala en tu proyecto.
Obtener una clave APIFragmentos de código
curl "https://api.oanor.com/sundial-api/v1/gnomon" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/sundial-api/v1/gnomon", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/sundial-api/v1/gnomon");
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/sundial-api/v1/gnomon",
headers={"x-oanor-key": "oanor_test_..."}
)
Respuesta de ejemplo
Una respuesta real de este endpoint, capturada en la última comprobación de estado.
{
"data": {
"note": "The gnomon's straight edge (the 'style') must point at the celestial pole, parallel to Earth's axis, so its angle above the dial plate is fixed by the latitude: on a horizontal dial the style rises at the latitude angle (50° at 50° N); on a vertical south dial it is 90° − latitude. Get this angle right and the shadow keeps correct time year-round; get it wrong and the dial reads accurately at only one season.",
"inputs": {
"dial_type": "horizontal",
"latitude_deg": 50
},
"style_angle_deg": 50
},
"meta": {
"timestamp": "2026-06-07T08:17:49.811Z",
"request_id": "b3dc1ca3-1cf5-4167-bcfe-f66c56a1b8fb"
},
"status": "ok",
"message": "Gnomon angle",
"success": true
}