Calculate the precise position of the moon in the sky for any location and time. Get altitude (elevation angle), azimuth (compass direction), distance from Earth, and parallactic angle. Essential for astronomy applications, astrophotography planning, and tidal prediction systems.
{
"status": "ok",
"error": null,
"data": {
"date": "01-22-2026",
"time": "14:30",
"coordinates": {
"latitude": 37.7749,
"longitude": -122.4194
},
"moon": {
"altitude": -0.407908976399288,
"azimuth": 1.4720499058762104,
"distance": 404332.6834067969
}
}
}






Calculate the precise position of the moon in the sky for any location and time. Get altitude (elevation angle), azimuth (compass direction), distance from Earth, and parallactic angle. Essential for astronomy applications, astrophotography planning, and tidal prediction systems.
A single authenticated GET with the location you care about — no SDK required.
GET /v1/moonposition?query=… x-api-key: your_key
Each request pulls from multiple upstream sources and computes the derived fields for you.
One structured object, typically under 200 ms — ready to render.
{ date, time, coordinates, … }
Real applications shipping on this endpoint today — each with the numbers that made it worth wiring up.
See every use caseOur Moon Position API provides altitude, azimuth, and illumination data for any time and location. Plan compositions with earthly foregrounds, predict when the moon will clear the horizon, and know exactly how bright it will be.
Feed real-time moon position data directly into your telescope control software. Get precise altitude and azimuth for alt-az mounts, plus parallactic angle for equatorial mount alignment.
Integrate moon position data to show users optimal activity windows. When moon altitude indicates the moon is directly overhead (~90°) or underfoot (~-90° from opposite point), highlight these as prime activity times.
Copy a working request, or install a typed SDK. Same endpoint, same key.
const res = await fetch("https://api.apiverve.com/v1/moonposition?lat=37.7749&lon=-122.4194&date=01-16-2026&time=14%3A30", {
headers: { "x-api-key": "YOUR_API_KEY" },
});
const { data } = await res.json();
console.log(data);Every related API ships with your key — no separate plans, no extra keys, one bill.
See pricingReady-made recipes for Zapier, Make, and n8n — trigger on an event, and the data lands where your team works.
The same key unlocks every other APIVerve endpoint — reach for them when you need them.
Browse the catalog