Date & Time

Moon Phase API

Get the moon phase, illuminated fraction, and lunar age for any date.

Request Headers

Name Required Description
X-RapidAPI-Key required Your RapidAPI key. Get one free.
X-RapidAPI-Host required moon-phase.p.rapidapi.com

Endpoints

GET /v1/astronomy/moon

Compute the moon phase, illumination, and age for a date

Parameters

NameTypeRequiredDefaultConstraints
datestringrequired—matches \S

Code Examples

curl --request GET \
  --url 'https://moon-phase.p.rapidapi.com/v1/astronomy/moon?date=example' \
  --header 'x-rapidapi-key: YOUR_API_KEY' \
  --header 'x-rapidapi-host: moon-phase.p.rapidapi.com'

Interactive Example

moon-phase
$ GET /v1/astronomy/moon?date=2024-01-25
{"phase":"Full Moon","illumination":0.986,"age_days":13.66}

Subscribe & License

Access this API with commercial-ready tiers on RapidAPI. Flexible plans designed for side-projects, startups, and high-volume production architectures.

View Pricing & Subscribe

Developer Support

Need help integrating or have a custom endpoint request? Our engineering team is here to assist with authentication, payload schemas, and high-frequency rate limit increases.

Contact API Engineering

System Performance

Monitored 24/7 with a 99.9% uptime SLA. Built atop cloud-native microservices with globally distributed edge caching to ensure ultra-low latency response times.

All Systems Operational