POST · TRANSIT WESTERN

Moon Phases

Endpoint POST https://starsapi.com/api/v3/transit/western/moon-phases

Returns tropical lunar phases (new moon, full moon, quarters, and intermediate phases) with status annotation and cycle grouping. Six query types including cycles for full lunation tracking.

Authentication

Required.

Request body

FieldTypeRequiredDescription
query_typestringNocurrent, date, range, month, year, cycles.
timezonestringNoIANA timezone. Default UTC.
datestring*Required for date.
from_date, to_datestring*Required for range.
month, yearinteger*Required for month/year.
countintegerNoLunation cycles for cycles query. Default 1, max 24.
phase_filterstringNoFilter: new_moon, full_moon, first_quarter, last_quarter, etc. Cannot combine with cycles.
group_by_cyclebooleanNoGroup phases into lunation cycles. Default false.

Response shape

Phase fields

FieldTypeDescription
phasestringDisplay name (e.g. New Moon, Full Moon).
phase_keystringMachine key (e.g. new_moon).
datetime_utcstringExact phase time in UTC.
datetime_localstringConverted to requested timezone.
moon_signstringTropical sign of the Moon.
sun_signstringTropical sign of the Sun.
statusstringpast, current, or upcoming.
days_from_nownumberSigned days from now.

Cycle fields (when grouped)

When group_by_cycle: true or query_type: cycles, phases are wrapped in cycle objects with cycle_number, partial, new_moon, full_moon, duration_days, phase_count, and phases array.

See also