/v1/meta
Spec
Δοκιμάστε το ζωντανά
10 δωρεάν κλήσεις την ημέρα — χωρίς εγγραφή, χωρίς κλειδί API. Μέσω του gateway του oanor.
Δουλεύει. Πάρε ένα κλειδί API και χρησιμοποίησέ το στο έργο σου.
Λάβετε ένα κλειδί APIΑποσπάσματα κώδικα
curl "https://api.oanor.com/solarposition-api/v1/meta" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/solarposition-api/v1/meta", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/solarposition-api/v1/meta");
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/meta",
headers={"x-oanor-key": "oanor_test_..."}
)
Παράδειγμα απόκρισης
Πραγματική απόκριση αυτού του endpoint, από τον τελευταίο έλεγχο υγείας.
{
"data": {
"notes": "Latitude/longitude in degrees (east & north positive), date YYYY-MM-DD, time HH:MM[:SS] local, timezone the UTC offset in hours. Azimuth is clockwise from true north.",
"service": "solarposition-api",
"formulae": {
"elevation": "sin(elev) = sin(lat)·sin(δ) + cos(lat)·cos(δ)·cos(H)",
"day_length": "2·acos(−tan(lat)·tan(δ)) / 15 hours",
"max_elevation": "90 − |latitude − declination|"
},
"endpoints": {
"GET /v1/meta": "This document.",
"GET /v1/position": "Sun elevation, azimuth, zenith and hour angle for a latitude/longitude, date and local time.",
"GET /v1/solar-noon": "Solar-noon clock time, peak elevation and day length for a place and date.",
"GET /v1/declination": "Solar declination and equation of time for a date (no location needed)."
},
"description": "Solar position calculator (NOAA algorithm): sun declination and equation of time, elevation/azimuth/zenith for a place and instant, and solar noon, peak elevation and day length."
},
"meta": {
"timestamp": "2026-06-05T11:30:37.159Z",
"request_id": "64657e03-1c57-458d-9740-5f9db365709d"
},
"status": "ok",
"message": "Meta",
"success": true
}