Zum Inhalt springen
GET /v1/solar-noon

Solar noon & day length

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/solarposition-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

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_..."}
)

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "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
}