ASTROLOGY API REFERENCE DOCUMENTATION

Krishnamurti Paddhati/KP Planets

Get KP Planets Details

API Endpoint
kp_planets
Method & Url
MethodFull Url
POSThttps://json.apireports.com/v1/kp_planets

Response Data

{
  "status_code": 200,
  "status": true,
  "data": {
    "ayanamsa": 23.686486388888888,
    "kp_planets": {
      "sun": {
        "planet_id": 1,
        "planet_name": "Sun",
        "full_degree": 148.5272842,
        "normDegree": 28.527284199999997,
        "formatted_deg": {
          "full": "148:31:38",
          "deg": "148",
          "min": "31",
          "sec": "38"
        },
        "formatted_norm_deg": {
          "full": "28:31:38",
          "deg": "28",
          "min": "31",
          "sec": "38"
        },
        "house": 10,
        "speed": 0.9743008,
        "retro": false,
        "sign": "Leo",
        "sign_lord": "Sun",
        "nakshatra": "Uttra Phalguni",
        "nakshatra_lord": "Sun",
        "charan": 1,
        "sub_lord": "Mars",
        "sub_sub_lord": "Rahu"
      },
      "moon": {
        "planet_id": 2,
        "planet_name": "Moon",
        "full_degree": 274.2432366,
        "normDegree": 4.243236599999989,
        "formatted_deg": {
          "full": "274:14:36",
          "deg": "274",
          "min": "14",
          "sec": "36"
        },
        "formatted_norm_deg": {
          "full": "04:14:36",
          "deg": "04",
          "min": "14",
          "sec": "36"
        },
        "house": 3,
        "speed": 13.4022877,
        "retro": false,
        "sign": "Capricorn",
        "sign_lord": "Saturn",
        "nakshatra": "Uttra Ashadha",
        "nakshatra_lord": "Sun",
        "charan": 3,
        "sub_lord": "Saturn",
        "sub_sub_lord": "Moon"
      },
      "mars": {
        "planet_id": 3,
        "planet_name": "Mars",
        "full_degree": 84.9436113,
        "normDegree": 24.9436113,
        "formatted_deg": {
          "full": "84:56:37",
          "deg": "84",
          "min": "56",
          "sec": "37"
        },
        "formatted_norm_deg": {
          "full": "24:56:37",
          "deg": "24",
          "min": "56",
          "sec": "37"
        },
        "house": 8,
        "speed": 0.6064089,
        "retro": false,
        "sign": "Gemini",
        "sign_lord": "Mercury",
        "nakshatra": "Punarvasu",
        "nakshatra_lord": "Jupiter",
        "charan": 2,
        "sub_lord": "Mercury",
        "sub_sub_lord": "Rahu"
      },
      "mercury": {
        "planet_id": 4,
        "planet_name": "Mercury",
        "full_degree": 172.358081,
        "normDegree": 22.358081,
        "formatted_deg": {
          "full": "172:21:29",
          "deg": "172",
          "min": "21",
          "sec": "29"
        },
        "formatted_norm_deg": {
          "full": "22:21:29",
          "deg": "22",
          "min": "21",
          "sec": "29"
        },
        "house": 11,
        "speed": 1.3272461,
        "retro": false,
        "sign": "Virgo",
        "sign_lord": "Mercury",
        "nakshatra": "Hasta",
        "nakshatra_lord": "Moon",
        "charan": 4,
        "sub_lord": "Venus",
        "sub_sub_lord": "Mercury"
      },
      "jupiter": {
        "planet_id": 5,
        "planet_name": "Jupiter",
        "full_degree": 198.4625293,
        "normDegree": 18.4625293,
        "formatted_deg": {
          "full": "198:27:45",
          "deg": "198",
          "min": "27",
          "sec": "45"
        },
        "formatted_norm_deg": {
          "full": "18:27:45",
          "deg": "18",
          "min": "27",
          "sec": "45"
        },
        "house": 12,
        "speed": 0.1754549,
        "retro": false,
        "sign": "Libra",
        "sign_lord": "Venus",
        "nakshatra": "Swati",
        "nakshatra_lord": "Rahu",
        "charan": 4,
        "sub_lord": "Moon",
        "sub_sub_lord": "Jupiter"
      },
      "venus": {
        "planet_id": 6,
        "planet_name": "Venus",
        "full_degree": 192.3163445,
        "normDegree": 12.316344500000014,
        "formatted_deg": {
          "full": "192:18:59",
          "deg": "192",
          "min": "18",
          "sec": "59"
        },
        "formatted_norm_deg": {
          "full": "12:18:59",
          "deg": "12",
          "min": "18",
          "sec": "59"
        },
        "house": 12,
        "speed": 0.7407756,
        "retro": false,
        "sign": "Libra",
        "sign_lord": "Venus",
        "nakshatra": "Swati",
        "nakshatra_lord": "Rahu",
        "charan": 2,
        "sub_lord": "Saturn",
        "sub_sub_lord": "Jupiter"
      },
      "saturn": {
        "planet_id": 7,
        "planet_name": "Saturn",
        "full_degree": 314.2999434,
        "normDegree": 14.299943400000018,
        "formatted_deg": {
          "full": "314:17:60",
          "deg": "314",
          "min": "17",
          "sec": "60"
        },
        "formatted_norm_deg": {
          "full": "14:17:60",
          "deg": "14",
          "min": "17",
          "sec": "60"
        },
        "house": 4,
        "speed": -0.0725449,
        "retro": true,
        "sign": "Aquarius",
        "sign_lord": "Saturn",
        "nakshatra": "Shatabhisha",
        "nakshatra_lord": "Rahu",
        "charan": 3,
        "sub_lord": "Mercury",
        "sub_sub_lord": "Saturn"
      },
      "rahu": {
        "planet_id": 8,
        "planet_name": "Rahu",
        "full_degree": 203.7816423,
        "normDegree": 23.781642299999987,
        "formatted_deg": {
          "full": "203:46:54",
          "deg": "203",
          "min": "46",
          "sec": "54"
        },
        "formatted_norm_deg": {
          "full": "23:46:54",
          "deg": "23",
          "min": "46",
          "sec": "54"
        },
        "house": 12,
        "speed": -0.0529538,
        "retro": true,
        "sign": "Libra",
        "sign_lord": "Venus",
        "nakshatra": "Vishakha",
        "nakshatra_lord": "Jupiter",
        "charan": 2,
        "sub_lord": "Saturn",
        "sub_sub_lord": "Jupiter"
      },
      "ketu": {
        "planet_id": 9,
        "planet_name": "Ketu",
        "full_degree": 23.781642299999987,
        "normDegree": 23.781642299999987,
        "formatted_deg": {
          "full": "23:46:54",
          "deg": "23",
          "min": "46",
          "sec": "54"
        },
        "formatted_norm_deg": {
          "full": "23:46:54",
          "deg": "23",
          "min": "46",
          "sec": "54"
        },
        "house": 6,
        "speed": -0.0529538,
        "retro": true,
        "sign": "Aries",
        "sign_lord": "Mars",
        "nakshatra": "Bharani",
        "nakshatra_lord": "Venus",
        "charan": 4,
        "sub_lord": "Saturn",
        "sub_sub_lord": "Jupiter"
      },
      "ascendant": {
        "planet_id": 13,
        "planet_name": "Ascendant",
        "full_degree": 230.6818604,
        "normDegree": 20.681860400000005,
        "formatted_deg": {
          "full": "230:40:55",
          "deg": "230",
          "min": "40",
          "sec": "55"
        },
        "formatted_norm_deg": {
          "full": "20:40:55",
          "deg": "20",
          "min": "40",
          "sec": "55"
        },
        "house": 1,
        "speed": 0.001,
        "retro": false,
        "sign": "Scorpio",
        "sign_lord": "Mars",
        "nakshatra": "Jyeshtha",
        "nakshatra_lord": "Mercury",
        "charan": 2,
        "sub_lord": "Venus",
        "sub_sub_lord": "Jupiter"
      }
    }
  }
}
JSON
Params Data Type Description Example
day int Date of Birth 15
month int Month of Birth 9
year int Year of Birth 1994
hour int Hour of Birth 12
min int Min of Birth 30
lat float Latitude of Birth Place 28.6139
lon float Longitude of Birth Place 77.1025
tzone float Timezone of Birth Place 5.5
# cURL Request Example

