When requesting for location and/or date-time related data, Observer parameters must be sent in the request.
Observer Parameters include the current observer's location and other information. The casing of the properties changes from camel case to snake case when doing a GET request.
Longitude of the observer's location, as Float
Latitude of the observer's location, as Float
Elevation from the sea in Meters as Number
from_date / fromDate
Starting date as Date. When doing a GET request from_date must be used.
to_date / toDate
Ending date as Date. When doing a GET request to_date must be used.
Observer's time as Time
Time and Timezones
Astronomy API treats the time requested, as the observer's time. It finds the timezone of the user based on the location specified by longitude and latitude. The returned times will be as same as the time zone requested.