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
| Field | Type | Required | Description |
|---|---|---|---|
query_type | string | No | current (default), date, range, month, year. |
timezone | string | No | IANA timezone. Default UTC. |
planet | string | No | Filter by planet name (e.g. Jupiter) or all (default). |
date | string | * | YYYY-MM-DD. Required for query_type: date. |
from_date | string | * | YYYY-MM-DD. Required for query_type: range. |
to_date | string | * | YYYY-MM-DD. Required for query_type: range. |
month | integer | * | 1–12. Required for query_type: month. |
year | integer | * | 4-digit year. Required for query_type: month and year. |
include_moon | boolean | No | Include Moon transits. Auto-managed by default: on for ≤31 days, off for yearly. |
Response shape
Each nakshatra transit entry contains:
| Field | Type | Description |
|---|---|---|
planet | string | Planet name. |
nakshatra | string | Nakshatra name. |
nakshatra_number | integer | 1–27. |
nakshatra_lord | string | Vimshottari lord. |
sign | string | Zodiac sign the nakshatra falls in. |
entry_date | string | Entry date (YYYY-MM-DD, in requested timezone). |
entry_time | string | Entry time (HH:MM:SS). |
exit_date | string | Exit date. |
exit_time | string | Exit time. |
duration_days | number | Duration 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
| HTTP | Code | Cause |
|---|---|---|
| 400 | INVALID_QUERY_TYPE | Unrecognised query_type. |
| 400 | INVALID_PLANET | Unrecognised planet filter. |
| 400 | VALIDATION_ERROR | Missing or malformed date fields for the chosen query type. |
| 400 | INVALID_TIMEZONE | Numeric or non-IANA timezone. |
| 401 | AUTH_MISSING_KEY | No API key. |
| 405 | METHOD_NOT_ALLOWED | Non-POST request. |
See also
- Sign Ingress — sign-level transit windows
- Upcoming — merged timeline including nakshatra transits
- Transit overview