Full Vedic Calculate
POST
/api/v1/vedic/calculateThe all-in-one Vedic astrology endpoint. Enable only the features you need using toggles to optimize response size and performance. Combines chart, dasha, yogas, panchang, and strength calculations in a single request.
Full URL
https://astro-api-1qnc.onrender.com/api/v1/vedic/calculateAvailable Features
Planets
Always included with positions and Nakshatra
Houses
Always included with sign placements
Vargas
Divisional charts (D1, D9, D10, etc.)
Dasha
Vimshottari Dasha timeline
Yogas
Planetary combination detection
Panchang
Tithi, Nakshatra, Yoga, Karana
Shadbala
6-fold planetary strength
Ashtakavarga
8-fold house strength
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| year | integer | Yes | Year of birth |
| month | integer | Yes | Month of birth (1-12) |
| day | integer | Yes | Day of birth (1-31) |
| hour | integer | Yes | Hour of birth (0-23) |
| minute | integer | Yes | Minute of birth (0-59) |
| lat | float | Yes | Latitude (-90 to 90) |
| lng | float | Yes | Longitude (-180 to 180) |
| city | string | No | City name |
| tz_str | string | No | Timezone string. Default: 'AUTO' |
| ayanamsha | string | No | 'lahiri' (default), 'raman', 'krishnamurti' |
| house_system | string | No | 'whole_sign' (default), 'placidus', 'equal' |
| node_type | string | No | 'mean' (default) or 'true' |
| vargas | array[int] | No | Divisional charts to include. Default: [1] |
| include_yogas | boolean | No | Include yoga detection. Default: false |
| include_panchang | boolean | No | Include Tithi/Nakshatra. Default: false |
| include_shadbala | boolean | No | Include Shadbala. Default: false |
| include_ashtakavarga | boolean | No | Include Ashtakavarga. Default: false |
| dasha_levels | integer | No | Dasha depth (1-3). Default: 1 |
Sample Code
import requests
import json
url = "https://astro-api-1qnc.onrender.com/api/v1/vedic/calculate"
payload = {
"year": 1990,
"month": 5,
"day": 15,
"hour": 10,
"minute": 30,
"city": "New Delhi",
"lat": 28.6139,
"lng": 77.2090,
"tz_str": "Asia/Kolkata",
"ayanamsha": "lahiri",
"house_system": "whole_sign",
"node_type": "mean",
# Feature toggles
"vargas": [1, 9, 10], # D1, D9, D10
"include_yogas": True,
"include_panchang": True,
"include_shadbala": True,
"include_ashtakavarga": True,
"dasha_levels": 2 # Mahadasha + Antardasha
}
headers = {
"Content-Type": "application/json",
"x-api-key": "YOUR_API_KEY"
}
response = requests.post(url, headers=headers, json=payload)
print(response.json())Response Data
{
"subject": {
"name": "Chart",
"city": "New Delhi",
"tz_str": "Asia/Kolkata",
"ayanamsha": "lahiri",
"ayanamsha_value": 23.456
},
"ascendant": {
"sign": "Cancer",
"sign_num": 4,
"degree": 15.234,
"nakshatra": { "name": "Pushya", "pada": 2 }
},
"planets": [
{
"name": "Sun",
"sign": "Taurus",
"degree": 0.543,
"house": 11,
"nakshatra": { "name": "Krittika", "pada": 2, "lord": "Sun" },
"is_retrograde": false,
"vargas": {
"D9": { "sign": "Capricorn", "house": 7 },
"D10": { "sign": "Scorpio", "house": 5 }
}
}
// ... other planets
],
"houses": [
{ "house": 1, "sign": "Cancer", "sign_num": 4 }
// ... 12 houses
],
"vimshottari_dasha": [
{
"lord": "Moon",
"start": "1985-04-12",
"end": "1995-04-12",
"sub_periods": [
{ "lord": "Moon", "start": "1985-04-12", "end": "1986-02-12" },
{ "lord": "Mars", "start": "1986-02-12", "end": "1986-09-12" }
// ...
]
}
// ...
],
"yogas": [
{ "name": "Gajakesari Yoga", "active": true, "strength": "Strong" },
{ "name": "Budha-Aditya Yoga", "active": true }
],
"panchang": {
"tithi": { "number": 5, "name": "Shukla Panchami" },
"nakshatra": { "id": 22, "name": "Shravana" },
"yoga": { "number": 12, "name": "Dhruva" },
"karana": { "number": 9, "name": "Balava" }
},
"shadbala": {
"Sun": { "total": 432.5, "strength_rating": "Medium" }
// ...
},
"ashtakavarga": {
"sarva_ashtakavarga": [
{ "house": 1, "points": 28 }
// ...
]
}
}Specialized Endpoints
For lighter responses, use these focused endpoints: