Plan your night sky photography sessions around moon visibility for optimal results.
Astrophotographers need to know when the moon will be up (for moon shots) or down (for dark sky/Milky Way shots). Moon rise times change daily by nearly an hour, making manual tracking difficult.
Query moonrise and moonset times for your shooting location to find windows of moon-free darkness for Milky Way shots, or plan moon photography sessions when it's optimally visible.
const res = await fetch("https://api.apiverve.com/v1/moonrisemoonset?lat=37.7749&lon=-122.4194&date=01-16-2026", {
headers: { "x-api-key": "YOUR_API_KEY" },
});
const { data } = await res.json();
console.log(data);