Events
Get celestial events for a given body for the given date range.
Last updated
Was this helpful?
Get celestial events for a given body for the given date range.
Last updated
Was this helpful?
Events API can return events for a single body for the given date range. In the events API currently, only the bodies Sun
and Moon
are supported.
See for available event properties for bodies.
GET
https://api.astronomyapi.com/api/v2/bodies/events/:body
Returns events for the given body for the given date range in tabular format.
body*
string
ID of the body
latitude*
string
Latitude of the observer's location
longitude*
string
Longitude of the observer's location
elevation*
string
Elevation from the sea in Meters
from_date*
string
Starting date as Date. The maximum number of days you can query is 366 days.
to_date*
string
Ending date as Date. The maximum number of days you can query is 366 days.
time*
string
Observer's time as Time
output
string
Output format.
rows
or
table
. Default is
table
Authorization*
string
Basic