Naar de inhoud
GET /v1/solar-noon

Solar noon & day length

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/solarposition-api

Het werkt. Haal een API-key op en gebruik hem in je project.

Verkrijg een API-sleutel

Codefragmenten

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

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste 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
}