Free Moon Phase API & Widget
MoonPhaseToday’s moon data is free to use with attribution. Everything below is computed by the same engine that powers this site.
Moon phase widget
Paste this where you want today’s Moon to appear. It updates itself every 10 minutes. Add ?theme=light to the URL for light backgrounds.
<iframe src="https://moonphasetoday.com/embed/" width="200" height="230" style="border:0;border-radius:12px" title="Moon phase today" loading="lazy"></iframe>
<p style="font:12px system-ui,sans-serif;margin:4px 0"><a href="https://moonphasetoday.com/">Moon phase by MoonPhaseToday</a></p> JSON API
No key needed. Please cache responses and link to moonphasetoday.com where you show the data (CC BY 4.0).
| Endpoint | Returns |
|---|---|
/api/v1/moon | The Moon now: phase, illumination, age, distance, zodiac sign, next four primary phases |
/api/v1/moon?date=2027-01-22&time=20:00&tz=America/New_York | The Moon at a local date and time |
/api/v1/moon?date=2027-01-22&lat=51.5&lon=-0.12&tz=Europe/London | Adds moonrise, moonset and transit for that place |
/api/v1/moon-sign?date=1990-03-14&time=08:30&tz=Europe/Brussels | Moon sign (tropical), degree, element; without time, any sign change that day |
/calendar/full-moons.ics, /calendar/moon-phases.ics | iCalendar feeds (two years ahead) |
See also how we calculate moon data.