Moon Phase API
Plan around the moon.
Pxie's moon phase API returns the precise moon phase, brightness and rise and set times for any place and date.
Plan: Free plan.
Coverage: Anywhere on Earth, any date through 2100.
What Moon Phase API gives you.
Phase, illumination and age
The phase name, how much of the moon is lit, its age in days and whether it is waxing or waning. Every value is calculated for your exact coordinates and moment, not copied from a table for the nearest city.
Moonrise and moonset
Rise and set times for exact coordinates, plus where the moon sits in the sky right now.
How bright the sky will be
A visibility factor showing how much the moon will brighten the sky, for astronomy and night photography. Pair it with the darkness score to find nights when the sky is both moonless and truly dark.
Where moon data earns its place.
Astronomy and night photography
Faint targets need a dark sky, and the moon is the biggest source of light. Moonrise and moonset show when the moon is below the horizon, and the visibility factor shows how much it will brighten the sky when it is up.
Aurora trips
A bright moon washes out faint aurora. Check the phase and moonset when choosing which nights to book, and use the aurora forecast, which already adjusts for moonlight when you ask for visibility.
Outdoor and event planning
Camping, night hikes, paddling, hunting and outdoor events often depend on how much moonlight there will be. The phase name, percent lit, age in days and waxing or waning status answer that at a glance.
Apps and displays
Show an accurate moon on a dashboard, calendar or smart display for any city and date through 2100, without carrying a lookup table. The same data is available to AI assistants through the Pxie MCP server.
What you get back
The phase name, how much of the moon is lit, its age in days, whether it is waxing or waning, moonrise and moonset, where it sits in the sky right now and a visibility factor. Pair it with the sunrise sunset API for the full picture of darkness.
Calculated for your exact spot
Phase, rise, set and position are calculated by Pxie for the coordinates and moment you ask about, so moonrise in a valley or on a coast is not copied from a nearby city. Any date through 2100 works, which suits long-range event and trip planning.
Free to start
Moon data is included on the free plan. Pair it with the darkness score from the sunrise sunset API to find nights that are both moonless and truly dark.
Related
Waxing crescent, 18% lit
Moonset 22:41
"What's the moon phase in Banff on Saturday night?"
Pxie answers with the get_moon tool. Environmental data MCP server →
Moon Phase API questions.
Is the moon phase API free?
Yes. Moon data is included on the free plan.
Does it include moonrise and moonset?
Yes, for any coordinates and date through 2100.
How accurate is it?
Positions and times are calculated by Pxie for your exact location and moment.
Add precise moon data to your app.
Start free, or tell us what you are building.
Developers: Moon Phase API docs →