Astrology API Reference Documentation

KP Astrology/kp_house_cusps

API Endpoint

kp_house_cusps

Method & URL
Method Full URL
POST https://json.astrologyapi.com/v1/kp_house_cusps

Response Data

			
				[
  {
    "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"
  }
]			
		
Params Data type Descriptions

day

month

year

hour

min

lat

lon

tzone

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

            
                var userId = '';
var apiKey = '';
var data = 'JSON Request Data';
var request = $.ajax({
url: "https://json.astrologyapi.com/v1/"+api,
    method: "POST",
    dataType:'json',
    headers: {
    "authorization": "Basic " + btoa(userId+":"+apiKey),
        "Content-Type":'application/json'
    },
    data:JSON.stringify(data)
});
// Returns A promiss
return( request.then( function(resp){
    return resp;
}, function(err){
    return err;
}));
}
            
		
                
                    require_once 'VedicRishiClient.php';
$userId = "";
$apiKey = "";
$data = array(
    'date' => 25,
    'month' => 12,
    'year' => 1988,
    'hour' => 4,
    'minute' => 0,
    'latitude' => 25.123,
    'longitude' => 82.34,
    'timezone' => 5.5
);
$resourceName = "astro_details";
$vedicRishi = new VedicRishiClient($userId, $apiKey);
$responseData = $vedicRishi->call($resourceName, $data['date'], $data['month'], $data['year'], $data['hour'], $data['minute'], $data['latitude'], $data['longitude'], $data['timezone']);
echo $responseData;


                

             
Download PHP Client