Μετάβαση στο περιεχόμενο
GET /v1/gnomon

Gnomon (style) angle

Δοκιμάστε το ζωντανά

10 δωρεάν κλήσεις την ημέρα — χωρίς εγγραφή, χωρίς κλειδί API. Μέσω του gateway του oanor.

Προσαρμοσμένες κεφαλίδες (προαιρετικά)
api.oanor.com/sundial-api

Δουλεύει. Πάρε ένα κλειδί API και χρησιμοποίησέ το στο έργο σου.

Λάβετε ένα κλειδί API

Αποσπάσματα κώδικα

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_..."}
)

Παράδειγμα απόκρισης

Πραγματική απόκριση αυτού του endpoint, από τον τελευταίο έλεγχο υγείας.

{
    "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
}