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:
| Method | Example |
|---|---|
| Header (recommended) | X-Api-Key: am_live_xxxxxxxxxxxx |
| Bearer | Authorization: Bearer am_live_xxxxxxxxxxxx |
| Query | ?api_key=am_live_xxxxxxxxxxxx |
Request body
Send a JSON object with Content-Type: application/json.
| Field | Type | Required | Description |
|---|---|---|---|
latitude | number | Yes | Observer latitude, −90…90. Positive = North. |
longitude | number | Yes | Observer longitude, −180…180. Positive = East. |
timezone | string | Yes | IANA timezone (e.g. Asia/Kolkata). |
year | integer | No | Defaults to current year. |
month | integer | No | Defaults to current month. |
day | integer | No | Defaults to current day. |
hour | integer | No | 24-hour clock. Defaults to current hour. |
minute | integer | No | Defaults to current minute. |
second | integer | No | Default 0. |
ayanamsa | string | No | Default lahiri. Full list → |
node_type | string | No | mean (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.
| Field | Type | Description |
|---|---|---|
date | string | ISO date YYYY-MM-DD. |
time | string | Time HH:MM:SS in the given timezone. |
timezone | string | Echo of the IANA timezone. |
ascendant
| Field | Type | Description |
|---|---|---|
longitude | number | Sidereal ecliptic longitude (0–360). |
longitude_dms | string | Same in D°M′S″ format. |
degree_in_sign | number | Degree within sign (0–30). |
degree_in_sign_dms | string | Same in DMS. |
sign | string | Rising sign name. |
sign_lord | string | Lord of the rising sign. |
nakshatra | string | Rising nakshatra. |
pada | integer | Pada (1–4). |
Planet fields (per planet)
| Field | Type | Description |
|---|---|---|
name | string | Planet name (e.g. Sun, Rahu). |
longitude | number | Sidereal ecliptic longitude (0–360). |
longitude_dms | string | Same in DMS. |
degree_in_sign | number | Degree within sign (0–30). |
degree_in_sign_dms | string | Same in DMS. |
sign | string | Zodiac sign. |
sign_lord | string | Lord of the sign. |
nakshatra | string | Nakshatra name. |
pada | integer | Pada (1–4). |
house | integer | House from transit ascendant (1–12). |
daily_motion | number | Degrees/day. Negative = retrograde. |
is_retrograde | boolean | Retrograde flag. |
is_combust | boolean | Combustion 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
| Endpoint | Planets | Extra fields over basic |
|---|---|---|
basic (this) | 9 classical | — |
advanced | 9 classical | Dignity, combustion distance, baladi avastha, nakshatra lord & %, sign element. |
extended | 9 + 4 outer | All of advanced + Sanskrit names, navamsa, vargottama. Outer planets position-only. |
Errors
| HTTP | Code | Cause |
|---|---|---|
| 400 | MISSING_FIELD | latitude, longitude, or timezone absent. |
| 400 | INVALID_DATE | Invalid calendar date. |
| 400 | INVALID_TIME | Hour/minute/second out of range. |
| 400 | INVALID_TIMEZONE | Numeric or non-IANA timezone. |
| 400 | INVALID_COORDINATE | Latitude/longitude out of range. |
| 400 | INVALID_PARAM | Invalid node_type value. |
| 401 | AUTH_MISSING_KEY | No API key in request. |
| 401 | AUTH_INVALID_KEY | Key not found or invalid. |
| 405 | METHOD_NOT_ALLOWED | Non-POST request. |
| 500 | CALCULATION_ERROR | Ephemeris calculation failed. |
See also
- Advanced — dignity, avastha, combust distance
- Extended — Sanskrit, navamsa, outer planets
- Upcoming — merged timeline of transit events
- Transit overview — full category index