Logo

SEARCH ASTRO INSIGHT API DOCS

Home Vedic Astrology
POST Vedic API v1

Kalsarpa Dosha

The Kalsarpa Dosha API provides horoscope dosha related data and calculations using Vedic Astrology principles. This endpoint is designed for astrology applications, kundli generation, horoscope platforms, and developer integrations requiring accurate JSON-based responses and scalable REST API access.

https://json.astroinsightapi.com/api/v1/horoscope-dosha/kaalsarpa
Credit Cost
1 Credit
Avg Latency
~60ms
Auth Type
Basic Auth
Format
JSON / UTF-8

Available Response Languages

🇬🇧 English en
🇮🇳 Hindi hi
🇮🇳 Marathi ma

API Overview & Calculation Details

Methodology and astrological context for Kalsarpa Dosha.

Kalsarpa Dosha

Analyses a person's birth chart to detect and describe the Kalsarpa Dosha — a significant planetary affliction in Vedic astrology — based on their birth date, time, and geographic location.

What this API does

In Vedic astrology, Kalsarpa Dosha (also spelled Kaalsarpa) occurs when all seven classical planets (Sun, Moon, Mars, Mercury, Jupiter, Venus, and Saturn) are hemmed between the lunar nodes Rahu and Ketu in the birth chart. This configuration is considered one of the most impactful doshas, believed to influence various aspects of a person's life including career, relationships, health, and spiritual growth.

This endpoint computes the planetary positions for the given birth data, determines whether Kalsarpa Dosha is present, identifies the specific type of Kalsarpa Dosha formed, and returns a detailed analysis of its nature and effects.

What data it returns

The API returns a structured JSON response containing:

  • Dosha presence: Whether Kalsarpa Dosha is present or absent in the birth chart
  • Dosha type: The specific named variant of Kalsarpa Dosha (e.g., Anant, Kulik, Vasuki, Shankhpal, Padma, Mahapadma, Takshak, Karkotak, Shankhnaad, Patak, Vishdhar, Sheshnag), determined by the houses occupied by Rahu and Ketu
  • Dosha direction: Whether it is a full (complete) or partial Kalsarpa Dosha, and the direction of the serpent (ascending or descending)
  • Effects and description: A textual description of the dosha's influence on the native's life, covering areas such as career, wealth, relationships, and spiritual tendencies
  • Remedial context: Contextual information about the severity and nature of the dosha to guide further astrological consultation

Main use cases

  • Horoscope analysis platforms that provide automated dosha detection and interpretation as part of a full birth chart reading
  • Astrology consultation tools where practitioners need a quick, accurate assessment of Kalsarpa Dosha before advising clients on remedies
  • Kundali matching and compatibility services that factor in dosha presence when evaluating marriage compatibility
  • Personal astrology apps offering users insight into significant planetary afflictions in their birth chart and their potential life impact
  • Spiritual and wellness platforms that incorporate Vedic astrology to guide users on karmic patterns and life challenges

Key functionality

  • Precise birth data input: Accepts day, month, year, hour, minute, second, and timezone offset to calculate exact planetary positions at the moment of birth.
  • Geographic coordinates: Uses latitude and longitude to accurately determine house cusps and planetary placements relative to the birth location.
  • Ayanamsha support: The X-Ayanamsha header allows selection of the sidereal calculation system (e.g., Lahiri, Raman, KP), ensuring compatibility with different Vedic astrology traditions and schools of thought.
  • Named dosha type identification: Goes beyond a simple yes/no result by identifying the specific Kalsarpa variant, each of which carries distinct astrological significance and effects.
  • Partial vs. full dosha detection: Distinguishes between a complete Kalsarpa Dosha (all planets strictly between Rahu and Ketu) and a partial one (where one or more planets are outside the nodal axis), providing a nuanced analysis.
  • Multilingual support: The Accept-Language header enables localized descriptions and interpretations for a global user base.

Request Parameters

Payload specifications for JSON request body.

application/json
Parameter Type Description & Example
day
Required
integer
Day of birth (1–31).
Example: 15
month
Required
integer
Month of birth (1–12).
Example: 9
year
Required
integer
Year of birth (e.g., 1994).
Example: 1994
hour
Required
integer
Hour of birth in 24-hour format (0–23).
Example: 12
min
Required
integer
Minute of birth (0–59).
Example: 30
sec
Optional
integer
Second of birth (0–59). Optional. If not provided, it is considered as 0.
Example: 30
lat
Required
float
Latitude of the birth location.
Example: 28.6139
lon
Required
float
Longitude of the birth location.
Example: 77.1025
tzone
Optional
float
Timezone offset from UTC. Optional. If not provided, it is considered as 5.5 (IST).
Example: 5.5

Required & Optional Headers

Header Key Value / Format Description
Authorization
Required
Basic {base64} Base64 encoded string of CLIENT_ID:CLIENT_SECRET.
Content-Type
Required
application/json Specifies JSON payload format in request body.
Accept-Language
Optional
en, hi, ta, te... Returns localized astrology output. Default: en
X-Ayanamsha
Optional
lahiri, raman, krishnamurti... Ayanamsha system: lahiri, raman, fagan_bradley, usha_shashi, krishnamurti, djwhal_khul, yukteshwar, jn_bhasin, suryasiddhanta, aryabhata. Default: lahiri

Frequently Asked Questions

Comprehensive developer guidance for Kalsarpa Dosha.

What is the Kalsarpa Dosha API and what data does it provide?

The Kalsarpa Dosha API provides authentic Horoscope Dosha calculations based on Vedic astrology algorithms. It returns structured JSON data containing detailed planetary positions, house calculations, and astrological parameters suitable for Kundli apps, astrology websites, and developer applications.

What input parameters are required to call Kalsarpa Dosha?

The Kalsarpa Dosha API requires standard Vedic birth details: day, month, year, hour, min, sec, latitude (lat), longitude (lon), and timezone (tzone). All parameters can be passed in the JSON request body.

How many credits does the Kalsarpa Dosha endpoint consume?

Each calculation request to Kalsarpa Dosha consumes 1 API credit. The endpoint delivers high performance with an average response time of ~60ms.

How do I authenticate with the Kalsarpa Dosha API?

Authenticate using HTTP Basic Authentication by including your Base64 encoded client_id:client_secret credentials in the Authorization header (Authorization: Basic BASE64(client_id:client_secret)).

Can I get Kalsarpa Dosha responses in regional Indian languages?

Yes! The API supports multiple languages including English, Hindi, Marathi. Pass your desired language code (e.g. 'hi' for Hindi, 'ta' for Tamil, 'en' for English) in the Accept-Language request header.

Which Ayanamsha systems can be calculated with Kalsarpa Dosha?

Supported Ayanamshas include NC Lahiri (Default), BV Raman, Krishnamurti (KP), Fagan Bradley, Usha Shashi, Djwhal Khul, Sri Yukteshwar, JN Bhasin, Surya Siddhanta, and Aryabhata. Specify your choice using the X-Ayanamsha header.

What response format and HTTP codes does this API return?

The API returns clean JSON UTF-8 output. Successful requests return HTTP 200 OK with the computed data payload. Parameter validation errors return HTTP 422 with actionable error messages.

POST horoscope-dosha/kaalsarpa
Presets:
Live Output
Click Send above to execute calculation.
Sample Output

API Categories