Sun and moon
Sun and moon for a date
For a pincode, a latitude and longitude, or (by default) New Delhi. A twilight time is null where the sun does not sink that far, and moonrise or moonset is null on the day each month the moon does not rise or set. The phase names a principal phase (new moon, first quarter, full moon, last quarter) for the whole date it falls on.
get/v1/sun-moon/{date}
Request
- Base URL: https://api.dharun.dev
- URL: https://api.dharun.dev/v1/sun-moon/{date}
- Auth: none declared
Path parameters
datestring required
YYYY-MM-DD, 1900 to 2100, or today.
Query parameters
pincodestring
Indian pincode of the place.
latnumber
Latitude, -66 to 66, if no pincode.
lngnumber
Longitude, if no pincode.
tzstring
IANA time zone for the times. Default Asia/Kolkata.
Response
Success
Changes
No recorded changes to this operation across all 1 revision of this API.