Yogas and doshas
Kaal sarp dosh in Vedic astrology
Updated
Kaal sarp dosh: how the API computes it
The API draws a line from Rahu to Ketu. These are the two points where the Moon's path crosses the Sun's path, and they are always exactly opposite each other. That line splits the zodiac into two halves.
If all seven planets from the Sun to Saturn fall in one half, the dosha is present (DO-03). Rahu and Ketu themselves are not counted. A planet may sit within 1 degree of the line. Then the response marks the result as partial, because schools disagree on whether that breaks the dosha.
The API reports this and does not decide it for you. Call POST /v1/dosha/kaalsarpa. The response lists the planets on each side of the line and says whether the dosha is present. It also gives a plain-English answer you can show to users.
Remedies for this dosha appear in the reading sections only when the chart has it (RM-04).
Kaal sarp dosh in a real API answer
POST /v1/dosha/kaalsarpa200 OK{
"present": false,
"grahas_between_rahu_and_ketu": [
"Moon",
"Mars",
"Jupiter",
"Venus"
],
"grahas_between_ketu_and_rahu": [
"Sun",
"Mercury",
"Saturn"
],
"answer": {
"headline": "No Kaal Sarp dosha. Your planets sit on both sides of the Rahu-Ketu line, so they are not hemmed in."
}
}Get it from the API
POST /v1/dosha/kaalsarpa
# John Doe, born Aug 15, 1990, 10:30 AM, New York
curl -X POST "https://apiforastrology.com/api/astrology/v1/dosha/kaalsarpa" \
-H "Authorization: Bearer $ASTROLOGY_API_KEY" \
-H "Content-Type: application/json" \
-d '{"year":1990,"month":8,"day":15,"hour":10,"minute":30,"second":0,"latitude":40.7128,"longitude":-74.006,"timezone":"America/New_York"}'Where the API returns it
| POST | /v1/dosha/{name} | Doshas: manglik, kaal sarpa, pitra, or the papa count |
| POST | /v1/remedies/charity | Charity (daan) this chart points to, and why |
| POST | /v1/remedies/fasting | Fasting (vrat) this chart points to, and why |
| POST | /v1/reading/section/{section_id} | One section of a reading |
What the API reference says
Each line is quoted from the reference page of the endpoint named above it.
- POST /v1/dosha/{name} · Doshas: manglik, kaal sarpa, pitra, or the papa count
kaalsarpa: all seven planets from the Sun to Saturn on one side of the Rahu-Ketu axis. - POST /v1/remedies/charity · Charity (daan) this chart points to, and why
manglik(Mars),kaalsarpa(Rahu and Ketu) andpitra(the Sun, withtithi: Amavasya, the new-moon day): only when/v1/dosha/allreports that dosha present.
Feature page: Yogas and doshas. Who uses it: Astrologer consultation platforms. The classical rules the API follows are in the rulebook.
How we check the numbers
Every value here starts from planet positions worked out from NASA JPL planet data (DE440). We test them against NASA JPL Horizons, NASA's planet position service. On 25,571 positions from 1850 to 2149, the Sun and planets agree within 0.001 arc seconds. The Moon agrees within 0.011. On 2,000 random birth charts, the rising sign agrees with Swiss Ephemeris within 0.004 arc seconds. An arc second is 1/3,600 of a degree. A practicing astrologer reviews the rules behind these answers. See how we test.
Related terms
From the blog
Astrology API
Get these values from the API
Create a free test key and call any endpoint on this page. Or try a request in the API reference first.
Your first answer
John Doe, New York
- RisingVirgoHast
- SunCancerAshlesha
- MoonTaurusMrigashira
- MarsAriesKrittika
Real API output. A free test key gets the same answer.
01
Test key: 1,000 test calls a month to build with
02
Free plan: 2,000 live calls a month, no card needed
03
Open rules: every rule is published, so you can check any answer
