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 |
[
{
"house_id": 1,
"cusp_full_degree": 97.86718271994977,
"formatted_degree": "97:52:1",
"sign_id": 4,
"sign": "Cancer",
"sign_lord": "Moon",
"nakshatra": "Pushya",
"nakshatra_lord": "Saturn",
"sub_lord": "Ketu",
"sub_sub_lord": "Jupiter"
},
{
"house_id": 2,
"cusp_full_degree": 123.68366304753593,
"formatted_degree": "123:41:1",
"sign_id": 5,
"sign": "Leo",
"sign_lord": "Sun",
"nakshatra": "Magha",
"nakshatra_lord": "Ketu",
"sub_lord": "Moon",
"sub_sub_lord": "Moon"
},
{
"house_id": 3,
"cusp_full_degree": 152.87269048048648,
"formatted_degree": "152:52:21",
"sign_id": 6,
"sign": "Virgo",
"sign_lord": "Mercury",
"nakshatra": "Uttra Phalguni",
"nakshatra_lord": "Sun",
"sub_lord": "Jupiter",
"sub_sub_lord": "Rahu"
},
{
"house_id": 4,
"cusp_full_degree": 185.03025077899693,
"formatted_degree": "185:1:48",
"sign_id": 7,
"sign": "Libra",
"sign_lord": "Venus",
"nakshatra": "Chitra",
"nakshatra_lord": "Mars",
"sub_lord": "Sun",
"sub_sub_lord": "Rahu"
},
{
"house_id": 5,
"cusp_full_degree": 217.57536882321938,
"formatted_degree": "217:34:31",
"sign_id": 8,
"sign": "Scorpio",
"sign_lord": "Mars",
"nakshatra": "Anuradha",
"nakshatra_lord": "Saturn",
"sub_lord": "Ketu",
"sub_sub_lord": "Moon"
},
{
"house_id": 6,
"cusp_full_degree": 248.50736965064704,
"formatted_degree": "248:30:26",
"sign_id": 9,
"sign": "Sagittarius",
"sign_lord": "Jupiter",
"nakshatra": "Mool",
"nakshatra_lord": "Ketu",
"sub_lord": "Jupiter",
"sub_sub_lord": "Venus"
},
{
"house_id": 7,
"cusp_full_degree": 277.86718271994977,
"formatted_degree": "277:52:1",
"sign_id": 10,
"sign": "Capricorn",
"sign_lord": "Saturn",
"nakshatra": "Uttra Shadha",
"nakshatra_lord": "Sun",
"sub_lord": "Venus",
"sub_sub_lord": "Venus"
},
{
"house_id": 8,
"cusp_full_degree": 303.68366304753596,
"formatted_degree": "303:41:1",
"sign_id": 11,
"sign": "Aquarius",
"sign_lord": "Saturn",
"nakshatra": "Dhanishtha",
"nakshatra_lord": "Mars",
"sub_lord": "Venus",
"sub_sub_lord": "Rahu"
},
{
"house_id": 9,
"cusp_full_degree": 332.8726904804865,
"formatted_degree": "332:52:21",
"sign_id": 12,
"sign": "Pisces",
"sign_lord": "Jupiter",
"nakshatra": "Purva Bhadrapad",
"nakshatra_lord": "Jupiter",
"sub_lord": "Rahu",
"sub_sub_lord": "Venus"
},
{
"house_id": 10,
"cusp_full_degree": 5.03025077899694,
"formatted_degree": "5:1:48",
"sign_id": 1,
"sign": "Aries",
"sign_lord": "Mars",
"nakshatra": "Ashwini",
"nakshatra_lord": "Ketu",
"sub_lord": "Mars",
"sub_sub_lord": "Jupiter"
},
{
"house_id": 11,
"cusp_full_degree": 37.575368823219385,
"formatted_degree": "37:34:31",
"sign_id": 2,
"sign": "Taurus",
"sign_lord": "Venus",
"nakshatra": "Krittika",
"nakshatra_lord": "Sun",
"sub_lord": "Ketu",
"sub_sub_lord": "Saturn"
},
{
"house_id": 12,
"cusp_full_degree": 68.50736965064705,
"formatted_degree": "68:30:26",
"sign_id": 3,
"sign": "Gemini",
"sign_lord": "Mercury",
"nakshatra": "Ardra",
"nakshatra_lord": "Rahu",
"sub_lord": "Rahu",
"sub_sub_lord": "Moon"
}
]
var api = 'kp_house_cusps';
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);
});