Integrate real-time Kundli analysis, Dasha calculations, and Gochar transits directly into your application via REST API.
Use this secret key to authenticate your requests. Include it in the x-api-key header. Do not share this key publicly or expose it in client-side browser code.
https://yagyamitra.com/api/v1/kundli-analysis
Generates a comprehensive, highly-structured 5-part Vedic Kundli analysis (D1, D9, Dasha, Transit) in Hindi. Uses Gemini 3.1 Pro backend.
x-api-key *Content-Type *application/json
query string *
The specific question (e.g., "When will I get a job?")
dob string *
Date of Birth format YYYY-MM-DD
tob string *
Time of Birth format HH:MM (24-hour)
pob string *
Place of Birth (City, State, Country)
curl -X POST https://yagyamitra.com/api/v1/kundli-analysis \
-H "x-api-key: YOUR_SECRET_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"query": "Is there a government job yoga?",
"dob": "1990-12-05",
"tob": "08:15",
"pob": "Varanasi, UP"
}'
const response = await fetch('https://yagyamitra.com/api/v1/kundli-analysis', {
method: 'POST',
headers: {
'x-api-key': 'YOUR_SECRET_API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
query: 'Is there a government job yoga?',
dob: '1990-12-05',
tob: '08:15',
pob: 'Varanasi, UP'
})
});
const data = await response.json();
console.log(data.data.analysis);
import requests
import json
url = "https://yagyamitra.com/api/v1/kundli-analysis"
payload = json.dumps({
"query": "Is there a government job yoga?",
"dob": "1990-12-05",
"tob": "08:15",
"pob": "Varanasi, UP"
})
headers = {
'x-api-key': 'YOUR_SECRET_API_KEY',
'Content-Type': 'application/json'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.json()["data"]["analysis"])
...
| Timestamp | Endpoint | Method | Status | Latency |
|---|---|---|---|---|
| Today, 14:32:05 | /v1/kundli-analysis |
POST | 200 OK | 3,420 ms |
| Today, 10:15:12 | /v1/kundli-analysis |
POST | 200 OK | 4,105 ms |
| Yesterday, 19:40:00 | /v1/kundli-analysis |
POST | 401 Auth | 120 ms |
Scale your astrological applications
Perfect for side projects
For growing astrology platforms
For high-volume portals