Vai al contenuto
GET /v1/solar-noon

Solar noon & day length

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/solarposition-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

curl "https://api.oanor.com/solarposition-api/v1/solar-noon" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/solarposition-api/v1/solar-noon", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/solarposition-api/v1/solar-noon");
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/solarposition-api/v1/solar-noon",
    headers={"x-oanor-key": "oanor_test_..."}
)

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo health check.

{
    "data": {
        "note": "Solar noon is when the sun is highest (hour angle 0); peak elevation = 90 − |latitude − declination|. Day length is the geometric time the sun centre is above the horizon (no atmospheric refraction).",
        "inputs": {
            "date": "2024-06-20",
            "latitude": 40,
            "timezone": 0,
            "longitude": 0
        },
        "condition": null,
        "declination_deg": 23.438149,
        "day_length_hours": 14.84429,
        "solar_noon_local": "12:01",
        "max_elevation_deg": 73.438149
    },
    "meta": {
        "timestamp": "2026-06-05T11:30:37.039Z",
        "request_id": "e55f1fe7-83c2-4ea6-8456-35120b624f25"
    },
    "status": "ok",
    "message": "Solar noon",
    "success": true
}