Skip to main content
POST/v1/western/eclipses

Eclipses

Solar and lunar eclipses in a date range, past or future, up to 10 years. Each gives the type, time of greatest eclipse, start and end (UTC) and the eclipse degree in the tropical zodiac (Swiss Ephemeris). Add birth data to get, for each eclipse, the natal planets and angles within 3° of the eclipse degree by conjunction or opposition. Without a birth time the Ascendant and MC are skipped and the natal Moon is approximate.

Request parameters​

from_daterequired
string
First day of the range (YYYY-MM-DD, UTC).
to_daterequired
string
Last day of the range (YYYY-MM-DD, UTC, inclusive). At most 10 years after from_date.
birthoptional
BirthInput | null
Optional birth data. When given, each eclipse lists natal planets and angles within 3° of the eclipse degree.
house_systemoptional
string
House system used to compute the natal Ascendant and MC.

Response fields​

success
boolean
True if the request succeeded
message
string
Human-readable status message
data
object
data.from_date
string
data.to_date
string
data.orb_degrees
number
Orb used for natal contacts.
data.birth_data_provided
boolean
data.birth_time_provided
boolean
False when no birth time: Ascendant and MC are not checked and the natal Moon is approximate.
data.angles_checked
boolean
True when the natal Ascendant and MC were included in the contact check.
data.eclipses
array[object]
data.eclipses[].kind
string
data.eclipses[].type
string
Solar: total, annular, hybrid or partial. Lunar: total, partial or penumbral.
data.eclipses[].max_utc
string
Moment of greatest eclipse, UTC.
data.eclipses[].begin_utc
string | null
Start of the eclipse (partial phase; penumbral phase for penumbral lunar eclipses), UTC.
data.eclipses[].end_utc
string | null
End of the eclipse, UTC.
data.eclipses[].sun_longitude
number
Tropical longitude of the Sun at maximum.
data.eclipses[].moon_longitude
number
Tropical longitude of the Moon at maximum.
data.eclipses[].eclipse_longitude
number
The eclipse degree: Sun for a solar eclipse, Moon for a lunar one.
data.eclipses[].sign
string
data.eclipses[].sign_index
integer
data.eclipses[].degree_in_sign
number
data.eclipses[].natal_contacts
array[object]
Natal points within 3° of the eclipse degree (empty without birth data).
data.eclipses[].natal_contacts[].natal_point
string
Natal planet, Ascendant or MC.
data.eclipses[].natal_contacts[].natal_longitude
number
data.eclipses[].natal_contacts[].aspect
string
How the eclipse degree meets the natal point: same degree (conjunction) or opposite (opposition).
data.eclipses[].natal_contacts[].orb
number
Distance from exact, in degrees (0–3).

Errors​

Invalid API key format.
API key is missing. Include it in the Authorization header as 'Bearer YOUR_KEY'.
The provided API key was not found. Verify the key in your Asterwise dashboard.
This API key has been revoked.
Too many requests per minute. Please slow down.
Something went wrong on our end. Please try again, or contact [email protected] if the problem persists. Include your request_id when contacting support.
Too many requests from this IP address. Please slow down.
Monthly API call limit reached. Upgrade your plan to continue.
Request body exceeds maximum allowed size of 64KB.
Your subscription has expired. Please renew at asterwise.com/dashboard to continue.
The request couldn't be processed. See the 'details' field for specific field-level issues.