Kaal Sarp Dosha API with Nuxt
Integrate Kaal Sarp Dosha API in Nuxt. 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 Nuxt
Authenticate with Authorization: Bearer YOUR_API_KEY. The route file runs on the server and reads the key from the VEDIKA_API_KEY environment variable. Client code calls only your own route; never import the key into a client bundle.
// server/api/vedika/kaal-sarp-dosha.get.ts (server only)
export default defineEventHandler(async () => {
const upstream = await fetch('https://api.vedika.io/v2/astrology/kaal-sarp-dosha', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.VEDIKA_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"datetime": "1990-05-15T10:30:00",
"latitude": 19.07,
"longitude": 72.87,
"timezone": "+05:30"
}),
});
return upstream.json();
});
// In a component, call your own route. The key never reaches the browser:
const { data } = await useFetch('/api/vedika/kaal-sarp-dosha');
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