POST · TRANSIT VEDIC

Eclipses

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

Returns solar and lunar eclipses with sidereal sign and nakshatra positions for the Sun and Moon at the eclipse moment. Designed for transit/horoscope use (not mundane eclipse path mapping).

Query types

query_typeRequired fieldsDescription
upcoming (default)limitNext N eclipses from a date (default today).
pastlimitPrevious N eclipses before a date (default today).
yearyearAll eclipses in a calendar year (1200–2699).
rangefrom_date, to_dateAll eclipses in a date range.

Request body

FieldTypeRequiredDescription
query_typestringNoDefault upcoming.
timezonestringNoIANA timezone. Default UTC.
typestringNoFilter: solar or lunar. Default: both.
limitintegerNoMax results for upcoming/past. Default 5, max 100.
datestringNoReference date for upcoming/past. Default today.
yearinteger*Required for year query. Range: 1200–2699.
from_date, to_datestring*Required for range.

Response shape

FieldTypeDescription
typestringsolar or lunar.
subtypestringTotal, Partial, Annular, Penumbral, etc.
datetime_utcstringEclipse maximum in UTC.
datetime_localstringConverted to requested timezone.
moon_signstringSidereal sign of the Moon.
moon_nakshatrastringMoon’s nakshatra.
moon_padaintegerMoon’s nakshatra pada.
sun_signstringSidereal sign of the Sun.
sun_nakshatrastringSun’s nakshatra.
sun_padaintegerSun’s nakshatra pada.
saros_cycleintegerSaros series number.
duration_minutesnumberDuration of the eclipse event.

Use cases

  • Eclipse calendar — list upcoming eclipses with sign and nakshatra data.
  • Transit impact analysis — check which natal houses are affected by eclipse signs.
  • Sutak period — determine Sutak timings based on eclipse datetime.
  • Historical eclipse lookup — research eclipses across centuries (1200–2699).

Errors

HTTPCodeCause
400INVALID_TYPEInvalid type filter (must be solar or lunar).
400VALIDATION_ERRORYear out of data coverage range (1200–2699).

Plus standard auth and validation errors.

See also