Provides panchang in details
Method | Full Url |
---|---|
POST | https://json.apireports.com/v1/advanced_panchang |
{
"status_code": 200,
"status": true,
"data": {
"date": "15",
"month": "9",
"year": "1994",
"day": "Thursday",
"hindu_day": "Guruvara",
"sun": {
"sun_sign_id": 5,
"sun_sign": "Leo",
"sunrise": "06:06:09",
"sunset": "18:26:56",
"sunrise_timestamp": 779589369,
"sunset_timestamp": 779633816
},
"moon": {
"moon_sign_id": 10,
"moon_sign": "Capricorn",
"moonrise": "15:23:10",
"moonset": "01:39:40",
"moonrise_timestamp": 779622790,
"moonset_timestamp": 779659780
},
"day_duration": "12:20:47",
"ritu": {
"ritu_number": 1,
"ritu_name": "Varsha"
},
"vikram_samvat": {
"year": 2051,
"samvat_id": 21,
"samvat_name": "Sarvajitu"
},
"shaka_samvat": {
"year": 1916,
"samvat_id": 8,
"samvat_name": "Bhava"
},
"ayana": {
"ayana_number": 2,
"ayana_name": "Dakshinayana",
"meaning": "It starts from ‘Kark Sankrati’ every year. During this time interval ‘Dinmaan’ continuously decrease every next day & ‘Raatrimaan’ continuously increase. Direction of sun rise is seen to be changing from North-East to South-East. In these six months the seasons of ‘Varsha’, ‘Sharad’ & ‘Hemant’ come one after another for every two months."
},
"anandadi_yog": {
"anandadi_yog_number": 5,
"name": "Soumya",
"phal": "Bahu Sukha",
"result": "Good Luck"
},
"disha_shool": {
"direction_id": 4,
"direction_name": "South",
"direction_short_name": "S"
},
"moon_nivash": {
"direction_id": 4,
"direction_name": "South",
"direction_short_name": "S"
},
"abhijit_muhurta": {
"start_timestamp": 779610152.5,
"end_timestamp": 779613032.5,
"start_time": "11:52:32",
"end_time": "12:40:32"
},
"rahukaal": {
"start_timestamp": 779617148.375,
"end_timestamp": 779622704.25,
"start_time": "13:49:08",
"end_time": "15:21:44"
},
"amrit_kaal": [
{
"start_datetime": "1994-09-15 16:36:40",
"end_datetime": "1994-09-15 18:12:10",
"start_time": "16:36:40",
"end_time": "18:12:10"
}
],
"varjyam": [
{
"start_datetime": "1994-09-15 07:03:38",
"end_datetime": "1994-09-15 08:39:08",
"start_time": "07:03:38",
"end_time": "08:39:08"
}
],
"guliKaal": {
"start_timestamp": 779600480.75,
"end_timestamp": 779606036.625,
"start_time": "09:11:20",
"end_time": "10:43:56"
},
"yamghant_kaal": {
"start_timestamp": 779589369,
"end_timestamp": 779594924.875,
"start_time": "06:06:09",
"end_time": "07:38:44"
},
"dur_muhurtam": [
{
"start_timestamp": 779604184.6666666,
"end_timestamp": 779607147.8,
"start_time": "10:13:04",
"end_time": "11:02:27"
},
{
"start_timestamp": 779621963.4666667,
"end_timestamp": 779624926.6,
"start_time": "15:09:23",
"end_time": "15:58:46"
}
],
"tithi": {
"details": {
"tithi_number": 11,
"name": "Ekadasi",
"paksh": "Sukla",
"tithi_name": "Sukla Ekadasi",
"special": "Nanda",
"summary": "",
"deity": "Rudra"
},
"end_time": {
"datetime": "1994-09-16 00:38:07",
"timestamp": 779656087,
"time": {
"full": "24:38:07",
"deg": "24",
"min": "38",
"sec": "07"
}
}
},
"karan": {
"details": {
"karan_number": 6,
"karan_name": "Vanija",
"special": "",
"deity": ""
},
"end_time": {
"datetime": "1994-09-15 13:02:55",
"timestamp": 779614375,
"time": {
"full": "13:02:55",
"deg": "13",
"min": "02",
"sec": "55"
}
}
},
"nakshatra": {
"details": {
"nakshatra": {
"number": 21,
"name": "Uttra Ashadha",
"pad": 3,
"lord_id": 1,
"lord": "Sun",
"shool": "None"
},
"sign": {
"number": 10,
"name": "Capricorn",
"symbol": "♑",
"lord_id": 7,
"lord": "Saturn",
"element_id": 2,
"element": "Earth"
}
},
"end_time": {
"datetime": "1994-09-15 22:58:55",
"timestamp": 779650135,
"time": {
"full": "22:58:55",
"deg": "22",
"min": "58",
"sec": "55"
}
}
},
"yog": {
"details": {
"yog_number": 5,
"yog_name": "Sobhana",
"special": "Auspicious yoga, Good for auspicious undertakings.",
"meaning": "(Splendor) — lustrous body and demeanor sensualist, obsessed with sex."
},
"end_time": {
"datetime": "1994-09-15 19:19:36",
"timestamp": 779636976,
"time": {
"full": "19:19:36",
"deg": "19",
"min": "19",
"sec": "36"
}
}
},
"festivals": [
"Parsva Ekadashi"
]
}
}
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/advanced_panchang' \
-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 = "advanced_panchang";
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 = "advanced_panchang";
$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 = "advanced_panchang";
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 = "advanced_panchang";
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 */