POST · TRANSIT VEDIC

Basic

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

Returns a lean snapshot of the 9 classical Vedic grahas (Sun–Ketu) and the transit ascendant at a given moment and location. Per planet: sign, sign lord, nakshatra, pada, house (from transit ascendant), daily motion, retrograde and combustion flags.

All date/time fields are optional and default to now. Pass coordinates + timezone to get the current sky — no birth data needed.

For analytical extras (dignity, baladi avastha, combust distance), use advanced. For Sanskrit names, navamsa, and outer planets, use extended.

Authentication

Required. Three methods accepted:

MethodExample
Header (recommended)X-Api-Key: am_live_xxxxxxxxxxxx
BearerAuthorization: Bearer am_live_xxxxxxxxxxxx
Query?api_key=am_live_xxxxxxxxxxxx

Request body

Send a JSON object with Content-Type: application/json.

FieldTypeRequiredDescription
latitudenumberYesObserver latitude, −90…90. Positive = North.
longitudenumberYesObserver longitude, −180…180. Positive = East.
timezonestringYesIANA timezone (e.g. Asia/Kolkata).
yearintegerNoDefaults to current year.
monthintegerNoDefaults to current month.
dayintegerNoDefaults to current day.
hourintegerNo24-hour clock. Defaults to current hour.
minuteintegerNoDefaults to current minute.
secondintegerNoDefault 0.
ayanamsastringNoDefault lahiri. Full list →
node_typestringNomean (default) or true.
Defaults to now. Omit all date/time fields to get the current transit sky. The endpoint resolves “now” in the provided timezone.

Response shape

moment

The resolved date/time/timezone of the snapshot.

FieldTypeDescription
datestringISO date YYYY-MM-DD.
timestringTime HH:MM:SS in the given timezone.
timezonestringEcho of the IANA timezone.

ascendant

FieldTypeDescription
longitudenumberSidereal ecliptic longitude (0–360).
longitude_dmsstringSame in D°M′S″ format.
degree_in_signnumberDegree within sign (0–30).
degree_in_sign_dmsstringSame in DMS.
signstringRising sign name.
sign_lordstringLord of the rising sign.
nakshatrastringRising nakshatra.
padaintegerPada (1–4).

Planet fields (per planet)

FieldTypeDescription
namestringPlanet name (e.g. Sun, Rahu).
longitudenumberSidereal ecliptic longitude (0–360).
longitude_dmsstringSame in DMS.
degree_in_signnumberDegree within sign (0–30).
degree_in_sign_dmsstringSame in DMS.
signstringZodiac sign.
sign_lordstringLord of the sign.
nakshatrastringNakshatra name.
padaintegerPada (1–4).
houseintegerHouse from transit ascendant (1–12).
daily_motionnumberDegrees/day. Negative = retrograde.
is_retrogradebooleanRetrograde flag.
is_combustbooleanCombustion flag.

Use cases

  • Transit dashboard — show the current sky at a glance with planet signs, nakshatras, and retrograde status.
  • Muhurta screening — quick check of transiting planet positions for election timing.
  • Historical transit lookup — pass a specific date to see where planets were at any moment in history.
  • Real-time widgets — poll periodically to power a “planets now” widget in your app.

Transit snapshot family

EndpointPlanetsExtra fields over basic
basic (this)9 classical
advanced9 classicalDignity, combustion distance, baladi avastha, nakshatra lord & %, sign element.
extended9 + 4 outerAll of advanced + Sanskrit names, navamsa, vargottama. Outer planets position-only.

Errors

HTTPCodeCause
400MISSING_FIELDlatitude, longitude, or timezone absent.
400INVALID_DATEInvalid calendar date.
400INVALID_TIMEHour/minute/second out of range.
400INVALID_TIMEZONENumeric or non-IANA timezone.
400INVALID_COORDINATELatitude/longitude out of range.
400INVALID_PARAMInvalid node_type value.
401AUTH_MISSING_KEYNo API key in request.
401AUTH_INVALID_KEYKey not found or invalid.
405METHOD_NOT_ALLOWEDNon-POST request.
500CALCULATION_ERROREphemeris calculation failed.

See also