Implementation guides
The decisions that change an astrology API's output - and how to make them on purpose. Each guide is written against what the engine actually computes, with numbers produced by the API itself.
- Which ayanamsa the API uses - and how to match other softwareLahiri for Vedic endpoints, KP-Newcomb for KP, none for Western. What that means for planet longitudes, and why two programs can disagree about the same birth.
- House systems: whole-sign, Placidus and the restWhole-sign houses for Vedic charts, Placidus cusps for KP, and a choice of five systems for Western charts - with real cusp values and what happens near the poles.
- Birth time, time zones and historical offsetsThe API takes a fixed UTC offset, not a time-zone name. How to get the offset that was really in force at a birth, and what one wrong hour does to the ascendant and the dasha.
- How the Vimshottari dasha is calculatedThe 120-year cycle, the birth balance from the Moon's nakshatra, the 365.25-day year, and the five levels the API returns - worked through for a real birth.
- How the Ashtakoot (Gun Milan) score is calculatedThe eight koots and their 36 points, which ones depend on who is the groom, how cancellations (parihara) restore points, and how Mangal dosha is reported alongside.
- Determinism: same input, same outputWhy repeat calls return byte-identical results, the endpoints that default to "now", how engine versions are reported, and how to make tarot draws reproducible with a seed.
- Yogini and Char dasha: the arithmetic behind the periodsHow the API starts Yogini dasha from the Moon's nakshatra and builds Char dasha from sign lords - a worked birth, the edge cases, what is engine-only.
- How the API computes divisional chartsThe per-division rules the API uses for D2 to D60, worked for one Moon in all 14 vargas, plus the unequal D30, the D27 choice and rejected input.
- KP sub-lords: from a longitude to four lordsHow the API splits each nakshatra into nine unequal subs and sub-subs, worked for real planets and cusps, plus the four-level KP significators.
- Nadiamsa (D150): 150 parts per sign, and why minutes matterHow the API computes the D150 Nadiamsa: 0°12′ parts, two orderings, the D150 sign, flags for contested choices, and a two-minute birth-time test.
- Lal Kitab: fixed houses, debts and remedies as dataHow the API builds a Lal Kitab chart with Aries as house 1, marks planets awake or asleep, detects the seven debts and picks remedies.
- Sunrise in the panchang: which sunrise, and what hangs on itWhich sunrise the API computes, why tithi and nakshatra are reported at sunrise, how to read the UTC times, and what happens where the Sun never rises.
- Muhurta windows: Rahu Kaal, Abhijit and hora, computedRahu Kaal, Yamaganda, Gulika, Abhijit, Brahma muhurat and horas are fractions of daylight. The exact slots the API uses, checked on a real date.
- Transits (gochara): computing ingresses and transit windowsHow the API finds sign changes over a date range, why one ingress can appear three times, and the Sade Sati, Chandrashtama and KP transit endpoints.
- Retrograde and combustion: how the API decidesWhat makes a planet retrograde in API responses, why Rahu and Ketu always are, the combustion orbs, and how the sampling step moves event dates.
- Ashtakavarga: how the bindu tables are builtHow the API builds Bhinnashtakavarga from eight contributors, the fixed totals that work as a checksum, Sarvashtakavarga's 337, and what is engine-only.
- Shadbala: the six strengths, and which are approximatedThe six Shadbala components the API returns in virupas, how each is computed, which parts are fixed averages, and how to read is_strong.
- Varshphal: casting the Tajika annual chartHow the API finds the sidereal solar return, casts the year chart, places Muntha and runs Mudda dasha - and why a Western return differs by hours.
- Chaldean vs Pythagorean: two letter maps, two reductionsThe letter values, reduction rules and master numbers behind the API's two numerology systems, with one name and date giving different answers.
- Graha drishti and planetary friendship, computedHow the API computes Vedic aspects by whole-sign house, the special aspects of Mars, Jupiter, Saturn and the nodes, and five-fold planet friendship.
- Generate a typed AstroNode client from the OpenAPI specTurn the API's OpenAPI 3.1 spec into TypeScript types with openapi-typescript, call an endpoint with typed bodies and errors, and list error codes.