US :  +1 (888) 261-8481    |    INDIA :  +91 (22) 2635-9680

Astrology API Reference Documentation

KP Astrology/kp_details

API Endpoint

kp_details

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

Response Data

			
				{
"basic_details": {
"ayanamsha": 23.623225847214613,
"sunrise": "5:51:54",
"sunset": "17:55:43",
"ascendant": "Capricorn",
"rashi": "Leo",
"nakshatra": "Magha",
"dasha_balance": "Ketu - 6 years 7 months 11 days"
},
"planets": [
{
"planet_id": 0,
"planet_name": "Sun",
"full_degree": 159.6514,
"norm_degree": 9.6514,
"is_retro": false,
"sign_id": 6,
"sign_name": "Virgo",
"sign_lord": "Mercury",
"house": 9,
"house_lord": "Jupiter",
"nakshatra_name": "Uttra Phalguni",
"nakshatra_id": 12,
"nakshatra_lord": "Sun",
"nakshatra_charan": 4,
"sub_lord": "Venus",
"sub_sub_lord": "Mercury",
"sub_sub_sub_lord": "Venus"
},
{
"planet_id": 1,
"planet_name": "Moon",
"full_degree": 120.7888,
"norm_degree": 0.7888,
"is_retro": false,
"sign_id": 5,
"sign_name": "Leo",
"sign_lord": "Sun",
"house": 8,
"house_lord": "Mars",
"nakshatra_name": "Magha",
"nakshatra_id": 10,
"nakshatra_lord": "Ketu",
"nakshatra_charan": 1,
"sub_lord": "Venus",
"sub_sub_lord": "Venus",
"sub_sub_sub_lord": "Venus"
},
{
"planet_id": 2,
"planet_name": "Mars",
"full_degree": 160.7753,
"norm_degree": 10.7753,
"is_retro": false,
"sign_id": 6,
"sign_name": "Virgo",
"sign_lord": "Mercury",
"house": 9,
"house_lord": "Jupiter",
"nakshatra_name": "Hast",
"nakshatra_id": 13,
"nakshatra_lord": "Moon",
"nakshatra_charan": 1,
"sub_lord": "Moon",
"sub_sub_lord": "Mercury",
"sub_sub_sub_lord": "Jupiter"
},
{
"planet_id": 3,
"planet_name": "Mercury",
"full_degree": 156.6255,
"norm_degree": 6.6255,
"is_retro": true,
"sign_id": 6,
"sign_name": "Virgo",
"sign_lord": "Mercury",
"house": 9,
"house_lord": "Jupiter",
"nakshatra_name": "Uttra Phalguni",
"nakshatra_id": 12,
"nakshatra_lord": "Sun",
"nakshatra_charan": 3,
"sub_lord": "Mercury",
"sub_sub_lord": "Jupiter",
"sub_sub_sub_lord": "Sun"
},
{
"planet_id": 4,
"planet_name": "Jupiter",
"full_degree": 75.5568,
"norm_degree": 15.5568,
"is_retro": false,
"sign_id": 3,
"sign_name": "Gemini",
"sign_lord": "Mercury",
"house": 6,
"house_lord": "Mercury",
"nakshatra_name": "Ardra",
"nakshatra_id": 6,
"nakshatra_lord": "Rahu",
"nakshatra_charan": 3,
"sub_lord": "Venus",
"sub_sub_lord": "Venus",
"sub_sub_sub_lord": "Mercury"
},
{
"planet_id": 5,
"planet_name": "Venus",
"full_degree": 202.4378,
"norm_degree": 22.4378,
"is_retro": false,
"sign_id": 7,
"sign_name": "Libra",
"sign_lord": "Venus",
"house": 10,
"house_lord": "Saturn",
"nakshatra_name": "Vishakha",
"nakshatra_id": 16,
"nakshatra_lord": "Jupiter",
"nakshatra_charan": 1,
"sub_lord": "Saturn",
"sub_sub_lord": "Ketu",
"sub_sub_sub_lord": "Venus"
},
{
"planet_id": 6,
"planet_name": "Saturn",
"full_degree": 253.8611,
"norm_degree": 13.8611,
"is_retro": false,
"sign_id": 9,
"sign_name": "Sagittarius",
"sign_lord": "Jupiter",
"house": 12,
"house_lord": "Jupiter",
"nakshatra_name": "Purva Shadha",
"nakshatra_id": 20,
"nakshatra_lord": "Venus",
"nakshatra_charan": 1,
"sub_lord": "Venus",
"sub_sub_lord": "Moon",
"sub_sub_sub_lord": "Rahu"
},
{
"planet_id": 7,
"planet_name": "Rahu",
"full_degree": 299.9503,
"norm_degree": 29.9503,
"is_retro": true,
"sign_id": 10,
"sign_name": "Capricorn",
"sign_lord": "Saturn",
"house": 1,
"house_lord": "Mars",
"nakshatra_name": "Dhanishtha",
"nakshatra_id": 23,
"nakshatra_lord": "Mars",
"nakshatra_charan": 2,
"sub_lord": "Saturn",
"sub_sub_lord": "Jupiter",
"sub_sub_sub_lord": "Mars"
},
{
"planet_id": 8,
"planet_name": "Ketu",
"full_degree": 119.9503,
"norm_degree": 29.9503,
"is_retro": true,
"sign_id": 4,
"sign_name": "Cancer",
"sign_lord": "Moon",
"house": 7,
"house_lord": "Venus",
"nakshatra_name": "Ashlesha",
"nakshatra_id": 9,
"nakshatra_lord": "Mercury",
"nakshatra_charan": 4,
"sub_lord": "Saturn",
"sub_sub_lord": "Jupiter",
"sub_sub_sub_lord": "Mars"
}
],
"houses": [
{
"house_id": 1,
"full_degree": 289.61356704,
"norm_degee": 19.61356704,
"sign_id": 10,
"sign_name": "Capricorn",
"sign_lord": "Saturn",
"nakshatra_id": 22,
"nakshatra_name": "Shravan",
"nakshatra_lord": "Moon",
"nakshatra_charan": 3,
"sub_lord": "Mercury",
"sub_sub_lord": "Saturn",
"sub_sub_sub_lord": "Rahu"
},
{
"house_id": 2,
"full_degree": 325.65978782,
"norm_degee": 25.65978782,
"sign_id": 11,
"sign_name": "Aquarius",
"sign_lord": "Saturn",
"nakshatra_id": 25,
"nakshatra_name": "Purva Bhadrapad",
"nakshatra_lord": "Jupiter",
"nakshatra_charan": 2,
"sub_lord": "Mercury",
"sub_sub_lord": "Saturn",
"sub_sub_sub_lord": "Moon"
},
{
"house_id": 3,
"full_degree": 0.10534529,
"norm_degee": 0.10534529,
"sign_id": 1,
"sign_name": "Aries",
"sign_lord": "Mars",
"nakshatra_id": 1,
"nakshatra_name": "Ashwini",
"nakshatra_lord": "Ketu",
"nakshatra_charan": 1,
"sub_lord": "Ketu",
"sub_sub_lord": "Venus",
"sub_sub_sub_lord": "Rahu"
},
{
"house_id": 4,
"full_degree": 29.78214713,
"norm_degee": 29.78214713,
"sign_id": 1,
"sign_name": "Aries",
"sign_lord": "Mars",
"nakshatra_id": 3,
"nakshatra_name": "Krittika",
"nakshatra_lord": "Sun",
"nakshatra_charan": 1,
"sub_lord": "Rahu",
"sub_sub_lord": "Jupiter",
"sub_sub_sub_lord": "Rahu"
},
{
"house_id": 5,
"full_degree": 55.82910216,
"norm_degee": 25.82910216,
"sign_id": 2,
"sign_name": "Taurus",
"sign_lord": "Venus",
"nakshatra_id": 5,
"nakshatra_name": "Mrigshira",
"nakshatra_lord": "Mars",
"nakshatra_charan": 1,
"sub_lord": "Rahu",
"sub_sub_lord": "Moon",
"sub_sub_sub_lord": "Moon"
},
{
"house_id": 6,
"full_degree": 81.24445378,
"norm_degee": 21.24445378,
"sign_id": 3,
"sign_name": "Gemini",
"sign_lord": "Mercury",
"nakshatra_id": 7,
"nakshatra_name": "Punarvasu",
"nakshatra_lord": "Jupiter",
"nakshatra_charan": 1,
"sub_lord": "Jupiter",
"sub_sub_lord": "Sun",
"sub_sub_sub_lord": "Venus"
},
{
"house_id": 7,
"full_degree": 109.61356704,
"norm_degee": 19.61356704,
"sign_id": 4,
"sign_name": "Cancer",
"sign_lord": "Moon",
"nakshatra_id": 9,
"nakshatra_name": "Ashlesha",
"nakshatra_lord": "Mercury",
"nakshatra_charan": 1,
"sub_lord": "Venus",
"sub_sub_lord": "Venus",
"sub_sub_sub_lord": "Saturn"
},
{
"house_id": 8,
"full_degree": 145.65978782,
"norm_degee": 25.65978782,
"sign_id": 5,
"sign_name": "Leo",
"sign_lord": "Sun",
"nakshatra_id": 11,
"nakshatra_name": "Purva Phalguni",
"nakshatra_lord": "Venus",
"nakshatra_charan": 4,
"sub_lord": "Mercury",
"sub_sub_lord": "Saturn",
"sub_sub_sub_lord": "Mercury"
},
{
"house_id": 9,
"full_degree": 180.10534529,
"norm_degee": 0.10534529,
"sign_id": 7,
"sign_name": "Libra",
"sign_lord": "Venus",
"nakshatra_id": 14,
"nakshatra_name": "Chitra",
"nakshatra_lord": "Mars",
"nakshatra_charan": 3,
"sub_lord": "Mercury",
"sub_sub_lord": "Mercury",
"sub_sub_sub_lord": "Sun"
},
{
"house_id": 10,
"full_degree": 209.78214713,
"norm_degee": 29.78214713,
"sign_id": 7,
"sign_name": "Libra",
"sign_lord": "Venus",
"nakshatra_id": 16,
"nakshatra_name": "Vishakha",
"nakshatra_lord": "Jupiter",
"nakshatra_charan": 3,
"sub_lord": "Moon",
"sub_sub_lord": "Jupiter",
"sub_sub_sub_lord": "Jupiter"
},
{
"house_id": 11,
"full_degree": 235.82910216,
"norm_degee": 25.82910216,
"sign_id": 8,
"sign_name": "Scorpio",
"sign_lord": "Mars",
"nakshatra_id": 18,
"nakshatra_name": "Jyeshtha",
"nakshatra_lord": "Mercury",
"nakshatra_charan": 3,
"sub_lord": "Rahu",
"sub_sub_lord": "Moon",
"sub_sub_sub_lord": "Moon"
},
{
"house_id": 12,
"full_degree": 261.24445378,
"norm_degee": 21.24445378,
"sign_id": 9,
"sign_name": "Sagittarius",
"sign_lord": "Jupiter",
"nakshatra_id": 20,
"nakshatra_name": "Purva Shadha",
"nakshatra_lord": "Venus",
"nakshatra_charan": 3,
"sub_lord": "Jupiter",
"sub_sub_lord": "Venus",
"sub_sub_sub_lord": "Mercury"
}
]
}			
		
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