curl --location --request POST 'https://json.apireports.com/v1/kp_planets' \
-u '{YourUserID}:{YourApiKey}'\
--header 'Accept-Language: en' \
--header 'Content-Type: application/json' \
--data-raw '{
    "day": 15,
    "month": 9,
    "year": 1994,
    "hour": 12,
    "min": 30,
    "lat": 28.61390000000000100044417195022106170654296875,
    "lon": 77.1025000000000062527760746888816356658935546875,
    "tzone": 5.5
}'

# END
cURL
/* JavaScript Request Example */

var apiEndPoint = "kp_planets";
var userId = "{YourUserID}";
var apiKey = "{YourApiKey}";
var language = "en";
var data = {
    "day": 15,
    "month": 9,
    "year": 1994,
    "hour": 12,
    "min": 30,
    "lat": 28.61390000000000100044417195022106170654296875,
    "lon": 77.1025000000000062527760746888816356658935546875,
    "tzone": 5.5
};
var url = 'https://json.apireports.com/v1/'+apiEndPoint;

var request = $.ajax({
	url: url,
	method: "POST",
	dataType:'json',
	headers: {
		"Authorization": "Basic " + btoa(userId+":"+apiKey),
		"Accept-Language": "en",
		"Content-Type":'application/json'
	},
	data:JSON.stringify(data)
});

