Chestha Bala part in Shad Bala

API Endpoint:

shadbala/cheshta-bala

Method:

POST

Full URL:

https://json.freeastrologyapi.com/shadbala/cheshta-bala



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/cheshta-bala',
  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/cheshta-bala"

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/cheshta-bala',
  '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": {
            "chesta_bala": 10.769,
            "rupas": 0.18
        },
        "Moon": {
            "chesta_bala": 1.419,
            "rupas": 0.02
        },
        "Mars": {
            "chesta_bala": 54.129,
            "rupas": 0.9
        },
        "Mercury": {
            "chesta_bala": 9.627,
            "rupas": 0.16
        },
        "Jupiter": {
            "chesta_bala": 37.317,
            "rupas": 0.62
        },
        "Venus": {
            "chesta_bala": 40.634,
            "rupas": 0.68
        },
        "Saturn": {
            "chesta_bala": 6.36,
            "rupas": 0.11
        }
    }
}