The sky, computed for exactly where you are.
Sun, moon, twilight, irradiance and tides for any point on Earth. Give us your elevation and the sun and moon times are corrected for it.
- Daylight
- Civil
- Nautical
- Astronomical
- Night
07:49 Sunrise 12:09 Solar noon 16:29 Sunset Dublin, Ireland · 53.3498, -6.2603 at 20 m · Europe/Dublin · Home. Mid-latitude, modest tides.
- Daylight
- Civil
- Nautical
- Astronomical
- Night
07:28 Sunrise 11:55 Solar noon 16:21 Sunset Bristol Channel, United Kingdom · 51.4995, -2.7 at 11 m · Europe/London · One of the largest tidal ranges on Earth.
- Daylight
- Civil
- Nautical
- Astronomical
- Night
09:23 Sunrise 11:28 Solar noon 13:32 Sunset Tromsø, Norway · 69.6492, 18.9553 at 10 m · Europe/Oslo · Inside the Arctic Circle, where the sun barely sets in summer.
- Daylight
- Civil
- Nautical
- Astronomical
- Night
05:35 Sunrise 12:30 Solar noon 19:26 Sunset Cape Town, South Africa · -33.9249, 18.4241 at 25 m · Africa/Johannesburg · Southern hemisphere: opposite season, same call.
- Daylight
- Civil
- Nautical
- Astronomical
- Night
06:47 Sunrise 12:49 Solar noon 18:50 Sunset Singapore, Singapore · 1.3521, 103.8198 at 15 m · Asia/Singapore · Near the equator, so the day is almost the same length all year.
All three computed today by
/v1/ephemerides,
/v1/solar and
/v1/tides.
Create a free account Read the docs
No credit card for the Free tier · Cancel any time
Available APIs
Ephemerides
Sun and moon rise and set times for any latitude, longitude and elevation on Earth, with twilight phases, transit times and lunar phase. No other ephemerides API corrects for elevation.
Solar
Solar position (azimuth, altitude, zenith), clear-sky direct, diffuse and global horizontal irradiance, and Daily Light Integral for any location on Earth. Computed from JPL DE421 with an NREL SPA-equivalent method and the Bird Clear Sky Model, taking the observer's elevation into account.
Tides
Astronomical tide heights, high and low waters, harmonic constituents, and tide windows combined with sun and moon times, for any coastal point on Earth. Computed from the FES2022 global tide atlas for any date, past or future.
Built for these use cases
Each of these has its own page, with request examples for that kind of app.
Photography
Golden hour, blue hour, sunrise and sunset, correct at altitude and available up to a season ahead.
Explore /photo →
Prayer times
Five daily prayers, every major calculation school and a choice of Asr method, with times corrected for elevation in mountain towns.
Explore /prayer-times →
Marine
Civil and nautical twilight, first and last light, and moon phase and altitude for tide planning.
Explore /marine →
Coastal & tides
Tide heights and high and low waters for any coastline on Earth (FES2022), with sun and moon data in the same call.
Explore /coastal →
See all use cases (smart home, agriculture, PV monitoring, EV charging, …) →
Why thirdtrail
Predictable pricing
Flat monthly plans from €6, with no annual contract. There is no overage billing, so a busy month costs the same as a quiet one.
A free tier you can use
100 calls a day on every API, forever, with no card on file. Upgrade when your traffic needs it.
Built for developers
Keys are stored hashed. You get usage stats for each key, daily, weekly and monthly caps, and room for short bursts. It's plain REST, so you don't need an SDK.
Built for agents too
There's an MCP server and a published OpenAPI schema, so Claude, Cursor or your own agent can call the APIs without you writing an integration. MCP tool calls need a paid plan.
Getting started
- Create a free account. It takes about 30 seconds.
- Subscribe to an API plan from your dashboard (Free is one click).
- Generate an API key. It's shown only once, so put it in your secret manager.
- Call any endpoint with
Authorization: Bearer <your_key>.
curl -H "Authorization: Bearer tt_live_xxxxx" \
"https://thirdtrail.life/v1/ephemerides/?lat=53.3498&lon=-6.2603"
{
"timezone": "Europe/Dublin",
"days": [
{
"date": "2026-11-14",
"sun": {
"rise": "2026-11-14T07:49:09Z",
"transit": "2026-11-14T12:09:28Z",
"set": "2026-11-14T16:29:10Z"
},
"moon": {
"rise": "2026-11-14T12:54:13Z",
"set": "2026-11-14T20:03:29Z",
"phase": {
"name": "Waxing Crescent",
"illumination": 0.2302
}
}
}
]
}
Start for free
The free tier needs no credit card and gives you 100 calls a day. Paid plans start at €6/month and you can cancel any time.