POST · WESTERN

Moon Phase at Birth

Endpoint POST https://starsapi.com/api/v3/western/predictions/moon-phase

Computes the natal lunar phase from the angular separation between the tropical Sun and Moon at birth. Uses the Dane Rudhyar 8-phase system. Returns the phase name, emoji, phase angle, approximate illumination percentage, and a prewritten interpretation with keyword pills.

The 8 lunar phases

PhaseAngle rangeEmojiTheme
New Moon0°–45°🌑Pure potential, instinctive beginnings
Crescent45°–90°🌒Determined emergence against resistance
First Quarter90°–135°🌓Crisis of action, decisive building
Gibbous135°–180°🌔Refinement, analysis, perfecting
Full Moon180°–225°🌕Full awareness, relationship focus
Disseminating225°–270°🌖Sharing wisdom, teaching
Last Quarter270°–315°🌗Inner reorientation, releasing
Balsamic315°–360°🌘Intuitive depth, spiritual completion

Authentication

MethodExample
Header (recommended)X-Api-Key: am_live_xxxxxxxxxxxx
BearerAuthorization: Bearer am_live_xxxxxxxxxxxx
Query?api_key=am_live_xxxxxxxxxxxx

Request body

FieldTypeRequiredDescription
yearintegerYesBirth year (1800–2400).
monthintegerYesBirth month, 1–12.
dayintegerYesBirth day.
hourintegerYesBirth hour, 0–23.
minuteintegerYesBirth minute, 0–59.
secondintegerNoBirth second, default 0.
latitudenumberYesDecimal degrees.
longitudenumberYesDecimal degrees.
timezonestringYesIANA timezone.
languagestringNoLanguage code. Default en.

Response shape

FieldTypeDescription
moon_phase.namestringPhase name (e.g. “Last Quarter”).
moon_phase.keystringMachine key (e.g. last_quarter).
moon_phase.emojistringMoon emoji for the phase.
moon_phase.phase_anglenumberMoon − Sun angular separation, 0–360°.
moon_phase.illuminationnumberApproximate illumination percentage.
moon_phase.sun_longitudenumberTropical Sun longitude.
moon_phase.moon_longitudenumberTropical Moon longitude.
moon_phase.predictionobjecttitle, text, keywords array.

Errors

HTTPCodeCause
400MISSING_FIELDRequired field absent.
400INVALID_DATEBad calendar date.
400INVALID_TIMEZONENon-IANA timezone.
400INVALID_COORDINATELat/lon out of range.
405METHOD_NOT_ALLOWEDNon-POST request.

See also