POST · TRANSIT VEDIC

Upcoming

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

A forward-looking, chronologically-merged timeline of upcoming transit and panchang events. Aggregates sign ingress, retrograde stations, combustion windows, nakshatra transits, eclipses, and (when location is provided) panchang events like Ekadashi, Purnima, and Amavasya — all sorted by date into a single stream.

Powers forecast views, transit calendars, and per-user notification feeds.

Authentication

Required. See basic → Authentication.

Request body

Core parameters

FieldTypeRequiredDescription
windowstringNoPreset window: 7d, 30d, 3m, 6m, 12m. Default 30d.
daysintegerNoCustom window in days (overrides window). Positive integer, capped at ~2 years.
timezonestringNoIANA timezone. Default UTC.
from_datestringNoStart date (YYYY-MM-DD). Default: today in the given timezone.
event_typesstring[]NoFilter to specific event types. Default: all types.
planetstringNoPlanet filter or all (default).
include_moonbooleanNoInclude Moon ingress/nakshatra events. Default false (Moon transits are high-frequency).

Location (enables panchang events)

Providing latitude and longitude enables panchang events (Ekadashi, Purnima, Amavasya). Both must be provided together, or both omitted.

FieldTypeRequiredDescription
latitudenumberNoObserver latitude (−90…90).
longitudenumberNoObserver longitude (−180…180).

Panchang options

These only take effect when location is provided:

FieldTypeRequiredDescription
maas_systemstringNopurnimant (default, North Indian) or amant (South Indian).
traditionstringNovaishnava (default) or smarta. Affects Ekadashi calculation.
pakshastringNoFilter Ekadashi by shukla or krishna paksha. Omit for both.

Available event types

TypeCategoryRequires locationDescription
sign_ingressPlanetaryNoPlanet enters a new sign.
retrogradePlanetaryNoPlanet turns retrograde or direct.
combustPlanetaryNoPlanet enters/exits combustion.
nakshatraPlanetaryNoPlanet enters a new nakshatra.
eclipseAstronomicalNoSolar or lunar eclipse.
ekadashiPanchangYesEkadashi tithi.
purnimaPanchangYesFull Moon (Purnima).
amavasyaPanchangYesNew Moon (Amavasya).

Response shape

query

Echo of all resolved parameters including computed to_date and active event_types.

events (chronological)

A flat array of event objects, sorted by date. Every event has at minimum:

FieldTypeDescription
event_typestringOne of the event type keys above.
datestringEvent date (YYYY-MM-DD).
timestringEvent time (HH:MM:SS) in the requested timezone.
descriptionstringHuman-readable summary.

Additional fields vary by event type: planetary events include planet and sign/motion details; panchang events include paksha, tithi, and Moon position; eclipses include type and subtype.

Use cases

  • Transit calendar — render a month-view calendar with all transit events.
  • Notification feed — power daily/weekly transit alerts for users.
  • Panchang + transit integration — combine astronomical transits with religious observances in one view.
  • Forecast reports — generate a “what’s coming” section for transit reports.

Errors

HTTPCodeCause
400INVALID_WINDOWUnrecognised window value.
400INVALID_EVENT_TYPENo valid event types in event_types array.
400INVALID_PARAMInvalid maas_system, tradition, or paksha.
400VALIDATION_ERRORLatitude/longitude provided without the other.
400INVALID_TIMEZONENumeric or non-IANA timezone.

Plus standard auth errors.

See also