The tamil_month_panchang API provides a list of lunar events for a specific month and year in the Tamil calendar. The response includes the month and year, along with a list of daily panchang data such as tithi (lunar day), nakshatra (lunar mansion), and paksha (lunar phase)
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 |
{
"month": 6,
"year": 1993,
"panchang_data": [
{
"date": 1,
"tithi": "Duvadasi",
"nakshatra": "Chithirai",
"paksha": "Shukla"
},
{
"date": 2,
"tithi": "Thirayodasi",
"nakshatra": "Swathi",
"paksha": "Shukla"
},
{
"date": 3,
"tithi": "Sathuradasi",
"nakshatra": "Visakam",
"paksha": "Shukla"
},
{
"date": 4,
"tithi": "Pournami",
"nakshatra": "Anusham",
"paksha": "Shukla"
},
{
"date": 5,
"tithi": "Pirathamai",
"nakshatra": "Kettai",
"paksha": "Krishna"
},
{
"date": 6,
"tithi": "Thuthiyai",
"nakshatra": "Moolam",
"paksha": "Krishna"
},
{
"date": 7,
"tithi": "Thiruthiyai",
"nakshatra": "Pooradam",
"paksha": "Krishna"
},
{
"date": 8,
"tithi": "Sathurthi",
"nakshatra": "Uthiradam",
"paksha": "Krishna"
},
{
"date": 9,
"tithi": "Panjami",
"nakshatra": "Thiruvonam",
"paksha": "Krishna"
},
{
"date": 10,
"tithi": "Shasti",
"nakshatra": "Avittam",
"paksha": "Krishna"
},
{
"date": 11,
"tithi": "Sapthami",
"nakshatra": "Sathayam",
"paksha": "Krishna"
},
{
"date": 12,
"tithi": "Astami",
"nakshatra": "Poorattathi",
"paksha": "Krishna"
},
{
"date": 13,
"tithi": "Navami",
"nakshatra": "Uthirattathi",
"paksha": "Krishna"
},
{
"date": 14,
"tithi": "Thasami",
"nakshatra": "Revathi",
"paksha": "Krishna"
},
{
"date": 15,
"tithi": "Egadashi",
"nakshatra": "Aswini",
"paksha": "Krishna"
},
{
"date": 16,
"tithi": "Egadashi",
"nakshatra": "Aswini",
"paksha": "Krishna"
},
{
"date": 17,
"tithi": "Duvadasi",
"nakshatra": "Bharani",
"paksha": "Krishna"
},
{
"date": 18,
"tithi": "Thirayodasi",
"nakshatra": "Karthigai",
"paksha": "Krishna"
},
{
"date": 19,
"tithi": "Sathuradasi",
"nakshatra": "Rohini",
"paksha": "Krishna"
},
{
"date": 20,
"tithi": "Amavasai",
"nakshatra": "Mirugasirisham",
"paksha": "Krishna"
},
{
"date": 21,
"tithi": "Pirathamai",
"nakshatra": "Thiruvathirai",
"paksha": "Shukla"
},
{
"date": 22,
"tithi": "Thiruthiyai",
"nakshatra": "Punarpoosam",
"paksha": "Shukla"
},
{
"date": 23,
"tithi": "Sathurthi",
"nakshatra": "Poosam",
"paksha": "Shukla"
},
{
"date": 24,
"tithi": "Panjami",
"nakshatra": "Ayilyam",
"paksha": "Shukla"
},
{
"date": 25,
"tithi": "Shasti",
"nakshatra": "Pooram",
"paksha": "Shukla"
},
{
"date": 26,
"tithi": "Sapthami",
"nakshatra": "Uthiram",
"paksha": "Shukla"
},
{
"date": 27,
"tithi": "Astami",
"nakshatra": "Hastham",
"paksha": "Shukla"
},
{
"date": 28,
"tithi": "Navami",
"nakshatra": "Chithirai",
"paksha": "Shukla"
},
{
"date": 29,
"tithi": "Thasami",
"nakshatra": "Swathi",
"paksha": "Shukla"
},
{
"date": 30,
"tithi": "Egadashi",
"nakshatra": "Visakam",
"paksha": "Shukla"
}
],
"status": true
}
var api = 'tamil_month_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);
});