The chaughadiya_muhurta API provides a list of muhurta (auspicious time) categories and their corresponding time intervals for both day and night, based on the Vedic astrology system. The response includes the start and end time for each muhurta category, and the name of the category, such as Labh, Amrit, Kaal, Shubh, Rog, Udveg, and Char.
1. Panchang at specified date and time
Here, following APIs are used and date and time along with latitude, longitude and timezone are expected -
Params | Data type | Descriptions |
day required month required year required hour required min required lat required lon required tzone required | int int int int int float float float | date of birth, eg: 10 month of birth, eg: 5 year of birth, eg: 1990 hour, eg: 19 minute, eg: 55 latitude, eg: 19.2056 longitude, eg: 25.2056 timezone, eg: 5.5 |
{
"chaughadiya": {
"day": [
{
"time": "5 : 41 : 01 - 4 : 06 : 50",
"muhurta": "Labh"
},
{
"time": "4 : 06 : 50 - 2 : 32 : 39",
"muhurta": "Amrit"
},
{
"time": "2 : 32 : 39 - 12 : 58 : 27",
"muhurta": "Kaal"
},
{
"time": "12 : 58 : 27 - 11 : 24 : 16",
"muhurta": "Shubh"
},
{
"time": "11 : 24 : 16 - 09 : 50 : 05",
"muhurta": "Rog"
},
{
"time": "09 : 50 : 05 - 08 : 15 : 53",
"muhurta": "Udveg"
},
{
"time": "08 : 15 : 53 - 06 : 41 : 42",
"muhurta": "Char"
},
{
"time": "06 : 41 : 42 - 05 : 07 : 30",
"muhurta": "Labh"
}
],
"night": [
{
"time": "05 : 07 : 30 - 06 : 41 : 38",
"muhurta": "Udveg"
},
{
"time": "06 : 41 : 38 - 08 : 15 : 46",
"muhurta": "Shubh"
},
{
"time": "08 : 15 : 46 - 09 : 49 : 55",
"muhurta": "Amrit"
},
{
"time": "09 : 49 : 55 - 11 : 24 : 03",
"muhurta": "Char"
},
{
"time": "11 : 24 : 03 - 12 : 58 : 11",
"muhurta": "Rog"
},
{
"time": "12 : 58 : 11 - 2 : 32 : 19",
"muhurta": "Kaal"
},
{
"time": "2 : 32 : 19 - 4 : 06 : 27",
"muhurta": "Labh"
},
{
"time": "4 : 06 : 27 - 5 : 40 : 35",
"muhurta": "Udveg"
}
]
}
}
var api = 'chaughadiya_muhurta';
var userId = '<Your User Id>';
var apiKey = '<Your Api Key>';
var language = '<Your Language>' // By default it is set to en
var data = {
day: 6,
month: 1,
year: 2000,
hour: 7,
min: 45,
lat: 19.132,
lon: 72.342,
tzone: 5.5,
};
var auth = "Basic " + new Buffer(userId + ":" + apiKey).toString("base64");
var request = $.ajax({
url: "https://json.astrologyapi.com/v1/"+api,
method: "POST",
dataType:'json',
headers: {
"authorization": auth,
"Content-Type":'application/json',
"Accept-Language": language
},
data:JSON.stringify(data)
});
request.then( function(resp){
console.log(resp);
}, function(err){
console.log(err);
});