Dasha Prediction API: Calculate Planetary Periods Programmatically
Complete guide to implementing Vimshottari Dasha calculations via API with Mahadasha, Antardasha, and Pratyantar periods.
What is the Dasha System?
The Dasha system is Vedic astrology's timing mechanism. While a birth chart shows what will happen, Dashas tell you when. It's the most critical component for predictions.
Dasha Hierarchy
- Mahadasha - Major period (6-20 years)
- Antardasha - Sub-period (months to years)
- Pratyantar - Sub-sub-period (weeks to months)
- Sookshma - Micro-period (days)
- Prana - Breath-level (hours)
Vimshottari Dasha Periods
The 120-year cycle divided among 9 planets:
API Request
POST https://api.vedika.io/v1/predictions/dasha
{
"dateOfBirth": "1990-05-15",
"timeOfBirth": "14:30:00",
"placeOfBirth": "Mumbai, India",
"dashaSystem": "vimshottari",
"levels": 3
}
API Response
{
"currentDasha": {
"mahadasha": {
"planet": "Jupiter",
"startDate": "2018-03-15",
"endDate": "2034-03-15",
"yearsRemaining": 8.24
},
"antardasha": {
"planet": "Saturn",
"startDate": "2024-07-20",
"endDate": "2027-01-28",
"monthsRemaining": 24.2
},
"pratyantar": {
"planet": "Mercury",
"startDate": "2025-11-05",
"endDate": "2026-03-18",
"daysRemaining": 86
}
},
"prediction": {
"overall": { "text": "Jupiter-Saturn-Mercury period brings focus on career...", "sentiment": "positive", "score": 78 },
"career": { "text": "Excellent for promotions and recognition...", "sentiment": "positive", "score": 92 },
"health": { "text": "Watch for respiratory issues...", "sentiment": "neutral", "score": 62 },
"relationship": { "text": "Stable but requiring patience...", "sentiment": "neutral", "score": 68 }
},
"upcomingDashas": [
{
"mahadasha": "Jupiter",
"antardasha": "Mercury",
"startDate": "2027-01-28",
"endDate": "2029-05-06"
}
],
"fullDashaTimeline": [
{"planet": "Venus", "start": "1990-05-15", "end": "2001-05-15"},
{"planet": "Sun", "start": "2001-05-15", "end": "2007-05-15"},
{"planet": "Moon", "start": "2007-05-15", "end": "2017-05-15"},
{"planet": "Mars", "start": "2017-05-15", "end": "2024-05-15"},
{"planet": "Rahu", "start": "2024-05-15", "end": "2042-05-15"}
]
}
Python Implementation
import requests
from datetime import datetime
def get_current_dasha(dob, tob, place):
"""Get current running Dasha periods"""
response = requests.post(
"https://api.vedika.io/v1/predictions/dasha",
headers={"Authorization": "Bearer YOUR_API_KEY"},
json={
"dateOfBirth": dob,
"timeOfBirth": tob,
"placeOfBirth": place,
"dashaSystem": "vimshottari",
"levels": 3
}
)
return response.json()
# Get dasha data
dasha = get_current_dasha("1990-05-15", "14:30:00", "Mumbai, India")
# Current periods
current = dasha['currentDasha']
print(f"Mahadasha: {current['mahadasha']['planet']}")
print(f"Antardasha: {current['antardasha']['planet']}")
print(f"Pratyantar: {current['pratyantar']['planet']}")
# Predictions
print(f"\nPrediction: {dasha['prediction']['overall']}")
Supported Dasha Systems
- Vimshottari - Most popular, 120-year cycle
- Yogini - 36-year cycle, 8 yoginis
- Chara - Jaimini system, sign-based
- Ashtottari - 108-year cycle
- Kalachakra - Complex Nakshatra-based
Use Cases
Life Event Timing
Marriage, career changes, health events - Dasha periods indicate when major life changes are likely.
Muhurtha Selection
Combine Dasha with transits to find optimal timing for important decisions and events.
Remedy Recommendations
Suggest specific remedies based on currently running planetary periods.
Subscription Predictions
Send personalized predictions when users enter new Dasha periods.
Implement Dasha Predictions
Vedika API calculates all 5 Dasha systems with predictions for each period. Swiss Ephemeris accuracy.
Get Free API Key