Vimsottari Maha Dasas

API Endpoint:

vimsottari/maha-dasas

Method:

POST

Full URL:

https://json.freeastrologyapi.com/vimsottari/maha-dasas



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": 1994,
    "month": 4,
    "date": 30,
    "hours": 12,
    "minutes": 45,
    "seconds": 0,
    "latitude": 21.1904,
    "longitude": 81.28491,
    "timezone": 5.5,
    "config": {
        "observation_point": "topocentric", /* geocentric / topocentric */
        "ayanamsha": "lahiri" /* lahiri / sayana */
    }
}
 


Sample Code



$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://json.freeastrologyapi.com/vimsottari/maha-dasas',
  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": 1994,
    "month": 4,
    "date": 30,
    "hours": 12,
    "minutes": 45,
    "seconds": 0,
    "latitude": 21.1904,
    "longitude": 81.28491,
    "timezone": 5.5,
    "config": {
        "observation_point": "topocentric",
        "ayanamsha": "lahiri"
    }
}',
  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/vimsottari/maha-dasas"

payload = json.dumps({
  "year": 1994,
  "month": 4,
  "date": 30,
  "hours": 12,
  "minutes": 45,
  "seconds": 0,
  "latitude": 21.1904,
  "longitude": 81.28491,
  "timezone": 5.5,
  "config": {
    "observation_point": "topocentric",
    "ayanamsha": "lahiri"
  }
})
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/vimsottari/maha-dasas',
  'headers': {
    'Content-Type': 'application/json',
    'x-api-key': 'YOUR_API_KEY_HERE'
  },
  body: JSON.stringify({
    "year": 1994,
    "month": 4,
    "date": 30,
    "hours": 12,
    "minutes": 45,
    "seconds": 0,
    "latitude": 21.1904,
    "longitude": 81.28491,
    "timezone": 5.5,
    "config": {
      "observation_point": "topocentric",
      "ayanamsha": "lahiri"
    }
  })

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




Response data


    {
  "1": {
    "Lord": "Venus",
    "start_time": "1988-08-30 11:18:53.715911",
    "end_time": "2008-08-30 14:22:10.707911"
  },
  "2": {
    "Lord": "Sun",
    "start_time": "2008-08-30 14:22:10.707911",
    "end_time": "2014-08-31 03:17:09.805511"
  },
  "3": {
    "Lord": "Moon",
    "start_time": "2014-08-31 03:17:09.805511",
    "end_time": "2024-08-30 16:48:48.301511"
  },
  "4": {
    "Lord": "Mars",
    "start_time": "2024-08-30 16:48:48.301511",
    "end_time": "2031-08-31 11:52:57.248711"
  },
  "5": {
    "Lord": "Rahu",
    "start_time": "2031-08-31 11:52:57.248711",
    "end_time": "2049-08-31 02:37:54.541511"
  },
  "6": {
    "Lord": "Jupiter",
    "start_time": "2049-08-31 02:37:54.541511",
    "end_time": "2065-08-31 05:04:32.135111"
  },
  "7": {
    "Lord": "Saturn",
    "start_time": "2065-08-31 05:04:32.135111",
    "end_time": "2084-08-31 01:58:39.277511"
  },
  "8": {
    "Lord": "Mercury",
    "start_time": "2084-08-31 01:58:39.277511",
    "end_time": "2101-09-01 10:34:26.720711"
  },
  "9": {
    "Lord": "Ketu",
    "start_time": "2101-09-01 10:34:26.720711",
    "end_time": "2108-09-01 05:38:35.667911"
  }
}