Get Tropical Planets
Method | Full Url |
---|---|
POST | https://json.apireports.com/v1/planets/tropical |
{
"status_code": 200,
"status": true,
"data": {
"sun": {
"planet_id": 1,
"planet_name": "Sun",
"full_Degree": 172.2174828,
"norm_degree": 22.2174828,
"formatted_deg": {
"full": "172:13:03",
"deg": "172",
"min": "13",
"sec": "03"
},
"formatted_norm_deg": {
"full": "22:13:03",
"deg": "22",
"min": "13",
"sec": "03"
},
"house": 10,
"speed": 0.9742975,
"retro": false,
"sign_number": 6,
"sign": "Virgo",
"sign_lord": "Mercury",
"nakshatra": "Hasta",
"nakshatra_lord": "Moon",
"nakshatra_pad": 4,
"is_planet_set": false,
"planet_bal_avastha": "Kumar",
"planet_jagrat_avastha": "Jagrat"
},
"moon": {
"planet_id": 2,
"planet_name": "Moon",
"full_Degree": 297.9334351,
"norm_degree": 27.933435099999997,
"formatted_deg": {
"full": "297:56:00",
"deg": "297",
"min": "56",
"sec": "00"
},
"formatted_norm_deg": {
"full": "27:56:00",
"deg": "27",
"min": "56",
"sec": "00"
},
"house": 2,
"speed": 13.402284,
"retro": false,
"sign_number": 10,
"sign": "Capricorn",
"sign_lord": "Saturn",
"nakshatra": "Dhanishtha",
"nakshatra_lord": "Mars",
"nakshatra_pad": 2,
"is_planet_set": false,
"planet_bal_avastha": "Bala",
"planet_jagrat_avastha": "Jagrat"
},
"mars": {
"planet_id": 3,
"planet_name": "Mars",
"full_Degree": 108.6338098,
"norm_degree": 18.633809799999995,
"formatted_deg": {
"full": "108:38:02",
"deg": "108",
"min": "38",
"sec": "02"
},
"formatted_norm_deg": {
"full": "18:38:02",
"deg": "18",
"min": "38",
"sec": "02"
},
"house": 8,
"speed": 0.6064057,
"retro": false,
"sign_number": 4,
"sign": "Cancer",
"sign_lord": "Moon",
"nakshatra": "Ashlesha",
"nakshatra_lord": "Mercury",
"nakshatra_pad": 1,
"is_planet_set": false,
"planet_bal_avastha": "Kumar",
"planet_jagrat_avastha": "Swapan"
},
"mercury": {
"planet_id": 4,
"planet_name": "Mercury",
"full_Degree": 196.0482795,
"norm_degree": 16.048279500000007,
"formatted_deg": {
"full": "196:02:54",
"deg": "196",
"min": "02",
"sec": "54"
},
"formatted_norm_deg": {
"full": "16:02:54",
"deg": "16",
"min": "02",
"sec": "54"
},
"house": 11,
"speed": 1.3272426,
"retro": false,
"sign_number": 7,
"sign": "Libra",
"sign_lord": "Venus",
"nakshatra": "Swati",
"nakshatra_lord": "Rahu",
"nakshatra_pad": 3,
"is_planet_set": false,
"planet_bal_avastha": "Yuva",
"planet_jagrat_avastha": "Swapan"
},
"jupiter": {
"planet_id": 5,
"planet_name": "Jupiter",
"full_Degree": 222.1527278,
"norm_degree": 12.152727800000008,
"formatted_deg": {
"full": "222:09:10",
"deg": "222",
"min": "09",
"sec": "10"
},
"formatted_norm_deg": {
"full": "12:09:10",
"deg": "12",
"min": "09",
"sec": "10"
},
"house": 12,
"speed": 0.1754518,
"retro": false,
"sign_number": 8,
"sign": "Scorpio",
"sign_lord": "Mars",
"nakshatra": "Anuradha",
"nakshatra_lord": "Saturn",
"nakshatra_pad": 3,
"is_planet_set": false,
"planet_bal_avastha": "Yuva",
"planet_jagrat_avastha": "Swapan"
},
"venus": {
"planet_id": 6,
"planet_name": "Venus",
"full_Degree": 216.0065431,
"norm_degree": 6.006543099999988,
"formatted_deg": {
"full": "216:00:24",
"deg": "216",
"min": "00",
"sec": "24"
},
"formatted_norm_deg": {
"full": "06:00:24",
"deg": "06",
"min": "00",
"sec": "24"
},
"house": 12,
"speed": 0.7407717,
"retro": false,
"sign_number": 8,
"sign": "Scorpio",
"sign_lord": "Mars",
"nakshatra": "Anuradha",
"nakshatra_lord": "Saturn",
"nakshatra_pad": 1,
"is_planet_set": false,
"planet_bal_avastha": "Vridha",
"planet_jagrat_avastha": "Supust"
},
"saturn": {
"planet_id": 7,
"planet_name": "Saturn",
"full_Degree": 337.9901419,
"norm_degree": 7.990141900000026,
"formatted_deg": {
"full": "337:59:25",
"deg": "337",
"min": "59",
"sec": "25"
},
"formatted_norm_deg": {
"full": "07:59:25",
"deg": "07",
"min": "59",
"sec": "25"
},
"house": 4,
"speed": -0.0725479,
"retro": true,
"sign_number": 12,
"sign": "Pisces",
"sign_lord": "Jupiter",
"nakshatra": "Uttara Bhadrapada",
"nakshatra_lord": "Saturn",
"nakshatra_pad": 2,
"is_planet_set": false,
"planet_bal_avastha": "Vridha",
"planet_jagrat_avastha": "Supust"
},
"rahu": {
"planet_id": 8,
"planet_name": "Rahu",
"full_Degree": 227.4718408,
"norm_degree": 17.471840799999995,
"formatted_deg": {
"full": "227:28:19",
"deg": "227",
"min": "28",
"sec": "19"
},
"formatted_norm_deg": {
"full": "17:28:19",
"deg": "17",
"min": "28",
"sec": "19"
},
"house": 12,
"speed": -0.0529571,
"retro": true,
"sign_number": 8,
"sign": "Scorpio",
"sign_lord": "Mars",
"nakshatra": "Jyeshtha",
"nakshatra_lord": "Mercury",
"nakshatra_pad": 1,
"is_planet_set": false,
"planet_bal_avastha": "Yuva",
"planet_jagrat_avastha": "Swapan"
},
"ketu": {
"planet_id": 9,
"planet_name": "Ketu",
"full_Degree": 47.471840799999995,
"norm_degree": 17.471840799999995,
"formatted_deg": {
"full": "47:28:19",
"deg": "47",
"min": "28",
"sec": "19"
},
"formatted_norm_deg": {
"full": "17:28:19",
"deg": "17",
"min": "28",
"sec": "19"
},
"house": 6,
"speed": -0.0529571,
"retro": true,
"sign_number": 2,
"sign": "Taurus",
"sign_lord": "Venus",
"nakshatra": "Rohini",
"nakshatra_lord": "Moon",
"nakshatra_pad": 3,
"is_planet_set": false,
"planet_bal_avastha": "Yuva",
"planet_jagrat_avastha": "Swapan"
},
"ascendant": {
"planet_id": 13,
"planet_name": "Ascendant",
"full_Degree": 254.3720589,
"norm_degree": 14.372058900000013,
"formatted_deg": {
"full": "254:22:19",
"deg": "254",
"min": "22",
"sec": "19"
},
"formatted_norm_deg": {
"full": "14:22:19",
"deg": "14",
"min": "22",
"sec": "19"
},
"house": 1,
"speed": 0,
"retro": "-",
"sign_number": 9,
"sign": "Sagittarius",
"sign_lord": "Jupiter",
"nakshatra": "Purva Ashadha",
"nakshatra_lord": "Venus",
"nakshatra_pad": 1,
"is_planet_set": "-",
"planet_bal_avastha": "",
"planet_jagrat_avastha": ""
}
}
}
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/planets/tropical' \
-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
/* JavaScript Request Example */
var apiEndPoint = "planets/tropical";
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 */
<?php
/* PHP Request Example */
$apiEndPoint = "planets/tropical";
$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 */
# Python Request Example
import requests
import json
apiEndPoint = "planets/tropical";
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
/* NodeJS Request Example */
var request = require('request');
var apiEndPoint = "planets/tropical";
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 */