🗓️Events
Get celestial events for a given body for the given date range.
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 Event Properties for available event properties for bodies.
Get events for the given body
GET
https://api.astronomyapi.com/api/v2/bodies/events/:body
Returns events for the given body for the given date range in tabular format.
Path Parameters
Name | Type | Description |
---|---|---|
body* | string | ID of the body |
Query Parameters
Name | Type | Description |
---|---|---|
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.
or
. Default is
|
Headers
Name | Type | Description |
---|---|---|
Authorization* | string | Basic |
Last updated