Find Inauspicious Timings
Navigate wisely through challenging periods with our 'Inauspicious Timings' API, offering insights into periods to exercise caution as per the tenets of Indian Astrology.
POST
https://astroapi-3.divineapi.com/indian-api/v1/inauspicious-timings
Returns Inauspicious Timings start and end time in response
Headers
Request Body
{
"success": 1,
"data": {
"date": "2023-05-24",
"sunrise": "2024-05-01 05:25:56",
"sunset": "2023-05-24 19:10:28",
"rahu_kaal": {
"start_time": "2023-05-24 12:18:12",
"end_time": "2023-05-24 14:01:16"
},
"gulkai_kaal": {
"start_time": "2023-05-24 10:35:08",
"end_time": "2023-05-24 12:18:12"
},
"yamaganda": {
"start_time": "2023-05-24 07:09:00",
"end_time": "2023-05-24 08:52:04"
},
"baana": [
{
"sign": "Roga",
"start_time": "2023-05-24 05:25:56",
"end_time": "2023-05-24 20:00:56"
}
],
"panchaka": [],
"varjyam": {
"start_time": "2023-05-25 00:01:44",
"end_time": "2023-05-25 01:47:21"
},
"dur_muhurtam": [
{
"start_time": "2023-05-24 11:50:56",
"end_time": "2023-05-24 12:45:56"
}
],
"hutashana_yoga": [],
"visha_yoga": [],
"yamaghata_yoga": [],
"dagdha_yoga": [],
"samvartaka_yoga": [],
"kakracha_yoga": [],
"mrityu_yoga": [],
"vidaal_yoga": [],
"aadal_yoga": {
"start_time": "2023-05-24 15:06:44",
"end_time": "2023-05-25 05:25:35"
},
"vidaal_yoga_detailed": [],
"aadal_yoga_detailed": [
{
"start_time": "2023-05-24 15:06:44",
"end_time": "2023-05-25 05:25:35"
}
]
}
}
Take a look at how you might call this method via cURL, NodeJS or JavaScript jQuery AJAX and Python :
curl --location 'https://astroapi-3.divineapi.com/indian-api/v1/inauspicious-timings' \
--header 'Authorization: Bearer {Your Auth Token}' \
--form 'api_key="{Your API Key}"' \
--form 'day="24"' \
--form 'month="05"' \
--form 'year="2023"' \
--form 'Place="New Delhi"' \
--form 'lat="28.6139"' \
--form 'lon="77.2090"' \
--form 'tzone="5.5"' \
--form 'lan="en"'
var request = require('request');
var options = {
'method': 'POST',
'url': 'https://astroapi-3.divineapi.com/indian-api/v1/inauspicious-timings',
'headers': {
'Authorization': 'Bearer {Your Auth Token}'
},
formData: {
'api_key': '{Your API Key}',
'day': '24',
'month': '05',
'year': '2023',
'Place': 'New Delhi',
'lat': '28.6139',
'lon': '77.2090',
'tzone': '5.5',
'lan': 'en'
}
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});
var form = new FormData();
form.append("api_key", "{Your API Key}");
form.append("day", "24");
form.append("month", "05");
form.append("year", "2023");
form.append("Place", "New Delhi");
form.append("lat", "28.6139");
form.append("lon", "77.2090");
form.append("tzone", "5.5");
form.append("lan", "en");
var settings = {
"url": "https://astroapi-3.divineapi.com/indian-api/v1/inauspicious-timings",
"method": "POST",
"timeout": 0,
"headers": {
"Authorization": "Bearer {Your Auth Token}"
},
"processData": false,
"mimeType": "multipart/form-data",
"contentType": false,
"data": form
};
$.ajax(settings).done(function (response) {
console.log(response);
});
import requests
url = "https://astroapi-3.divineapi.com/indian-api/v1/inauspicious-timings"
payload = {'api_key': '{Your API Key}',
'day': '24',
'month': '05',
'year': '2023',
'Place': 'New Delhi',
'lat': '28.6139',
'lon': '77.2090',
'tzone': '5.5',
'lan': 'en'}
headers = {
'Authorization': 'Bearer {Your Auth Token}'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
Last updated