Find Jyeshtha Festivals
Embrace the essence of Jyeshtha with the ‘Jyeshtha Festivals’ API, revealing the astrological and cultural tapestry of celebrations that adorn the Indian calendar within the Panchang realm.
Step-by-Step Postman Integration
API Endpoint
POST https://astroapi-3.divineapi.com/indian-api/v2/jyeshtha-festivals
Returns all festival details from Jyeshtha in the response.
Headers
| Name | Type | Description |
|---|---|---|
| Authorization * | String | Your API Access Token e.g., Bearer {token} |
Request Body
| Name | Type | Description |
|---|---|---|
| api_key * | String | Your API key |
| year * | Integer | Year (e.g., 2023) |
| place | String | Place (e.g., New Delhi) |
| lat * | Float | Latitude (e.g., 28.6139) |
| lon * | Float | Longitude (e.g., 77.2090) |
| tzone * | Float | Time zone (e.g., 5.5) Timezone List |
Example Response — 200 OK
{
"success": 1,
"data": {
"year": "2023",
"narada_jayanti": {
"data": "2023-05-06",
"image": "https://astroapi-6.divineapi.com/public/assets/vedic/festivals/images/main/Narada%20Jayanti.png"
},
"apara_ekadashi": {
"smartas": {
"date": "2023-05-15",
"parana": {
"start_time": "2023-05-16 06:42:00",
"end_time": "2023-05-16 08:12:27"
},
"image": "https://astroapi-6.divineapi.com/public/assets/vedic/festivals/images/main/Apara%20Ekadashi.png"
},
"vaishnavas": {
"date": "2023-05-15",
"parana": {
"start_time": "2023-05-16 06:42:00",
"end_time": "2023-05-16 08:12:27"
},
"image": "https://astroapi-6.divineapi.com/public/assets/vedic/festivals/images/main/Apara%20Ekadashi.png"
}
},
"vat_savitri_vrat": {
"date": "2023-05-19",
"parana": {
"start_time": "2023-05-19 19:08:11",
"end_time": "2023-05-19 21:11:11"
},
"image": "https://astroapi-6.divineapi.com/public/assets/vedic/festivals/images/main/Vat%20Savitri%20Vrat.png"
},
"shani_amavasya": {
"data": "2023-05-19",
"image": "https://astroapi-6.divineapi.com/public/assets/vedic/festivals/images/main/Shani%20Amavasya.png"
},
"ganga_dussehra": {
"data": "2023-05-30",
"image": "https://astroapi-6.divineapi.com/public/assets/vedic/festivals/images/main/Ganga%20Dussehra.png"
},
"nirjala_ekadashi": {
"smartas": {
"date": "2023-05-31",
"parana": {
"start_time": "2023-06-01 05:23:53",
"end_time": "2023-06-01 08:08:53"
},
"image": "https://astroapi-6.divineapi.com/public/assets/vedic/festivals/images/main/Nirjala%20Ekadashi.png"
},
"vaishnavas": {
"date": "2023-05-31",
"parana": {
"start_time": "2023-06-01 05:23:53",
"end_time": "2023-06-01 08:08:53"
},
"image": "https://astroapi-6.divineapi.com/public/assets/vedic/festivals/images/main/Nirjala%20Ekadashi.png"
}
},
"vat_purnima_vrat": {
"date": "2023-06-03",
"parana": {
"start_time": "2023-06-03 19:16:22",
"end_time": "2023-06-03 21:16:22"
},
"image": "https://astroapi-6.divineapi.com/public/assets/vedic/festivals/images/main/Vat%20Purnima%20Vrat.png"
},
"mahesh_navami": {
"data": "2023-05-29",
"image": "https://astroapi-6.divineapi.com/public/assets/vedic/festivals/images/main/Mahesh%20Navami.png"
}
}
}Code Integration Examples
Below are implementation examples for cURL, NodeJS, JavaScript (jQuery AJAX), and Python.
cURL Example
curl --location 'https://astroapi-3.divineapi.com/indian-api/v2/jyeshtha-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"'
NodeJS Example
var request = require('request');
var options = {
'method': 'POST',
'url': 'https://astroapi-3.divineapi.com/indian-api/v2/jyeshtha-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);
});
JavaScript (jQuery AJAX) Example
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/v2/jyeshtha-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);
});
Python Example
import requests
url = "https://astroapi-3.divineapi.com/indian-api/v2/jyeshtha-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)