The varshaphal_yoga API provides a list of yoga names along with their descriptions, powerfullness percentage, and prediction of their occurrence. The response includes information on whether a yoga is happening or not and details about the planets involved in the yoga.
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 |
[
{
"yog_name": "Iquabal Yoga",
"yog_description": "",
"is_yog_happening": false,
"powerfullness_percentage": "",
"yog_prediction": "",
"planets": []
},
{
"yog_name": "Induvara Yoga",
"yog_description": "",
"is_yog_happening": false,
"powerfullness_percentage": "",
"yog_prediction": "",
"planets": []
},
{
"yog_name": "Ithasala Yoga",
"yog_description": "",
"powerfullness_percentage": "",
"is_yog_happening": true,
"yog_prediction": "",
"yog_type": [
{
"yog_name": "Vartamana Ithasala",
"planets": [
"Sun",
"Mars"
],
"planets_id": [
0,
2
]
}
]
},
{
"yog_name": "Easarpha Yoga",
"yog_description": "",
"is_yog_happening": true,
"powerfullness_percentage": "",
"yog_prediction": "",
"planets": [
[
"Venus",
"Sun"
],
[
"Venus",
"Mars"
],
[
"Jupiter",
"Saturn"
]
],
"planets_id": [
[
5,
0
],
[
5,
2
],
[
4,
6
]
]
},
{
"yog_name": "Nakta Yoga",
"yog_description": "",
"is_yog_happening": false,
"powerfullness_percentage": "",
"yog_prediction": "",
"planets": []
},
{
"yog_name": "Yamaya Yoga",
"yog_description": "",
"is_yog_happening": false,
"powerfullness_percentage": "",
"yog_prediction": "",
"planets": []
},
{
"yog_name": "Manahoo Yoga",
"yog_description": "",
"is_yog_happening": false,
"powerfullness_percentage": "",
"yog_prediction": "",
"planets": []
},
{
"yog_name": "Kamboola Yoga",
"yog_description": "",
"is_yog_happening": false,
"powerfullness_percentage": "",
"yog_prediction": "",
"planets": []
},
{
"yog_name": "Garikamboola Yoga",
"yog_description": "",
"is_yog_happening": false,
"powerfullness_percentage": "",
"yog_prediction": "",
"planets": []
},
{
"yog_name": "Khallasara Yoga",
"yog_description": "",
"is_yog_happening": true,
"powerfullness_percentage": "",
"yog_prediction": "",
"planets": []
},
{
"yog_name": "Radda Yoga",
"yog_description": "",
"is_yog_happening": true,
"powerfullness_percentage": "",
"yog_prediction": "",
"planets": []
},
{
"yog_name": "Dupparikutha Yoga",
"yog_description": "",
"is_yog_happening": true,
"powerfullness_percentage": "",
"yog_prediction": "",
"planets": []
},
{
"yog_name": "Duttota Yoga",
"yog_description": "",
"is_yog_happening": false,
"powerfullness_percentage": "",
"yog_prediction": "",
"planets": []
},
{
"yog_name": "Thambira Yoga",
"yog_description": "",
"is_yog_happening": false,
"powerfullness_percentage": "",
"yog_prediction": "",
"planets": []
},
{
"yog_name": "Kuttha Yoga",
"yog_description": "",
"is_yog_happening": true,
"powerfullness_percentage": "",
"yog_prediction": "",
"planets": [
[
null,
"Venus"
]
]
},
{
"yog_name": "Durupha Yoga",
"yog_description": "",
"is_yog_happening": true,
"powerfullness_percentage": "",
"yog_prediction": "",
"planets": [
[
"Sun",
"Mars"
]
]
}
]
var api = 'varshaphal_yoga';
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);
});