← Géo et météo

Lever et coucher du soleil

GET /geo/sun

Obtenez les heures de lever, coucher du soleil, solar noon, et civil/nautical/astronomical twilight times pour tout location et date. Renvoie all times in UTC. Utile pour les photography apps (golden hour planning), outdoor activity schedulers, maison intelligente lighting automation, religious observance apps, et solar energy production estimates. Especially relevant in Nordic regions avec extreme daylight variations.

Paramètres

lat requis

Latitude

lon requis

Longitude

date optionnel

Date

Exemples de requêtes

Utilisation de base
curl "https://nordapi.ee/api/v1/geo/sun?lat=59.9&lon=10.7"
Sunrise and sunset in Oslo today
curl "https://nordapi.ee/api/v1/geo/sun?lat=59.9&lon=10.7"
Sunrise in Tromso on midsummer
curl "https://nordapi.ee/api/v1/geo/sun?lat=69.65&lon=18.96&date=2026-06-21"
Sunset in Cape Town on a specific date
curl "https://nordapi.ee/api/v1/geo/sun?lat=-33.93&lon=18.42&date=2026-12-25"

Réponse en direct

{
  "data": {
    "astronomical_twilight_begin": "2026-04-09T01:24:03+00:00",
    "astronomical_twilight_end": "2026-04-09T21:13:30+00:00",
    "civil_twilight_begin": "2026-04-09T03:33:38+00:00",
    "civil_twilight_end": "2026-04-09T19:03:55+00:00",
    "day_length": 50752,
    "nautical_twilight_begin": "2026-04-09T02:36:21+00:00",
    "nautical_twilight_end": "2026-04-09T20:01:12+00:00",
    "solar_noon": "2026-04-09T11:18:46+00:00",
    "sunrise": "2026-04-09T04:15:50+00:00",
    "sunset": "2026-04-09T18:21:42+00:00"
  },
  "success": true
}