← Geografía y clima

Amanecer y atardecer

GET /geo/sun

Obtenga sunrise, sunset, solar noon, and civil/nautical/astronomical twilight times para cualquier location and date. Devuelve all times in UTC. Útil para photography apps (golden hour planning), outdoor activity schedulers, smart home lighting automation, religious observance apps, and solar energy production estimates. Especially relevant in Nordic regions with extreme daylight variations.

Parametros

lat requerido

Latitude

lon requerido

Longitude

date opcional

Date

Ejemplos de solicitudes

Uso basico
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"

Respuesta en vivo

{
  "data": {
    "astronomical_twilight_begin": "2026-04-05T01:44:54+00:00",
    "astronomical_twilight_end": "2026-04-05T20:54:53+00:00",
    "civil_twilight_begin": "2026-04-05T03:46:30+00:00",
    "civil_twilight_end": "2026-04-05T18:53:17+00:00",
    "day_length": 49446,
    "nautical_twilight_begin": "2026-04-05T02:51:22+00:00",
    "nautical_twilight_end": "2026-04-05T19:48:25+00:00",
    "solar_noon": "2026-04-05T11:19:53+00:00",
    "sunrise": "2026-04-05T04:27:50+00:00",
    "sunset": "2026-04-05T18:11:56+00:00"
  },
  "success": true
}