The tamil_panchang API provides information related to the Tamil calendar system, including the day of the week, sunrise and sunset times, moonrise and moonset times, tithi, nakshatra, yog, karan, hindu and tamil months, and various auspicious timings.
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 |
{
"day": "Friday",
"sunrise": "6:2:39",
"sunset": "19:19:24",
"moonrise": "11:3:19",
"moonset": "23:30:50",
"tithi": {
"details": "Shasti",
"end_time": "19:45:55"
},
"nakshatra": {
"details": "Pooram",
"end_time": "27:10:51"
},
"yog": {
"details": "Siddhi",
"end_time": "21:3:43"
},
"karan": {
"details": "Kaulav",
"end_time": "8:56:27"
},
"hindu_month": {
"adhik_status": false,
"purnimanta": "Ashadha",
"amanta": "Ashadha"
},
"tamil_month": {
"month_name": "Aani"
},
"paksha": "Shukla",
"ritu": "Grishm",
"sun_sign": "Mithuna",
"moon_sign": "Simha",
"ayana": "Uttarayana",
"vikram_samvat": 2050,
"shaka_samvat": 1915,
"shaka_samvat_name": "Vyay",
"vkram_samvat_name": "Shrimukh",
"abhijit_muhurta": {
"start": "12:15",
"end": "01:07",
"start_ms": 735,
"end_ms": 787
},
"rahu_kaal": {
"start": "11:01:26",
"end": "12:41:02",
"start_hour": 11.024027777777778,
"end_hour": 12.68388888888889
},
"gulik_kaal": {
"start": "07:42:15",
"end": "09:21:50",
"start_hour": 7.704305555555555,
"end_hour": 9.364166666666666
},
"yamghant_kaal": {
"start": "16:00:13",
"end": "17:39:48",
"start_hour": 16.003611111111113,
"end_hour": 17.663472222222225
},
"dur_muhurtha": [
{
"start_time": "08:42:00",
"end_time": "09:35:07"
},
{
"start_time": "13:07:35",
"end_time": "14:00:42"
}
],
"amrit_kaal": [
{
"start": "21:11:36",
"end": "22:41:12"
}
],
"varjyam": [
{
"start": "12:14:00",
"end": "13:43:36"
}
],
"anandadi_yog": [
{
"yog_name": "Siddhi",
"end_time": "27:10:51"
},
{
"yog_name": "Shubham"
}
]
}
var api = 'tamil_panchang';
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);
});