Back to Docs

Full Vedic Calculate

POST/api/v1/vedic/calculate

The 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/calculate

Available Features

Planets

Always included with positions and Nakshatra

Always On
Houses

Always included with sign placements

Always On
Vargas

Divisional charts (D1, D9, D10, etc.)

vargas
Dasha

Vimshottari Dasha timeline

dasha_levels
Yogas

Planetary combination detection

include_yogas
Panchang

Tithi, Nakshatra, Yoga, Karana

include_panchang
Shadbala

6-fold planetary strength

include_shadbala
Ashtakavarga

8-fold house strength

include_ashtakavarga

Request Parameters

ParameterTypeRequiredDescription
yearintegerYesYear of birth
monthintegerYesMonth of birth (1-12)
dayintegerYesDay of birth (1-31)
hourintegerYesHour of birth (0-23)
minuteintegerYesMinute of birth (0-59)
latfloatYesLatitude (-90 to 90)
lngfloatYesLongitude (-180 to 180)
citystringNoCity name
tz_strstringNoTimezone string. Default: 'AUTO'
ayanamshastringNo'lahiri' (default), 'raman', 'krishnamurti'
house_systemstringNo'whole_sign' (default), 'placidus', 'equal'
node_typestringNo'mean' (default) or 'true'
vargasarray[int]NoDivisional charts to include. Default: [1]
include_yogasbooleanNoInclude yoga detection. Default: false
include_panchangbooleanNoInclude Tithi/Nakshatra. Default: false
include_shadbalabooleanNoInclude Shadbala. Default: false
include_ashtakavargabooleanNoInclude Ashtakavarga. Default: false
dasha_levelsintegerNoDasha 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: