Get Planetary Friendship
Method | Full Url |
---|---|
POST | https://json.apireports.com/v1/planetary_friendship |
{
"status_code": 200,
"status": true,
"data": {
"PERMANENT_FRIENDSHIP": {
"sun": {
"sun": "-",
"moon": "Friend",
"mars": "Friend",
"mercury": "Neutral",
"jupiter": "Friend",
"venus": "Enemy",
"saturn": "Enemy",
"rahu": "Enemy",
"ketu": "Enemy"
},
"moon": {
"sun": "Friend",
"moon": "-",
"mars": "Neutral",
"mercury": "Friend",
"jupiter": "Neutral",
"venus": "Neutral",
"saturn": "Neutral",
"rahu": "Enemy",
"ketu": "Enemy"
},
"mars": {
"sun": "Friend",
"moon": "Friend",
"mars": "-",
"mercury": "Enemy",
"jupiter": "Friend",
"venus": "Neutral",
"saturn": "Neutral",
"rahu": "Enemy",
"ketu": "Friend"
},
"mercury": {
"sun": "Friend",
"moon": "Enemy",
"mars": "Neutral",
"mercury": "-",
"jupiter": "Neutral",
"venus": "Friend",
"saturn": "Neutral",
"rahu": "Neutral",
"ketu": "Neutral"
},
"jupiter": {
"sun": "Friend",
"moon": "Friend",
"mars": "Friend",
"mercury": "Enemy",
"jupiter": "-",
"venus": "Enemy",
"saturn": "Neutral",
"rahu": "Friend",
"ketu": "Friend"
},
"venus": {
"sun": "Enemy",
"moon": "Enemy",
"mars": "Neutral",
"mercury": "Friend",
"jupiter": "Neutral",
"venus": "-",
"saturn": "Friend",
"rahu": "Friend",
"ketu": "Neutral"
},
"saturn": {
"sun": "Enemy",
"moon": "Enemy",
"mars": "Enemy",
"mercury": "Friend",
"jupiter": "Neutral",
"venus": "Friend",
"saturn": "-",
"rahu": "Friend",
"ketu": "Enemy"
},
"rahu": {
"sun": "Enemy",
"moon": "Enemy",
"mars": "Enemy",
"mercury": "Neutral",
"jupiter": "Neutral",
"venus": "Friend",
"saturn": "Friend",
"rahu": "-",
"ketu": "Enemy"
},
"ketu": {
"sun": "Enemy",
"moon": "Enemy",
"mars": "Friend",
"mercury": "Neutral",
"jupiter": "Neutral",
"venus": "Friend",
"saturn": "Enemy",
"rahu": "Enemy",
"ketu": "-"
}
},
"TEMPORAL_FRIENDSHIP": {
"sun": {
"sun": "-",
"moon": "Enemy",
"mars": "Friend",
"mercury": "Friend",
"jupiter": "Friend",
"venus": "Friend",
"saturn": "Enemy",
"rahu": "Friend",
"ketu": "Enemy"
},
"moon": {
"sun": "Enemy",
"moon": "-",
"mars": "Enemy",
"mercury": "Enemy",
"jupiter": "Friend",
"venus": "Friend",
"saturn": "Friend",
"rahu": "Friend",
"ketu": "Friend"
},
"mars": {
"sun": "Friend",
"moon": "Enemy",
"mars": "-",
"mercury": "Friend",
"jupiter": "Enemy",
"venus": "Enemy",
"saturn": "Enemy",
"rahu": "Enemy",
"ketu": "Friend"
},
"mercury": {
"sun": "Friend",
"moon": "Enemy",
"mars": "Friend",
"mercury": "-",
"jupiter": "Friend",
"venus": "Friend",
"saturn": "Enemy",
"rahu": "Friend",
"ketu": "Enemy"
},
"jupiter": {
"sun": "Friend",
"moon": "Friend",
"mars": "Enemy",
"mercury": "Friend",
"jupiter": "-",
"venus": "Enemy",
"saturn": "Enemy",
"rahu": "Enemy",
"ketu": "Enemy"
},
"venus": {
"sun": "Friend",
"moon": "Friend",
"mars": "Enemy",
"mercury": "Friend",
"jupiter": "Enemy",
"venus": "-",
"saturn": "Enemy",
"rahu": "Enemy",
"ketu": "Enemy"
},
"saturn": {
"sun": "Enemy",
"moon": "Friend",
"mars": "Enemy",
"mercury": "Enemy",
"jupiter": "Enemy",
"venus": "Enemy",
"saturn": "-",
"rahu": "Enemy",
"ketu": "Friend"
},
"rahu": {
"sun": "Friend",
"moon": "Friend",
"mars": "Enemy",
"mercury": "Friend",
"jupiter": "Enemy",
"venus": "Enemy",
"saturn": "Enemy",
"rahu": "-",
"ketu": "Enemy"
},
"ketu": {
"sun": "Enemy",
"moon": "Friend",
"mars": "Friend",
"mercury": "Enemy",
"jupiter": "Enemy",
"venus": "Enemy",
"saturn": "Friend",
"rahu": "Enemy",
"ketu": "-"
}
},
"FIVEFOLD_FRIENDSHIP": {
"sun": {
"sun": "-",
"moon": "Neutral",
"mars": "Great Friend",
"mercury": "Friend",
"jupiter": "Great Friend",
"venus": "Neutral",
"saturn": "Great Enemy",
"rahu": "Neutral",
"ketu": "Great Enemy"
},
"moon": {
"sun": "Neutral",
"moon": "-",
"mars": "Enemy",
"mercury": "Neutral",
"jupiter": "Friend",
"venus": "Friend",
"saturn": "Friend",
"rahu": "Neutral",
"ketu": "Neutral"
},
"mars": {
"sun": "Great Friend",
"moon": "Neutral",
"mars": "-",
"mercury": "Neutral",
"jupiter": "Neutral",
"venus": "Enemy",
"saturn": "Enemy",
"rahu": "Great Enemy",
"ketu": "Great Friend"
},
"mercury": {
"sun": "Great Friend",
"moon": "Great Enemy",
"mars": "Friend",
"mercury": "-",
"jupiter": "Friend",
"venus": "Great Friend",
"saturn": "Enemy",
"rahu": "Friend",
"ketu": "Enemy"
},
"jupiter": {
"sun": "Great Friend",
"moon": "Great Friend",
"mars": "Neutral",
"mercury": "Neutral",
"jupiter": "-",
"venus": "Great Enemy",
"saturn": "Enemy",
"rahu": "Neutral",
"ketu": "Neutral"
},
"venus": {
"sun": "Neutral",
"moon": "Neutral",
"mars": "Enemy",
"mercury": "Great Friend",
"jupiter": "Enemy",
"venus": "-",
"saturn": "Neutral",
"rahu": "Neutral",
"ketu": "Enemy"
},
"saturn": {
"sun": "Great Enemy",
"moon": "Neutral",
"mars": "Great Enemy",
"mercury": "Neutral",
"jupiter": "Enemy",
"venus": "Neutral",
"saturn": "-",
"rahu": "Neutral",
"ketu": "Neutral"
},
"rahu": {
"sun": "Neutral",
"moon": "Neutral",
"mars": "Great Enemy",
"mercury": "Friend",
"jupiter": "Enemy",
"venus": "Neutral",
"saturn": "Neutral",
"rahu": "-",
"ketu": "Great Enemy"
},
"ketu": {
"sun": "Great Enemy",
"moon": "Neutral",
"mars": "Great Friend",
"mercury": "Enemy",
"jupiter": "Enemy",
"venus": "Neutral",
"saturn": "Neutral",
"rahu": "Great Enemy",
"ketu": "-"
}
}
}
}
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/planetary_friendship' \
-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 = "planetary_friendship";
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 = "planetary_friendship";
$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 = "planetary_friendship";
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 = "planetary_friendship";
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 */