POST · TRANSIT VEDIC

Nakshatra Transits

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

Returns nakshatra transit windows — when each planet enters and exits each nakshatra. Always sidereal (nakshatras are a sidereal concept). Supports five query types: current, date, range, month, year.

Moon transits are included by default for shorter ranges and excluded for yearly queries (the Moon changes nakshatra every ~1 day, producing hundreds of entries). Override with include_moon.

Authentication

Required. See basic → Authentication.

Request body

FieldTypeRequiredDescription
query_typestringNocurrent (default), date, range, month, year.
timezonestringNoIANA timezone. Default UTC.
planetstringNoFilter by planet name (e.g. Jupiter) or all (default).
datestring*YYYY-MM-DD. Required for query_type: date.
from_datestring*YYYY-MM-DD. Required for query_type: range.
to_datestring*YYYY-MM-DD. Required for query_type: range.
monthinteger*1–12. Required for query_type: month.
yearinteger*4-digit year. Required for query_type: month and year.
include_moonbooleanNoInclude Moon transits. Auto-managed by default: on for ≤31 days, off for yearly.

Response shape

Each nakshatra transit entry contains:

FieldTypeDescription
planetstringPlanet name.
nakshatrastringNakshatra name.
nakshatra_numberinteger1–27.
nakshatra_lordstringVimshottari lord.
signstringZodiac sign the nakshatra falls in.
entry_datestringEntry date (YYYY-MM-DD, in requested timezone).
entry_timestringEntry time (HH:MM:SS).
exit_datestringExit date.
exit_timestringExit time.
duration_daysnumberDuration in days.

Use cases

  • Nakshatra calendar — show which nakshatras planets occupy each day/month.
  • Muhurta planning — find windows when a planet transits a favorable nakshatra.
  • Dasha-transit correlation — match nakshatra lords in transit with dasha lords.
  • Moon nakshatra for panchang — daily Moon nakshatra for religious observances.

Errors

HTTPCodeCause
400INVALID_QUERY_TYPEUnrecognised query_type.
400INVALID_PLANETUnrecognised planet filter.
400VALIDATION_ERRORMissing or malformed date fields for the chosen query type.
400INVALID_TIMEZONENumeric or non-IANA timezone.
401AUTH_MISSING_KEYNo API key.
405METHOD_NOT_ALLOWEDNon-POST request.

See also