Astronomy API Guide

Astronomy by location key 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 location key, 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 location key

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