The API planet_ashtak/:planet_name takes a planet name as input and returns the ashtak varga type, planet name, sign, and sign ID along with the ashtak points of each zodiac sign. The response includes the number of points each planet has in each sign and the total number of points in each sign.
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.
planet_name required | string | Planet Name, eg: sun, moon | |
Allowed Values: sunmoonmarsmercuryjupiter+5 more | |||
{
"ashtak_varga": {
"type": "Bhinnashtak",
"planet": "Sun",
"sign": "virgo",
"sign_id": 6
},
"ashtak_points": {
"aries": {
"sun": 0,
"moon": 0,
"mars": 1,
"mercury": 0,
"jupiter": 0,
"venus": 0,
"saturn": 0,
"ascendant": 0,
"total": 1
},
"taurus": {
"sun": 1,
"moon": 1,
"mars": 0,
"mercury": 1,
"jupiter": 1,
"venus": 0,
"saturn": 1,
"ascendant": 1,
"total": 6
},
"gemini": {
"sun": 0,
"moon": 0,
"mars": 1,
"mercury": 1,
"jupiter": 0,
"venus": 0,
"saturn": 1,
"ascendant": 1,
"total": 4
},
"cancer": {
"sun": 0,
"moon": 0,
"mars": 0,
"mercury": 0,
"jupiter": 0,
"venus": 0,
"saturn": 1,
"ascendant": 1,
"total": 2
},
"leo": {
"sun": 1,
"moon": 1,
"mars": 0,
"mercury": 0,
"jupiter": 0,
"venus": 1,
"saturn": 1,
"ascendant": 0,
"total": 4
},
"virgo": {
"sun": 1,
"moon": 0,
"mars": 1,
"mercury": 1,
"jupiter": 0,
"venus": 1,
"saturn": 1,
"ascendant": 0,
"total": 5
},
"libra": {
"sun": 1,
"moon": 0,
"mars": 1,
"mercury": 1,
"jupiter": 0,
"venus": 0,
"saturn": 0,
"ascendant": 1,
"total": 4
},
"scorpio": {
"sun": 1,
"moon": 0,
"mars": 1,
"mercury": 1,
"jupiter": 1,
"venus": 0,
"saturn": 1,
"ascendant": 1,
"total": 6
},
"sagittarius": {
"sun": 1,
"moon": 1,
"mars": 1,
"mercury": 1,
"jupiter": 1,
"venus": 0,
"saturn": 1,
"ascendant": 0,
"total": 6
},
"capricorn": {
"sun": 0,
"moon": 1,
"mars": 1,
"mercury": 0,
"jupiter": 0,
"venus": 0,
"saturn": 0,
"ascendant": 1,
"total": 3
},
"aquarius": {
"sun": 1,
"moon": 0,
"mars": 0,
"mercury": 0,
"jupiter": 0,
"venus": 1,
"saturn": 1,
"ascendant": 0,
"total": 3
},
"pisces": {
"sun": 1,
"moon": 0,
"mars": 1,
"mercury": 1,
"jupiter": 1,
"venus": 0,
"saturn": 0,
"ascendant": 0,
"total": 4
}
}
}var api = 'planet_ashtak/:planet_name';
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);
});