Short, practical guides on the concepts behind the calculations — and how to put them to work in code.
A Janam Kundli (birth chart) is the snapshot of the sky at the exact moment and place of birth. To compute one you need three things: the date, the time, and the location (latitude and longitude). From those, an ephemeris calculates where every planet sat along the zodiac, and classical rules derive the nakshatra, rasi, doshas and dasha periods.
With the API it's a single request. Convert the birthplace to coordinates first (the /geocode endpoint does this), then call /kundli:
curl "https://hsksem.online/api/v1/kundli?datetime=1990-01-31T14:20:00%2B05:30&coordinates=28.6139,77.2090"
The response gives the Moon's nakshatra and pada, the Chandra (Moon) and Soorya (Sun) rasi, the Mangal Dosha verdict, any yogas present, and the Vimshottari dasha timeline. Add svg=1 to also get a ready-to-render North-Indian chart. Because the time of birth sets the ascendant, an accurate birth time matters most for house-based results.
Ashtakoota is the classic North-Indian method of checking marriage compatibility from the two Moon positions. Eight factors — the kootas — each contribute points, for a maximum of 36:
Varna (1), Vashya (2), Tara (3), Yoni (4), Graha Maitri (5), Gana (6), Bhakoot (7) and Nadi (8). Varna reflects temperament, Yoni physical compatibility, Graha Maitri the friendship of the sign lords, Gana nature, Bhakoot emotional and financial harmony, and Nadi health and progeny. A total of 18 or more is generally considered a workable match; Nadi and Bhakoot carry special weight.
The API computes all eight and returns the breakdown plus the total in one call:
curl "https://hsksem.online/api/v1/match?girl_dob=...&girl_coordinates=...&boy_dob=...&boy_coordinates=..."
For South-Indian matching, the /porutham endpoint returns the 10-porutham view instead.
Sade Sati is the roughly 7.5-year period when transiting Saturn passes through the 12th, 1st and 2nd signs counted from a person's natal Moon. It unfolds in three phases (rising, peak and setting) of about 2.5 years each, as Saturn moves one sign at a time. It's one of the most-asked-about transits in Vedic astrology.
Detecting it programmatically is straightforward once you have the natal Moon sign and Saturn's current sign: if Saturn is in the 12th, 1st or 2nd from the Moon, Sade Sati is active, and the exact sign tells you the phase. The API does the ephemeris and the house count for you, and also returns the start and end of the current Saturn transit:
curl "https://hsksem.online/api/v1/sade-sati?datetime=1990-01-31T14:20:00%2B05:30&coordinates=28.6139,77.2090"
The same engine also exposes /transit for the full current gochar and /dasha for the Vimshottari timeline — useful for building a complete "what's happening now" view for a user.