The API general_house_report/tropical/:planetName provides a personalized astrological house report based on the tropical zodiac for the specified planet. The response includes the planet name, the house number, and a detailed report on the individual's personality traits, strengths, weaknesses, and potential challenges.
Params | Data type | Descriptions |
day required month required year required hour required min required lat required lon required tzone required | int int int int int float float float | 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 |
{
"planet_name": "SUN",
"house": 3,
"report": "Knowledge is important to you and you chase as much of it as possible. You enjoy passing on the knowledge you have gained. Although you are probably very open to new ideas, there yet may be the desire for scientific proof before anything can be believed. Your mind enjoys creating and it is thorough and self-reliant. Pride and intellectual domination may be something you need to work on, especially intellectual pride. Patience may also need developing. Misunderstandings can occur with siblings or neighbors due to your belief that you are always or mostly right. You have a strong desire to learn and this may take you on many short journeys. You need to communicate and there may be writing or speaking ability."
}
var api = 'general_house_report/tropical/:planetName';
var userId = '<Your User Id>';
var apiKey = '<Your Api Key>';
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'
},
data:JSON.stringify(data)
});
request.then( function(resp){
console.log(resp);
}, function(err){
console.log(err);
});