The API current_vdasha is returning information about the current Vimshottari Dasha periods according to Vedic astrology. It includes the start and end dates, as well as the ruling planet, for the major, minor, sub-minor, sub-sub-minor, and sub-sub-sub-minor periods.
Accept-Language: enGuide:These languages are supported by this API. You can use them by passing Accept-Language header with a value of the language code.
{
"major": {
"planet": "Sun",
"planet_id": 0,
"start": "2-5-2021 8:7",
"end": "2-5-2027 20:7"
},
"minor": {
"planet": "Saturn",
"planet_id": 6,
"start": "8-3-2024 7:13",
"end": "18-2-2025 6:55"
},
"sub_minor": {
"planet": "Saturn",
"planet_id": 6,
"start": "8-3-2024 7:13",
"end": "2-5-2024 5:46"
},
"sub_sub_minor": {
"planet": "Mercury",
"planet_id": 3,
"start": "16-3-2024 23:59",
"end": "24-3-2024 18:47"
},
"sub_sub_sub_minor": {
"planet": "Moon",
"planet_id": 1,
"start": "20-3-2024 5:49",
"end": "20-3-2024 21:23"
}
}var api = 'current_vdasha';
var userId = '<Your User Id>';
var apiKey = '<Your Api Key>';
var language = '<Your Language>' // By default it is set to en
var data = {
day: 6,
month: 1,
year: 2000,
hour: 7,
min: 45,
lat: 19.132,
lon: 72.342,
tzone: 5.5,
};
var auth = "Basic " + new Buffer(userId + ":" + apiKey).toString("base64");
var request = $.ajax({
url: "https://json.astrologyapi.com/v1/"+api,
method: "POST",
dataType:'json',
headers: {
"authorization": auth,
"Content-Type":'application/json',
"Accept-Language": language
},
data:JSON.stringify(data)
});
request.then( function(resp){
console.log(resp);
}, function(err){
console.log(err);
});