Shad Bala Summary - Indian Vedic Astrology

API Endpoint:

shadbala/summary

Method:

POST

Full URL:

https://json.freeastrologyapi.com/shadbala/summary



Request data
Parameter Data type Description Constraints Required
year Integer Year number, eg: 2023 Valid year Number Yes
month Integer Month number,with no leading zero eg: 7 or 8 valid month number Yes
date Integer Day number,with no leading zero eg: 5 or 6 valid date number Yes
hours Integer hours number,with no leading zero eg: 1 or 2 valid hours number Yes
minutes Integer minutes number,with no leading zero eg: 0 or 1 valid minutes number Yes
seconds Integer seconds number,with no leading zero eg: 0 or 1 valid seconds number Yes
latitude float latitude number, in the range from -90 to 90 Valid latitude Yes
longitude float longitude number, in the range from -180 to 180 valid longitude Yes
timezone float Timezone of birth location, eg: 5.5 valid timezone Yes
config Object Contains optional configuration values Optional No
observation_point String either topocentric or geocentric Optional No
ayanamsha String either tropical or sayana or lahiri Optional No


Sample Payload


    
{
  "year": 1993,
  "month": 1,
  "date": 22,
  "hours": 13,
  "minutes": 20,
  "seconds": 0,
  "latitude": 30.37,
  "longitude": 75.86,
  "timezone": 5.5,
  "settings": {
    "observation_point": "geocentric",
    "ayanamsha": "sayana"
  }
}
    
    


Sample Code





$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://json.freeastrologyapi.com/shadbala/summary',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{
  "year": 1993,
  "month": 1,
  "date": 22,
  "hours": 13,
  "minutes": 20,
  "seconds": 0,
  "latitude": 30.37,
  "longitude": 75.86,
  "timezone": 5.5,
  "settings": {
    "observation_point": "geocentric",
    "ayanamsha": "sayana"
  }
}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json',
    'x-api-key: YOUR_API_KEY_HERE'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;



import requests
import json

url = "https://json.freeastrologyapi.com/shadbala/summary"

payload = json.dumps({
  "year": 1993,
  "month": 1,
  "date": 22,
  "hours": 13,
  "minutes": 20,
  "seconds": 0,
  "latitude": 30.37,
  "longitude": 75.86,
  "timezone": 5.5,
  "settings": {
    "observation_point": "geocentric",
    "ayanamsha": "sayana"
  }
})
headers = {
  'Content-Type': 'application/json',
  'x-api-key': 'YOUR_API_KEY_HERE'
}

response = requests.request("POST", url, headers=headers, data=payload)

print(response.text)



var request = require('request');
var options = {
  'method': 'POST',
  'url': 'https://json.freeastrologyapi.com/shadbala/summary',
  'headers': {
    'Content-Type': 'application/json',
    'x-api-key': 'YOUR_API_KEY_HERE'
  },
  body: JSON.stringify({
    "year": 1993,
    "month": 1,
    "date": 22,
    "hours": 13,
    "minutes": 20,
    "seconds": 0,
    "latitude": 30.37,
    "longitude": 75.86,
    "timezone": 5.5,
    "settings": {
      "observation_point": "geocentric",
      "ayanamsha": "sayana"
    }
  })

};
request(options, function (error, response) {
  if (error) throw new Error(error);
  console.log(response.body);
});




Response data


{
    "statusCode": 200,
    "output": {
        "Sun": {
            "Shadbala": 424.69399999999996,
            "rupas": 7.078,
            "percentage_strength": 141.565,
            "ishta_phala": 17.83,
            "kashta_phala": 38.737
        },
        "Moon": {
            "Shadbala": 343.34656999999993,
            "rupas": 5.722,
            "percentage_strength": 95.374,
            "ishta_phala": 5.384,
            "kashta_phala": 48.146
        },
        "Mars": {
            "Shadbala": 373.69686,
            "rupas": 6.228,
            "percentage_strength": 124.566,
            "ishta_phala": 26.649,
            "kashta_phala": 16.59
        },
        "Mercury": {
            "Shadbala": 331.40628999999996,
            "rupas": 5.523,
            "percentage_strength": 78.906,
            "ishta_phala": 14.698,
            "kashta_phala": 43.497
        },
        "Jupiter": {
            "Shadbala": 336.78471,
            "rupas": 5.613,
            "percentage_strength": 86.355,
            "ishta_phala": 35.99,
            "kashta_phala": 23.951
        },
        "Venus": {
            "Shadbala": 499.63313999999997,
            "rupas": 8.327,
            "percentage_strength": 151.404,
            "ishta_phala": 44.862,
            "kashta_phala": 14.239
        },
        "Saturn": {
            "Shadbala": 277.944429,
            "rupas": 4.632,
            "percentage_strength": 92.648,
            "ishta_phala": 13.423,
            "kashta_phala": 41.216
        }
    }
}