theme
SunMoonCalc
FREEMIUM
By kirs26
Updated 4 months ago

SunMoonCalc API Documentation

Calculating sun and moon

Learn more about this API
GETmoon-position
GETsunlight-times
GETsun-position
GETmoon-illumination
GETmoon-rise-and-set-times
GETmoon-position

Moon position

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
dateDATE (YYYY-MM-DD)
REQUIREDDate (eg 2019-10-30)
timeTIME (24-hour HH-MM)
REQUIREDTime (eg 13-20)
longNUMBER
REQUIREDLongitude (eg -0.12)
latNUMBER
REQUIREDLatitude (eg 51.50)
Optional Parameters
result_date_formatSTRING
OPTIONALdate format as a result
Code Snippet
Install SDK
Response ExampleSchema

Install SDK for (Node.js)Unirest

OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication