Back to Docs

Planetary Strength

POST/api/v1/vedic/strength

Calculate detailed planetary strength using two classical Vedic methods: Shadbala (sixfold strength) and Ashtakavarga (eightfold contribution system for house analysis).

Full URL

https://astro-api-1qnc.onrender.com/api/v1/vedic/strength

Strength Calculation Methods

Shadbala (षड्बल)

Six sources of planetary strength:

  • Sthana Bala: Positional strength (sign, house)
  • Dig Bala: Directional strength
  • Kala Bala: Temporal strength
  • Chesta Bala: Motional strength
  • Naisargika: Natural strength
  • Drik Bala: Aspectual strength

Ashtakavarga

Eight-source points for each house:

  • Contributions from Sun, Moon, Mars, Mercury
  • Contributions from Jupiter, Venus, Saturn
  • Contribution from Ascendant
  • SAV Total: Sum for all 12 houses
  • Strong House: 28+ points
  • Weak House: Below 25 points

Request Parameters

ParameterTypeRequiredDescription
yearintegerYesYear of birth (e.g., 1990)
monthintegerYesMonth of birth (1-12)
dayintegerYesDay of birth (1-31)
hourintegerYesHour of birth (0-23)
minuteintegerYesMinute of birth (0-59)
latfloatYesLatitude of birth location (-90 to 90)
lngfloatYesLongitude of birth location (-180 to 180)
citystringNoCity name (for display purposes)
tz_strstringNoTimezone string (e.g., 'Asia/Kolkata'). Use 'AUTO' for automatic detection.
ayanamshastringNoAyanamsha system: 'lahiri' (default), 'raman', 'krishnamurti'
house_systemstringNoHouse system: 'whole_sign' (default), 'placidus', 'equal'
node_typestringNoLunar node type: 'mean' (default) or 'true'

Sample Code

import requests
import json

url = "https://astro-api-1qnc.onrender.com/api/v1/vedic/strength"

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"
}

headers = {
    "Content-Type": "application/json",
    "x-api-key": "YOUR_API_KEY"
}

response = requests.post(url, headers=headers, json=payload)
print(response.json())

Response Data

{
  "shadbala": {
    "Sun": {
      "total": 432.5,
      "strength_rating": "Medium",
      "components": {
        "sthana_bala": 120.0,
        "dig_bala": 45.2,
        "kala_bala": 87.3,
        "chesta_bala": 60.0,
        "naisargika_bala": 60.0,
        "drik_bala": 60.0
      },
      "required": 390.0,
      "ratio": 1.11
    },
    "Moon": {
      "total": 389.2,
      "strength_rating": "Low",
      "components": {...},
      "required": 360.0,
      "ratio": 1.08
    },
    "Mars": {
      "total": 520.8,
      "strength_rating": "Strong",
      "components": {...},
      "required": 300.0,
      "ratio": 1.74
    }
    // ... other planets
  },
  "ashtakavarga": {
    "sarva_ashtakavarga": [
      { "house": 1, "points": 28 },
      { "house": 2, "points": 32 },
      { "house": 3, "points": 25 },
      { "house": 4, "points": 29 },
      { "house": 5, "points": 35 },
      { "house": 6, "points": 22 },
      { "house": 7, "points": 30 },
      { "house": 8, "points": 24 },
      { "house": 9, "points": 33 },
      { "house": 10, "points": 31 },
      { "house": 11, "points": 36 },
      { "house": 12, "points": 20 }
    ],
    "total_points": 337,
    "planet_contributions": {
      "Sun": [4, 5, 3, 4, 6, 2, 5, 3, 4, 5, 6, 1],
      "Moon": [5, 4, 4, 5, 5, 3, 4, 3, 5, 4, 5, 2],
      "Mars": [3, 4, 3, 3, 4, 3, 4, 4, 3, 4, 5, 3]
      // ... other planets
    }
  },
  "metadata": {
    "ayanamsha": "lahiri",
    "house_system": "whole_sign"
  }
}

Related Endpoints