← Guides

Transits (gochara): computing ingresses and transit windows

"Notify the user when Saturn changes sign" sounds like one date per planet. It rarely is: retrograde motion makes slow planets cross the same boundary back and forth. Here is how the API reports transits so you can build alerts that hold up.

Updated

Sign changes over a range

POST /v1/transits/events takes a UTC range (from, to), an optional planets list and a sampling step, and returns every state change in the range, sorted by time, plus each planet's state at from in initial_states. Positions are sidereal Lahiri (meta.ayanamsa: "lahiri").

json
{ "from": "2026-12-01", "to": "2027-12-31", "planets": ["Jupiter", "Saturn", "Rahu"] }
`sign_change` events returned for that request
Date (UTC)PlanetFrom → to
2026-12-06RahuAquarius → Capricorn
2027-01-25JupiterLeo → Cancer (retrograde)
2027-06-03SaturnPisces → Aries
2027-06-26JupiterCancer → Leo
2027-10-21SaturnAries → Pisces (retrograde)
2027-11-27JupiterLeo → Virgo

Saturn enters Aries in June 2027 and is back in Pisces by October; Jupiter spends five months back in Cancer. Rahu's ingress goes from Aquarius to Capricorn because the nodes move backwards through the zodiac. An alert that fires on every sign_change will message a user three times for what they think of as one transit - decide whether you want the first ingress, the final one, or all of them, and read from_sign / to_sign to tell them apart.

Precision is the step size

The engine samples positions every step_days (default 1, maximum 90) and timestamps an event at the first sample after the change, so an event can be up to one step late. Daily sampling is right for slow planets; for the Moon, which changes sign every two to three days, use a step below 1. The retrograde and combustion guide shows what a 7-day step does to the dates.

Transit against the natal chart

Gochara proper is read from the natal Moon sign. Three endpoints do that comparison for you, and each takes an explicit moment so results are reproducible:

  • POST /v1/dosha/sade-sati with as_of: for the sample birth (natal Moon in Sagittarius) on 1 December 2026 it returns phase: "ardhashtama" - transit Saturn in Pisces, the 4th sign from the Moon. The major phases are rising, peak and setting (Saturn in the 12th, 1st and 2nd from the Moon); ardhashtama and ashtama are the 4th and 8th.
  • POST /v1/chandrashtama-periods with anchor_date and count: the windows when the transiting Moon is in the 8th sign from the natal Moon (Cancer here). Three from 1 December 2026 start on 25 December, 21 January and 18 February, each about 48 hours long.
  • POST /v1/kp/transit with transit_at: transiting planets resolved to KP star and sub lords against the natal KP cusps.

Omit as_of, anchor_date or transit_at and these endpoints use the current time, so the same request answers differently tomorrow. Always send the moment when you cache or store results.

Questions

How precise are transit event timestamps?
As precise as the sampling step. The engine samples every step_days (default 1, maximum 90) and stamps an event at the first sample after the change, so an event can be up to one step late.
Which zodiac do transit events use?
Sidereal with the Lahiri ayanamsa; the response says so in meta.ayanamsa.