/v1/solar-noon
Solar noon & day length
Essayez-le en direct
10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.
Ça marche. Récupérez une clé API et utilisez-la dans votre projet.
Obtenez une clé APIExtraits de code
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_..."}
)
Exemple de réponse
Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.
{
"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
}