/v1/declination
Declination & equation of time
Δοκιμάστε το ζωντανά
10 δωρεάν κλήσεις την ημέρα — χωρίς εγγραφή, χωρίς κλειδί API. Μέσω του gateway του oanor.
Δουλεύει. Πάρε ένα κλειδί API και χρησιμοποίησέ το στο έργο σου.
Λάβετε ένα κλειδί APIΑποσπάσματα κώδικα
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_..."}
)
Παράδειγμα απόκρισης
Πραγματική απόκριση αυτού του endpoint, από τον τελευταίο έλεγχο υγείας.
{
"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
}