request.then(
	function(resp){
		console.log(resp);
	},
	function(err){
		console.log(err);
	}
);

/* END */
JavaScript
<?php
/* PHP Request Example */

$apiEndPoint = "kp_planets";
$userId = "{YourUserID}";
$apiKey = "{YourApiKey}";
$url = "https://json.apireports.com/v1/";
$data = array(
	"day" => 15,
	"month" => 9,
	"year" => 1994,
	"hour" => 12,
	"min" => 30,
	"lat" => 28.6139,
	"lon" => 77.1025,
	"tzone" => 5.5
);
$ch = curl_init();
curl_setopt($ch,CURLOPT_URL, $url.$apiEndPoint);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_TIMEOUT, 20);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);
$header[] = 'Authorization: Basic '. base64_encode($userId.":".$apiKey);
$header[] = 'Accept-Language: en';
$header[] = 'Content-Type: application/json';
curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data));
$response = curl_exec($ch);
$error = curl_error($ch);
$http_code = curl_getinfo($ch ,CURLINFO_HTTP_CODE);
curl_close($ch);
echo $response;

/* END */
PHP
# Python Request Example

import requests
import json

apiEndPoint = "kp_planets";
userId = "{YourUserID}";
apiKey = "{YourApiKey}";
url = "https://json.apireports.com/v1/"+apiEndPoint

data = json.dumps({
    "day": 15,
    "month": 9,
    "year": 1994,
    "hour": 12,
    "min": 30,
    "lat": 28.61390000000000100044417195022106170654296875,
    "lon": 77.1025000000000062527760746888816356658935546875,
    "tzone": 5.5
})

headers = {
  'Accept-Language': 'en',
  'Content-Type': 'application/json'
}

response = requests.request("POST", url, headers=headers, auth=(userId, apiKey),data=data)

print(response.text)

# END
Python
/* NodeJS Request Example */

var request = require('request');
var apiEndPoint = "kp_planets";
var userId = "{YourUserID}";
var apiKey = "{YourApiKey}";
var url = 'https://json.apireports.com/v1/'+apiEndPoint;
var options = {
  'method': 'POST',
  'url': url,
  'auth': {
    'user': userId,
    'password': apiKey
  },
  'headers': {
    'Accept-Language': 'en',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    "day": 15,
    "month": 9,
    "year": 1994,
    "hour": 12,
    "min": 30,
    "lat": 28.61390000000000100044417195022106170654296875,
    "lon": 77.1025000000000062527760746888816356658935546875,
    "tzone": 5.5
})
};
request(options, function (error, response) {
  if (error) throw new Error(error);
  console.log(response.body);
});

/* END */
NodeJS

Astrology API Reports in News