AstronomyAPI
  • 🚀Getting Started
  • API v2 Reference
    • 🪐Bodies
      • 🌐Positions
      • 🗓️Events
    • 📸Studio
      • ✨Star Chart
      • 🌒Moon Phase
    • 🔎Search
  • 🤝Requests and Responses
    • 🪐Body Properties
    • 🕚Event Properties
    • 🔎Search Result Properties
    • 🔭Observer Parameters
    • 🗓️Tabular Responses
    • 🔢Rows Responses
    • 🚩Error Responses
    • 🔢Constellation Enums
    • 🔢DSO Enums
  • Page
  • 🧩Widgets
  • ⚠️Known Issues
  • 📕Changelog
  • Links
    • demo.astronomyapi.com
    • Sample code on Github
    • Back to Dashboard
Powered by GitBook
On this page

Was this helpful?

  1. Requests and Responses

Observer Parameters

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.

Parameter

Required

Description

Sample Value

longitude

Yes

Longitude of the observer's location, as Float

-84.39733

latitude

Yes

Latitude of the observer's location, as Float

33.775867

elevation

Yes

Elevation from the sea in Meters as Number

50

from_date / fromDate

Yes

Starting date as Date. When doing a GET request from_date must be used.

2018-12-20

to_date / toDate

Yes

Ending date as Date. When doing a GET request to_date must be used.

2018-12-22

time

Yes

Observer's time as Time

08:00:00

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.

PreviousSearch Result PropertiesNextTabular Responses

Last updated 1 year ago

Was this helpful?

🤝
🔭