Free to use
Put the Moon on your site
A live moon phase for any web page. Copy one line of HTML. There is no account, no script and no tracking.
Live widget
Shows the current phase, illumination and the next principal phase. It updates itself.
<iframe src="https://themoonphases.com/embed/moon" width="300" height="130" style="border:0" loading="lazy" title="Current moon phase"></iframe>Add ?view=south for the Southern Hemisphere view, or ?theme=light for light pages.
Preview
Moon image
A vector image of the Moon as it is now, or on any date from 1700 to 2200. It scales to any size.
<a href="https://themoonphases.com/"><img src="https://themoonphases.com/img/moon/now.svg" width="200" height="200" alt="Current moon phase"></a>For a fixed date use /img/moon/2027-08-17.svg. A 1200×630 PNG card with the phase name and date is at /og/moon/2027-08-17.png.
Data feed
Phase, illumination, distance, libration and the next phases as JSON. Add lat and lon for altitude, azimuth and rise and set times.
GET https://themoonphases.com/api/moon.json
GET https://themoonphases.com/api/moon.json?date=2027-08-17
GET https://themoonphases.com/api/moon.json?lat=40.71&lon=-74.01Free with a link back to themoonphases.com. Please cache responses.