Phase is a sign count from the Moon
POST /v1/dosha/sade-sati (Hobby plan) takes the birth plus an optional as_of (ISO 8601 with an offset or Z). It takes transit Saturn's sidereal sign at as_of, counts signs from the natal Moon's sign (the Moon's sign is 1), and maps the count to a phase - with one refinement, covered below under retrograde re-entries: inside a Sade Sati cycle the phase comes from the cycle's timeline. The engine follows the sign-based convention: a phase starts when Saturn enters the sign, not when it comes within a fixed number of degrees of the natal Moon, as some authors prefer.
| Saturn's sign from the Moon | `phase` | What it is |
|---|---|---|
| 12th | rising | Sade Sati, first phase |
| 1st (the Moon's sign) | peak | Sade Sati, second phase |
| 2nd | setting | Sade Sati, third phase |
| 4th | ardhashtama | Dhaiya (small panoti) - not Sade Sati |
| 8th | ashtama | Dhaiya (Ashtama Shani) - not Sade Sati |
| any other | not_active | neither |
Leave out as_of and the server uses its current time, so the answer changes as Saturn moves. Send it explicitly whenever you cache or compare results - see deterministic calculations.
Test `phase`, not `active`
active is true whenever phase is anything but not_active - including the two Dhaiya phases. Reading it as "Sade Sati: yes" tells someone in Ashtama Shani that they are in Sade Sati. That was a real bug, in our own remedies and summaries, fixed in December 2026; the interpretation summary now says so explicitly. For the sample birth (natal Moon in Sagittarius) on 5 December 2026, Saturn is in Pisces, the 4th sign:
{ "as_of": "2026-12-05T00:00:00.000Z", "active": true, "phase": "ardhashtama",
"natal_moon_sign": "Sagittarius", "saturn_transit_sign": "Pisces",
"saturn_house_from_moon": 4, "cycle_started_at": null,
"cycle_ends_at": null, "phases": null }The summary reads "Not Sade Sati: Saturn's Dhaiya is running - Ardhashtama (small panoti)." Note that the timeline fields are null: start and end dates are computed only for the three Sade Sati phases. For Dhaiya dates, find Saturn's ingress and egress for that sign with POST /v1/transits/events.
Dating the cycle
When as_of falls in or next to a Sade Sati cycle, the engine walks Saturn across ten years either side in 14-day steps, finds every sign change to the minute, and builds the timeline. Each phase starts at Saturn's first ingress into its sign; the cycle ends at Saturn's last egress from the 2nd sign, after any retrograde re-entry. With as_of: "2019-06-01T00:00:00Z":
| Phase | Sign | started_at | ends_at |
|---|---|---|---|
| rising | Scorpio | 2014-11-02 15:25 | 2017-01-26 14:02 |
| peak | Sagittarius | 2017-01-26 14:02 | 2020-01-24 04:27 |
| setting | Capricorn | 2020-01-24 04:27 | 2023-01-17 12:35 |
cycle_started_at and cycle_ends_at give the envelope: 2 November 2014 to 17 January 2023, 8.2 years rather than the nominal 7.5, because Saturn doubled back twice. Each boundary is the first whole minute Saturn is in the new sign, and it is the same whatever as_of you send, so the dates are safe to compare and cache across calls.
Retrograde re-entries
Saturn changed sign eight times in this cycle, not four. POST /v1/transits/events for Saturn, 2014-2023, lists them, each dated at its first daily sample after the change - hence up to a day later than the timeline above (see transits and retrograde motion for how it samples):
- Into Scorpio 3 Nov 2014; into Sagittarius 27 Jan 2017; back to Scorpio 21 Jun 2017; into Sagittarius again 27 Oct 2017.
- Into Capricorn 25 Jan 2020; into Aquarius 30 Apr 2022; back to Capricorn 13 Jul 2022; into Aquarius again 18 Jan 2023.
The timeline absorbs the loops: peak starts at the first entry into Sagittarius, and the cycle ends at the final exit from Capricorn. Inside the cycle, phase is the timeline entry that contains as_of, while saturn_transit_sign and saturn_house_from_moon still say where Saturn actually is - so during a loop the two can differ, by design:
| as_of | Saturn in | phase | Timeline |
|---|---|---|---|
| 2017-08-01 | Scorpio (retrograde loop) | peak | returned; peak began 2017-01-26 |
| 2022-05-15 | Aquarius (before the loop back) | setting | returned; cycle ends 2023-01-17 |
| 2022-09-01 | Capricorn (re-entered) | setting | returned; cycle ends 2023-01-17 |
Until engine 1.3.1 (December 2026), phase was a snapshot of Saturn's sign on the day: the August 2017 call said rising, and anyone checking between 30 April and 13 July 2022 was told Sade Sati was not running, though it resumed in July and lasted until January 2023. If you cached results from older calls, recompute them; the response's meta.engine_version tells you which rule produced a stored result.
saturn.mjs - Sade Sati or Dhaiya, on three dates
// saturn.mjs - node saturn.mjs (Node 18+, no dependencies)
const API = process.env.ASTRONODE_API_URL ?? "https://api.astronode.dev";
const KEY = process.env.ASTRONODE_API_KEY; // server-side only
const birth = { date: "1973-04-24", time: "17:25:00", tz_offset_minutes: 330, lat: 19.076, lng: 72.8777 };
const SADE_SATI = new Set(["rising", "peak", "setting"]);
const DHAIYA = new Set(["ardhashtama", "ashtama"]);
for (const asOf of ["2019-06-01T00:00:00Z", "2022-05-15T00:00:00Z", "2026-12-05T00:00:00Z"]) {
const res = await fetch(`${API}/v1/dosha/sade-sati`, {
method: "POST",
headers: { authorization: `Bearer ${KEY}`, "content-type": "application/json" },
body: JSON.stringify({ ...birth, as_of: asOf }),
});
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
const d = (await res.json()).data;
// Test the phase, never `active` - `active` is also true during Dhaiya.
const label = SADE_SATI.has(d.phase) ? `Sade Sati (${d.phase})`
: DHAIYA.has(d.phase) ? `Dhaiya (${d.phase}), not Sade Sati`
: "neither";
const cycle = d.cycle_started_at
? ` - cycle ${d.cycle_started_at.slice(0, 10)} to ${d.cycle_ends_at.slice(0, 10)}`
: "";
console.log(`${asOf.slice(0, 10)}: Saturn in ${d.saturn_transit_sign}, ${label}${cycle}`);
}Output against the API:
2019-06-01: Saturn in Sagittarius, Sade Sati (peak) - cycle 2014-11-02 to 2023-01-17 2022-05-15: Saturn in Aquarius, Sade Sati (setting) - cycle 2014-11-02 to 2023-01-17 2026-12-05: Saturn in Pisces, Dhaiya (ardhashtama), not Sade Sati
Questions
- Is Dhaiya the same as Sade Sati in the API?
- No. Saturn in the 4th or 8th sign from the natal Moon is returned as
ardhashtamaorashtama- Dhaiya - while Sade Sati is only therising,peakandsettingphases. Theactivefield is true for both, so testphaseinstead. - How does the API handle Saturn's retrograde re-entries during Sade Sati?
- Each phase starts at Saturn's first entry into its sign, and the cycle ends at its last exit from the second sign. The
phasefield still reflects Saturn's sign on theas_ofdate, so inside a retrograde loop it can differ from the timeline. - How precise are the Sade Sati dates?
- To about a day. Saturn's sign changes are refined to within one day, and the time of day on a boundary can move by hours between requests with different
as_ofvalues, so compare and show dates rather than times.