Aller au contenu
GET /v1/declination

Declination & equation of time

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/solarposition-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

curl "https://api.oanor.com/solarposition-api/v1/declination" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/solarposition-api/v1/declination", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/solarposition-api/v1/declination");
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/declination",
    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 declination is the sun's angle north (+) or south (−) of the equator: about +23.44° at the June solstice, −23.44° in December, ~0° at the equinoxes. The equation of time is the apparent-vs-mean solar time difference.",
        "inputs": {
            "date": "2024-06-20",
            "time": "12:00:00"
        },
        "julian_day": 2460482,
        "declination_deg": 23.438149,
        "equation_of_time_min": -1.707428
    },
    "meta": {
        "timestamp": "2026-06-05T11:30:36.842Z",
        "request_id": "f755e263-3519-4105-96da-39b3d5718dc7"
    },
    "status": "ok",
    "message": "Declination",
    "success": true
}