Astronomy API Guide

 

Types of Searches:

 

 

 

Astronomy By LocationKey and Date Range

http://{{api} or {{apidev}}.accuweather.com/astronomy/{version}/{locationKey}{.{format}}?apikey={your key}{&start={start date}}{&end={end date}}

Example:

http://api.accuweather.com/astronomy/v1/349727?apikey={your key}&start=1/1/2014&end=1/2/2014

Top of Page

 

 

 

Astronomy By LocationKey, Start Date and Number of Days

http://{{api} or {{apidev}}.accuweather.com/astronomy/{version}/{locationKey}{.{format}}?apikey={your key}{&start={start date}}{&days={number of days}}

Example:

http://api.accuweather.com/astronomy/v1/349727?apikey={your key}&start=1/1/2014&days=2

Top of Page

 



 

Astronomy for Today By LocationKey

http://{{api} or {{apidev}}.accuweather.com/astronomy/{version}/{locationKey}{.{format}}?apikey={your key}

Example:

http://api.accuweather.com/astronomy/v1/623?apikey={your key}

Top of Page

 



 

Astronomy By Latitude/Longitude and Date Range

http://{{api} or {{apidev}}.accuweather.com/astronomy/{version}/geoposition{.{format}}?q={latitude, longitude}&apikey={your key}{&start={start date}}{&end={end date}}{&gmtoffset={gmt offset}}

Example:

http://api.accuweather.com/astronomy/v1/geoposition?q=40,-73&apikey={your key}&start=1/1/2014&end=1/2/2014&gmtoffset=-5

Top of Page

 



 

Astronomy By Latitude/Longitude, Start Date and Number of Days

http://{{api} or {{apidev}}.accuweather.com/astronomy/{version}/geoposition{.{format}}?q={latitude, longitude}&apikey={your key}{&start={start date}}{&days={number of days}}{&gmtoffset={gmt offset}}

Example:

http://api.accuweather.com/astronomy/v1/geoposition?q=40,-73&apikey={your key}&start=1/1/2014&days=1&gmtoffset=-5

Top of Page

 



 

Astronomy for Today By Latitude/Longitude

http://{{api} or {{apidev}}.accuweather.com/astronomy/{version}/geoposition{.{format}}?q={latitude, longitude}&apikey={your key}{&gmtoffset={gmt offset}}

Example:

http://api.accuweather.com/astronomy/v1/geoposition?q=40,-73&apikey={your key}&gmtoffset=-5

Top of Page

 



 

Major Moon Phases By Date Range

http://{{api} or{{apidev}}.accuweather.com/astronomy/{version}/moons{.{format}} ?start={start date} &end={end date} &days={# days} &apikey={your key}

Example:

http://api.accuweather.com/astronomy/v1/moons?start=1/1/2014&end=1/30/2014&apikey={your key}

Top of Page

 



 

Major Moon Phases By Start Date and Number of Days

http://{{api} or{{apidev}}.accuweather.com/astronomy/{version}/moons{.{format}} ?start={start date}&days={number of days} &apikey={your key}

Example:

http://api.accuweather.com/astronomy/v1/moons?start=1/1/2014&days=13&apikey={your key}

Top of Page

 



 

Major Moon Phases By Start Date and Number of Phases

http://{{api} or {{apidev}}.accuweather.com/astronomy/{version}/moons{.{format}} ?start={start date} &phases={# major phases} &apikey={your key}

Example:

http://api.accuweather.com/astronomy/v1/moons?start=1/1/2014&phases=10&apikey={your key}

Top of Page