Moon Phase APIs
| API | Pricing | Auth | Format | Free tier | Status |
|---|---|---|---|---|---|
Moon APIMoon phase name, illumination, age, moonrise and moonset, lunar position and next full or new moon. Weather & Environment › Astronomy | Freemium | API key | JSON | 100–1k/day | Live |
MoonloraMoon phase, illumination, moon sign, and moonrise/moonset data for 1900–2100. Weather & Environment › Astronomy | Free | None | JSON | Unlimited | Live |
Sunrise SunsetSunrise, sunset, twilight, golden hour, sun position and moon phase for any coordinates, a year per call. Weather & Environment › Astronomy | Free | None | JSON | Unlimited | Live |
SunriseSunset.ioSunrise, sunset, twilight, golden and blue hour, moonrise and moon phase for any coordinates and date range. Weather & Environment › Astronomy | Free | None | JSON | Unlimited | Live |
USNO Astronomical Applications APIMoon phase dates, daily sun and moon rise/set, eclipses, seasons, Julian dates and sidereal time from USNO. Weather & Environment › Astronomy | None | JSON | Unlimited | Live |
Choosing a Moon Phase API
Is there a free Moon Phase API?
Yes. Moonlora, Sunrise Sunset and SunriseSunset.io are free to use, and Moon API has a free tier alongside paid plans. See all free Weather APIs.
Which Moon Phase APIs work without an API key?
Moonlora, USNO Astronomical Applications API, Sunrise Sunset and SunriseSunset.io need no key or sign-up, so you can try them with a plain request.
Can I call a Moon Phase API from front-end JavaScript?
Moonlora, USNO Astronomical Applications API, Sunrise Sunset and SunriseSunset.io allow cross-origin requests and need no key, so they work straight from the browser. For the others, call them from your server so your key stays private.
Can I use Moon Phase APIs in a commercial project?
Moonlora, Sunrise Sunset and SunriseSunset.io permit commercial use. Moon API restricts it, for example to non-commercial or attributed use, so read the terms first.
Which Moon Phase APIs work with AI agents?
Moonlora has both an MCP server and an OpenAPI spec. Moon API and SunriseSunset.io publish an OpenAPI spec for generating clients and tools.
Broader: Astronomy APIs · Weather & Environment APIs
More in Astronomy: Sunrise & Sunset APIs