Bodies

GET astra/bodies/
View →

All celestial bodies supported by the ephemeris, with name, slug, and symbol.

POST astra/body/altitude-azimuth/
View →

Altitude, azimuth, and compass direction for a celestial body at a datetime.

* body choice * date1 date * lat float * lon float timezone_slug choice
POST astra/body/distance/
View →

Distance between two celestial bodies at a given datetime.

* date1 date * end choice * lat float * lon float * start choice timezone_slug choice
POST astra/body/phase-angle/
View →

Phase angle of a celestial body in degrees at a given datetime.

* body choice * date1 date * lat float * lon float timezone_slug choice
POST astra/body/rise-set/
View →

Rising and setting events for a celestial body over a date range.

* body choice * date1 date * date2 date * lat float * lon float timezone_slug choice

Geography

GET locci/geo/city/
View →

All cities. Filter by region using the region_slug query parameter.

region_slug string
GET locci/geo/city/autocomplete/
View →

City names starting with the posted query string.

q string
POST locci/geo/city/datetime/
View →

Current local date and time for a given city.

* city_slug string is_coastal boolean
POST locci/geo/city/nearby/
View →

Up to five cities nearest to a given city, excluding the city itself.

* city_slug string is_coastal boolean
POST locci/geo/city/nearest/
View →

Nearest city to a given latitude/longitude coordinate.

* lat float * lon float
GET locci/geo/city/{city_slug}/
View →

Single city record identified by slug.

* city_slug string
POST locci/geo/city/search/
View →

Cities whose slugified name starts with the given query string.

* name string
POST locci/geo/city/top/
View →

Top-ranked cities closest to a reference city within a tier.

* city_slug string * top choice
POST locci/geo/city/world-clock/
View →

Current date and time for all world-clock cities, ordered by UTC offset.

GET locci/geo/continent/
View →

All continents with name, slug, and two-letter code.

GET locci/geo/continent/{continent_slug}/
View →

Single continent record identified by slug.

* continent_slug string
GET locci/geo/country/
View →

All countries. Filter by continent using the continent_slug query parameter.

continent_slug string
GET locci/geo/country/{country_slug}/
View →

Single country record identified by slug.

* country_slug string
GET locci/geo/region/
View →

All regions. Filter by country using the country_slug query parameter.

country_slug string
GET locci/geo/region/{region_slug}/
View →

Single region record identified by slug.

* region_slug string

Languages

GET locci/lang/language/
View →

All languages with name, ISO code, and slug.

GET locci/lang/language/{language_slug}/
View →

Single language record identified by slug.

* language_slug string

Moon

POST astra/moon/illumination/
View →

Moon illumination and phase at a datetime, or daily over a date range.

* date1 date * lat float * lon float date2 date timezone_slug choice
POST astra/moon/phases/
View →

Primary moon phase events and daily illumination over a date range.

* date1 date * date2 date * lat float * lon float timezone_slug choice
POST astra/moon/rise-set/
View →

Moonrise and moonset times over a date range.

* date1 date * date2 date * lat float * lon float timezone_slug choice
POST astra/moon/solunar/
View →

Solunar periods and moon activity rating for a single day.

* date1 date * lat float * lon float date2 date timezone_slug choice

Planets

POST astra/planet/summary/
View →

Altitude, azimuth, distance, and rise/set for all planets at a given datetime.

* date1 date * lat float * lon float timezone_slug choice

Sun

POST astra/sun/rise-set/
View →

Sunrise and sunset times and azimuths over a date range.

* date1 date * date2 date * lat float * lon float timezone_slug choice
POST astra/sun/seasons/
View →

Astronomical season change events over a date range.

* date1 date * date2 date * lat float * lon float timezone_slug choice
POST astra/sun/solstice-equinox/
View →

Solstice and equinox events over a date range.

* date1 date * date2 date * lat float * lon float timezone_slug choice
POST astra/sun/twilight/
View →

Twilight band transition times (night → civil → nautical → astronomical) over a date range.

* date1 date * date2 date * lat float * lon float timezone_slug choice

System

POST astra/journal/
View →

All astronomical events for a single day, merged and sorted chronologically.

* date1 date * lat float * lon float timezone_slug choice
GET astra/version/
View →

Current astra API version string.

GET locci/version/
View →

Current locci API version string.

Tides

POST astra/tides/
View →

High and low tide predictions for a single day.

* date1 date * lat float * lon float cutoff_km float timezone_slug choice

Timezones

GET locci/tz/timezone/
View →

All timezones with IANA name, UTC offset, and slug.

GET locci/tz/timezone/{timezone_slug}/
View →

Single timezone record identified by slug.

* timezone_slug choice

Other

GET astra/journal/rss/<slug:city_slug>/
View →