Immerse yourself in the festive spirit with our 'Margashirsha Festivals' API, highlighting auspicious occasions and celebrations that mark the vibrant tapestry of Indian Astrology within the Panchang.
Supported Language Codes:200: OK Fetched margashirsha festivals successfully!
Copy {
"success": 1,
"data": {
"year": "2023",
"kalabhairav_jayanti": "2023-12-05",
"utpanna_ekadashi": {
"smartas": {
"date": "2023-12-08",
"parana": {
"start_time": "2023-12-09 13:16:25",
"end_time": "2023-12-09 15:22:25"
}
},
"vaishnavas": {
"date": "2023-12-08",
"parana": {
"start_time": "2023-12-09 13:16:25",
"end_time": "2023-12-09 15:22:25"
}
}
},
"vivah_panchanmi": "2023-12-17",
"mokhada_ekadashi": {
"smartas": {
"date": "2023-12-22",
"parana": {
"start_time": "2023-12-23 13:21:51",
"end_time": "2023-12-23 15:24:51"
}
},
"vaishnavas": {
"date": "2023-12-23",
"parana": {
"start_time": "2023-12-24 07:10:49",
"end_time": "2023-12-24 09:13:49"
}
}
},
"gita_jayanti": "2023-12-22",
"dattatreya_jayanti": "2023-12-26",
"maa_annapurna_jayanti": "2023-12-26"
}
}
cURL NodeJS JavaScript jQuery AJAX Python
Copy curl --location 'https://astroapi-3.divineapi.com/indian-api/v1/margashirsh-festivals' \
--header 'Authorization: Bearer {Your Auth Token}' \
--form 'api_key="{Your API Key}"' \
--form 'year="2023"' \
--form 'Place="New Delhi"' \
--form 'lat="28.6139"' \
--form 'lon="77.2090"' \
--form 'tzone="5.5"'
Copy var request = require('request');
var options = {
'method': 'POST',
'url': 'https://astroapi-3.divineapi.com/indian-api/v1/margashirsh-festivals',
'headers': {
'Authorization': 'Bearer {Your Auth Token}'
},
formData: {
'api_key': '{Your API Key}',
'year': '2023',
'Place': 'New Delhi',
'lat': '28.6139',
'lon': '77.2090',
'tzone': '5.5'
}
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});
Copy var form = new FormData();
form.append("api_key", "{Your API Key}");
form.append("year", "2023");
form.append("Place", "New Delhi");
form.append("lat", "28.6139");
form.append("lon", "77.2090");
form.append("tzone", "5.5");
var settings = {
"url": "https://astroapi-3.divineapi.com/indian-api/v1/margashirsh-festivals",
"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/margashirsh-festivals"
payload = {'api_key': '861dc9bd7f4e7dd3cccd534d0ae2a2e9',
'year': '2023',
'Place': 'New Delhi',
'lat': '28.6139',
'lon': '77.2090',
'tzone': '5.5'}
files=[
]
headers = {
'Authorization': 'Bearer Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczovL2FzdHJvYXBpLTEuZGl2aW5lYXBpLmNvbS9hcGkvYXV0aC1hcGktcmVmcmVzaC10b2tlbiIsImlhdCI6MTY5OTI1NDAzOSwibmJmIjoxNjk5MjU0MjYxLCJqdGkiOiJBTG1OQ3BweW5aUHg2dnZGIiwic3ViIjoiMTM1MCJ9.TQM3mTq7FRt21uKMtXyPT5polqUsbzW5YRMwTHb587Q'
}
response = requests.request("POST", url, headers=headers, data=payload, files=files)
print(response.text)
Copy import requests
url = "https://astroapi-3.divineapi.com/indian-api/v1/margashirsh-festivals"
payload = {'api_key': '{Your API Key}',
'year': '2023',
'Place': 'New Delhi',
'lat': '28.6139',
'lon': '77.2090',
'tzone': '5.5'}
headers = {
'Authorization': 'Bearer {Your Auth Token}'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)