Get Lalkitab Horoscope
Method | Full Url |
---|---|
POST | https://json.apireports.com/v1/lalkitab_horoscope |
{
"status_code": 200,
"status": true,
"data": {
"chart": {
"1": {
"sign": 1,
"sign_name": "Aries",
"sign_symbol": "♈︎",
"planets": [],
"planets_small": [],
"planets_symbol": []
},
"2": {
"sign": 2,
"sign_name": "Taurus",
"sign_symbol": "♉︎",
"planets": [],
"planets_small": [],
"planets_symbol": []
},
"3": {
"sign": 3,
"sign_name": "Gemini",
"sign_symbol": "♊︎",
"planets": [
"Moon"
],
"planets_small": [
"Mo"
],
"planets_symbol": [
"☽"
]
},
"4": {
"sign": 4,
"sign_name": "Cancer",
"sign_symbol": "♋︎",
"planets": [
"Saturn"
],
"planets_small": [
"Sa"
],
"planets_symbol": [
"♄"
]
},
"5": {
"sign": 5,
"sign_name": "Leo",
"sign_symbol": "♌︎",
"planets": [],
"planets_small": [],
"planets_symbol": []
},
"6": {
"sign": 6,
"sign_name": "Virgo",
"sign_symbol": "♍︎",
"planets": [
"Ketu"
],
"planets_small": [
"Ke"
],
"planets_symbol": [
"☋"
]
},
"7": {
"sign": 7,
"sign_name": "Libra",
"sign_symbol": "♎",
"planets": [],
"planets_small": [],
"planets_symbol": []
},
"8": {
"sign": 8,
"sign_name": "Scorpio",
"sign_symbol": "♏",
"planets": [
"Mars"
],
"planets_small": [
"Ma"
],
"planets_symbol": [
"♂"
]
},
"9": {
"sign": 9,
"sign_name": "Sagittarius",
"sign_symbol": "♐",
"planets": [],
"planets_small": [],
"planets_symbol": []
},
"10": {
"sign": 10,
"sign_name": "Capricorn",
"sign_symbol": "♑",
"planets": [
"Sun"
],
"planets_small": [
"Su"
],
"planets_symbol": [
"☉"
]
},
"11": {
"sign": 11,
"sign_name": "Aquarius",
"sign_symbol": "♒",
"planets": [
"Mercury"
],
"planets_small": [
"Me"
],
"planets_symbol": [
"☿"
]
},
"12": {
"sign": 12,
"sign_name": "Pisces",
"sign_symbol": "♓",
"planets": [
"Jupiter",
"Venus",
"Rahu"
],
"planets_small": [
"Ju",
"Ve",
"Ra"
],
"planets_symbol": [
"♃",
"♀",
"☊"
]
}
}
}
}
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/lalkitab_horoscope' \
-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 = "lalkitab_horoscope";
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 = "lalkitab_horoscope";
$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 = "lalkitab_horoscope";
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 = "lalkitab_horoscope";
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 */