First light, last light,
and the twilight windows in between.

Civil and nautical twilight for any waypoint, plus the moon phase and altitude you need for tide planning. Times are corrected for elevation, so they also work on inland reservoirs and high mountain lakes.

Read the API docs See pricing

⚠️ Informational use only. Not for navigation or safety-of-life decisions. These sun, moon and twilight times are computed for convenience and are elevation-corrected, so they deliberately differ from the standard, level-horizon civil-twilight times that aviation and maritime regulators require. Do not use them for flight planning, to determine legal day/night or “lights-on” times, for navigation, or for any other safety-of-life purpose. Always verify against an official source. Safe use & disclaimers →

Civil twilight

Useful for planning around the “lights on” period, when bright stars are visible and the horizon is still clear. Note: the binding navigation-light times are sunset to sunrise, as set by COLREGs or your maritime authority, not a computed twilight value.

Nautical twilight

When celestial navigation becomes possible, with the sun's centre between −6° and −12°.

Moon phase + tides

We provide the tides too. Pair this response with our Tides API (FES2022) for high and low waters at any point, or call /v1/tides/window/ to get tide, light and moon data together.

Plan a passage ahead

curl -H "Authorization: Bearer $THIRDTRAIL_KEY" \
  "https://thirdtrail.life/v1/ephemerides/?lat=49.5000&lon=-2.5333&days=7&tz=Europe/London"

Guernsey, a week ahead. For each day you get sunrise and sunset, transit (solar noon), the four twilight phases, golden and blue hour, and the moon's rise, set and phase.

Push instead of poll

Subscribe to a webhook and we'll call your endpoint at civil dusk for your next waypoint:

curl -X POST -H "Authorization: Bearer $KEY" \
     -H "Content-Type: application/json" \
     -d '{
       "event_type": "civil_dusk",
       "lat": 49.5, "lon": -2.5333,
       "callback_url": "https://yourapp.com/wh/twilight",
       "horizon_days": 30
     }' \
     "https://thirdtrail.life/v1/ephemerides/webhooks/"

Pro plans and up. We POST an HMAC-signed payload to your endpoint when the event happens, and retry if the delivery fails. The full webhook contract is in the docs.

Twilight conventions

  • Civil twilight: sun centre at −0.83° to −6°. Streetlights typically off; bright stars visible. Informational only: navigation-light timing is set by COLREGs or your maritime authority (sunset to sunrise), not by this value.
  • Nautical twilight: −6° to −12°. Horizon is distinguishable; navigation by stars is feasible.
  • Astronomical twilight: −12° to −18°. Faint celestial objects observable.

A null twilight value means the sun never crossed that boundary during the local day. This is normal at high latitudes: in Dublin, for example, astronomical twilight does not occur from mid-May to late July.

Start using it

Create a free account