/v1/declination
Declination & equation of time
Try it live
10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.
It works. Grab an API key and use it in your project.
Get an API keyCode snippets
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_..."}
)
Example response
A real response from this endpoint, captured by the latest health check.
{
"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
}