Params | Data Type | Description | Example |
m_day | int | Boy Date of Birth | 15 |
m_month | int | Boy Month of Birth | 9 |
m_year | int | Boy Year of Birth | 1994 |
m_hour | int | Boy Hour of Birth | 12 |
m_min | int | Boy Min of Birth | 30 |
m_lat | float | Boy Latitude of Birth Place | 28.6139 |
m_lon | float | Boy Longitude of Birth Place | 77.1025 |
m_tzone | float | Boy Timezone of Birth Place | 5.5 |
f_day | int | Girl Date of Birth | 15 |
f_month | int | Girl Month of Birth | 9 |
f_year | int | Girl Year of Birth | 1997 |
f_hour | int | Girl Hour of Birth | 12 |
f_min | int | Girl Min of Birth | 30 |
f_lat | float | Girl Latitude of Birth Place | 28.6139 |
f_lon | float | Girl Longitude of Birth Place | 77.1025 |
f_tzone | float | Girl Timezone of Birth Place | 5.5 |
# cURL Request Example
curl --location --request POST 'https://json.apireports.com/v1/match_planet_details/extended' \
-u '{YourUserID}:{YourApiKey}'\
--header 'Accept-Language: en' \
--header 'Content-Type: application/json' \
--data-raw '{
"m_day": 15,
"m_month": 9,
"m_year": 1994,
"m_hour": 12,
"m_min": 30,
"m_lat": 28.61390000000000100044417195022106170654296875,
"m_lon": 77.1025000000000062527760746888816356658935546875,
"m_tzone": 5.5,
"f_day": 15,
"f_month": 9,
"f_year": 1997,
"f_hour": 12,
"f_min": 30,
"f_lat": 28.61390000000000100044417195022106170654296875,
"f_lon": 77.1025000000000062527760746888816356658935546875,
"f_tzone": 5.5
}'
# END
/* JavaScript Request Example */
var apiEndPoint = "match_planet_details/extended";
var userId = "{YourUserID}";
var apiKey = "{YourApiKey}";
var language = "en";
var data = {
"m_day": 15,
"m_month": 9,
"m_year": 1994,
"m_hour": 12,
"m_min": 30,
"m_lat": 28.61390000000000100044417195022106170654296875,
"m_lon": 77.1025000000000062527760746888816356658935546875,
"m_tzone": 5.5,
"f_day": 15,
"f_month": 9,
"f_year": 1997,
"f_hour": 12,
"f_min": 30,
"f_lat": 28.61390000000000100044417195022106170654296875,
"f_lon": 77.1025000000000062527760746888816356658935546875,
"f_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 = "match_planet_details/extended";
$userId = "{YourUserID}";
$apiKey = "{YourApiKey}";
$url = "https://json.apireports.com/v1/";
$data = array(
"m_day" => 15,
"m_month" => 9,
"m_year" => 1994,
"m_hour" => 12,
"m_min" => 30,
"m_lat" => 28.6139,
"m_lon" => 77.1025,
"m_tzone" => 5.5,
"f_day" => 15,
"f_month" => 9,
"f_year" => 1997,
"f_hour" => 12,
"f_min" => 30,
"f_lat" => 28.6139,
"f_lon" => 77.1025,
"f_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 = "match_planet_details/extended";
userId = "{YourUserID}";
apiKey = "{YourApiKey}";
url = "https://json.apireports.com/v1/"+apiEndPoint
data = json.dumps({
"m_day": 15,
"m_month": 9,
"m_year": 1994,
"m_hour": 12,
"m_min": 30,
"m_lat": 28.61390000000000100044417195022106170654296875,
"m_lon": 77.1025000000000062527760746888816356658935546875,
"m_tzone": 5.5,
"f_day": 15,
"f_month": 9,
"f_year": 1997,
"f_hour": 12,
"f_min": 30,
"f_lat": 28.61390000000000100044417195022106170654296875,
"f_lon": 77.1025000000000062527760746888816356658935546875,
"f_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 = "match_planet_details/extended";
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({
"m_day": 15,
"m_month": 9,
"m_year": 1994,
"m_hour": 12,
"m_min": 30,
"m_lat": 28.61390000000000100044417195022106170654296875,
"m_lon": 77.1025000000000062527760746888816356658935546875,
"m_tzone": 5.5,
"f_day": 15,
"f_month": 9,
"f_year": 1997,
"f_hour": 12,
"f_min": 30,
"f_lat": 28.61390000000000100044417195022106170654296875,
"f_lon": 77.1025000000000062527760746888816356658935546875,
"f_tzone": 5.5
})
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});
/* END */