POST · TRANSIT WESTERN

Eclipses

Endpoint POST https://starsapi.com/api/v3/transit/western/eclipses

Returns solar and lunar eclipses with tropical Sun/Moon positions, magnitude and duration. Nodes use Western naming (north_node/south_node). Supply an optional natal block to get the house each eclipse falls in for a birth chart plus tight hits to natal planets. Query types: upcoming, past, year (1200–2699), range.

Authentication

Required.

Request body

FieldTypeRequiredDescription
query_typestringNoupcoming (default), past, year, range.
timezonestringNoIANA timezone. Default UTC.
typestringNosolar or lunar. Default: both.
limitintegerNoMax results for upcoming/past. Default 5, max 100.
datestringNoReference date. Default today.
yearinteger*Required for year. Range: 1200–2699.
from_date, to_datestring*Required for range.
natalobjectNoBirth data for chart personalisation (see below). When present, every eclipse gains a natal block.

The natal object

FieldTypeRequiredDescription
year, month, dayintegerYesBirth date.
hour, minuteintegerYesBirth time (24h, local).
secondintegerNoDefault 0.
latitude, longitudenumberYesSigned decimals (N/E positive).
timezonestringYesIANA timezone of birth.
house_systemstringNoDefault placidus.

Response shape

FieldTypeDescription
typestringSolar or Lunar.
subtypestringTotal, Partial, Annular, Penumbral.
max_utc, max_localstringEclipse maximum (UTC and requested timezone).
start_local, end_localstringContact times in the requested timezone.
magnitudenumberEclipse magnitude (solar).
central_duration_minnumberCentral-phase duration in minutes.
sun, moonobject{ sign, degree, lon }.
north_node, south_nodeobjectNode positions at maximum.
natalobjectPresent only when natal supplied: { point_used, house, house_theme, hits[] }. Each hit is { natal_planet, aspect, orb } (conjunction/opposition within 3° to natal planets, Ascendant or Midheaven).

See also