Wild APIs

Moon Phase APIs

Moon phase APIs return the phase name, illumination and rise and set times for a date. Moon API is the dedicated option, adding lunar age, position and the next full or new moon behind a key. Moonlora is free and covers 1900 to 2100 with moon signs, while Sunrise Sunset, SunriseSunset.io and the USNO API include phase data alongside sun times. Free Weather APIs →
5 listings
APIPricingAuthFormatFree tierStatus
Moon APIMoon phase name, illumination, age, moonrise and moonset, lunar position and next full or new moon.
Weather & Environment › Astronomy
FreemiumAPI keyJSON100–1k/dayLive
MoonloraMoon phase, illumination, moon sign, and moonrise/moonset data for 1900–2100.
Weather & Environment › Astronomy
FreeNoneJSONUnlimitedLive
Sunrise SunsetSunrise, sunset, twilight, golden hour, sun position and moon phase for any coordinates, a year per call.
Weather & Environment › Astronomy
FreeNoneJSONUnlimitedLive
SunriseSunset.ioSunrise, sunset, twilight, golden and blue hour, moonrise and moon phase for any coordinates and date range.
Weather & Environment › Astronomy
FreeNoneJSONUnlimitedLive
USNO Astronomical Applications APIMoon phase dates, daily sun and moon rise/set, eclipses, seasons, Julian dates and sidereal time from USNO.
Weather & Environment › Astronomy
NoneJSONUnlimitedLive

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