The API varshaphal_mudda_dasha provides information about the planetary dasha sequence for a given time period. The response includes the name of the planet, its duration, and the start and end dates of its dasha period.
Params | Data type | Descriptions |
day required month required year required hour required min required lat required lon required tzone required varshaphal_yearrequired | int int int int int float float float int | date of birth, eg: 10 month of birth, eg: 5 year of birth, eg: 1990 hour, eg: 19 minute, eg: 55 latitude, eg: 19.2056 longitude, eg: 25.2056 timezone, eg: 5.5 Varshaphal year for which you want the details, eg: 2017 |
[
{
"planet": "SUN",
"duration": 18,
"dasha_start": "3-2-2017,12:37:41",
"dasha_end": "21-2-2017,18:55:41"
},
{
"planet": "MOON",
"duration": 30,
"dasha_start": "21-2-2017,18:55:41",
"dasha_end": "24-3-2017,5:25:41"
},
{
"planet": "MARS",
"duration": 21,
"dasha_start": "24-3-2017,5:25:41",
"dasha_end": "14-4-2017,12:46:41"
},
{
"planet": "RAHU",
"duration": 54,
"dasha_start": "14-4-2017,12:46:41",
"dasha_end": "8-6-2017,7:40:41"
},
{
"planet": "JUPITER",
"duration": 48,
"dasha_start": "8-6-2017,7:40:41",
"dasha_end": "27-7-2017,0:28:41"
},
{
"planet": "SATURN",
"duration": 57,
"dasha_start": "27-7-2017,0:28:41",
"dasha_end": "22-9-2017,20:25:41"
},
{
"planet": "MERCURY",
"duration": 51,
"dasha_start": "22-9-2017,20:25:41",
"dasha_end": "13-11-2017,14:16:41"
},
{
"planet": "KETU",
"duration": 21,
"dasha_start": "13-11-2017,14:16:41",
"dasha_end": "4-12-2017,21:37:41"
},
{
"planet": "VENUS",
"duration": 60,
"dasha_start": "4-12-2017,21:37:41",
"dasha_end": "3-2-2018,18:37:41"
}
]
var api = 'varshaphal_mudda_dasha';
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);
});