Sun and moon rise, set, transit and twilight
The core ephemerides call. Elevation is a first-class input: supplying elevation shifts sunrise and sunset measurably at altitude, which sea-level-only APIs cannot express.
Features your plan does not include are omitted from the response; the request still succeeds.
Request
- Base URL: https://thirdtrail.life
- URL: https://thirdtrail.life/v1/ephemerides/
- Auth: one of:
- HTTP bearer
- API key in cookie sessionid
Query parameters
Look the elevation up from the coordinates. Paid plans only.
Derive the timezone from the coordinates. Paid plans only.
Number of days to return, from 1. The ceiling is the plan's max_forecast_days; exceeding it returns 400 naming the limit.
Metres above sea level, -500 to 9000. The differentiating input: sunrise at 2000 m is measurably earlier than the sea-level answer most APIs return. Omit to use auto_elevation, or default to 0.
Language for localised names, e.g. moon phase. Paid plans only.
Latitude in decimal degrees, -90 to 90.
Longitude in decimal degrees, -180 to 180.
First day, YYYY-MM-DD. Historical dates are plan-gated.
IANA timezone for output timestamps, e.g. Europe/Dublin.
Fixed offset instead of tz, e.g. +01:00.
Response
No response body
Changes
No recorded changes to this operation across all 1 revision of this API.