Kaal Sarp Dosha API with Electron
Integrate Kaal Sarp Dosha API in Electron. Complete code examples and SDK documentation.
Operation
POST /v2/astrology/kaal-sarp-dosha
Kaal Sarp (Rahu-Ketu axis) dosha detection and type
Parameters
| Name | In | Type | Description |
|---|---|---|---|
datetime | body | string | — |
latitude | body | number | — |
longitude | body | number | — |
timezone | body | string | — |
Request example for Electron
Authenticate with Authorization: Bearer YOUR_API_KEY. This code runs on your users’ devices, so it must not hold your API key. Call a route on your own backend that adds the Authorization: Bearer YOUR_API_KEY header and forwards the request. The server-side pages linked below show such a route.
// Runs in the desktop app: call your own backend, not api.vedika.io.
const res = await fetch('https://your-backend.example.com/vedika/kaal-sarp-dosha');
const data = await res.json();
Try it in the keyless sandbox
The sandbox mirrors the production route and needs no API key:
curl -X POST https://api.vedika.io/sandbox/astrology/kaal-sarp-dosha \
-H "Content-Type: application/json" \
-d '{"datetime":"1990-05-15T10:30:00","latitude":19.07,"longitude":72.87,"timezone":"+05:30"}'
Sandbox response from POST /sandbox/astrology/kaal-sarp-dosha, abridged (billing block, long text fields and long lists trimmed). The sandbox answers with a fixed demo result and ignores your inputs; a production call computes the result for the details you send.
{
"data": {
"description": "Rahu in 8th house, sudden losses, accidents",
"direction": "None",
"exceptions": [
"Venus is conjunct with nodal axis"
],
"has_dosha": false,
"interpretation": {
"currentStatus": {
"description": "No Kaal Sarp Dosha present in your chart.",
"effects": [],
"guidance": "Your chart is free from Kaal Sarp Dosha effects.",
"severity": "None"
},
"overview": {
"meaning": "Kaal Sarp Dosha occurs when all seven planets (Sun through Saturn) are hemmed between Rahu and Ketu in the birth chart.",
"significance": "This yoga creates a serpent-like grip on the chart, causing struggles, sudden obstacles, and karmic lessons. It indicates pending karmic debts from past lives.",
"types": "12 types exist based on the houses where Rahu and Ketu are placed, each with different life area effects."
},
"remedialMeasures": {
"charitable": [
"Feed Brahmins on Nag Panchami",
"Donate silver snake idol to temple",
"Offer milk to snake temples"
],
"gemstone": {
"alternativeStone": "Cat's Eye (Lehsunia) for Ketu",
"note": "Consult astrologer before wearing as effects are powerful",
"stone": "Hessonite Garnet (Gomed) for Rahu"
},
"lifestyle": [
"Avoid keeping snake images or idols at home",
"Respect reptiles and never harm them",
"Practice meditation and mindfulness"
],
"spiritual": [
"Perform Kaal Sarp Dosha Puja at Trimbakeshwar or Kalahasti",
"Chant Rahu Beej Mantra: \"Om Bhram Bhreem Bhroum Sah Rahave Namaha\" 18,000 times",
"Worship Lord Shiva, especially during Shravan month"
]
},
"typeAnalysis": {
"affectedArea": "Secrets & Religion",
"specificEffect": "Hidden obstacles, spiritual transformation",
"typeName": "None"
}
},
"is_anulom": false,
"is_vilom": false,
"ketu": {
"house": 2
},
"rahu": {
"house": 8
},
"remedies": [],
"severity": "None",
"type": "None",
"type_number": 8
},
"meta": {
"contentMode": "fixture",
"engine": "vedika-intelligence",
"fixtureId": "demo-birth-1995-new-delhi",
"inputUsage": "ignored",
"mode": "sandbox",
"sample": true,
"version": "2.1.0"
},
"success": true
}
Related
The same endpoint in other stacks:
Last updated: 22 November 2026