search

Copy page

Copy page as Markdown for LLMs

View as Markdown

View this page as plain text


Open in ChatGPT

Ask ChatGPT about this page

Open in Claude

Ask Claude about this page

Find Kartik Festivals

Engage in the enchantment of Kartik with the “Kartik Festivals” API, spotlighting the astrological and cultural vibrancy of events that grace the Indian calendar within the Panchang spectrum.


Step-by-Step Postman Integration

Find Kartik Festivals API Postman Testing Guide

POST https://astroapi-3.divineapi.com/indian-api/v2/kartika-festivals

Returns all festival details from Kartika in the response.


Headers

NameTypeDescription
Authorization *StringYour API Access Token e.g., Bearer {token}

Request Body

NameTypeDescription
api_key *StringYour API key
year *IntegerYear, e.g., 2023
placeStringPlace, e.g., New Delhi
lat *FloatLatitude, e.g., 28.6139
lon *FloatLongitude, e.g., 77.2090
tzone *FloatTimezone, e.g., 5.5 — see: Timezone List

Example Response — 200 OK

{
    "success": 1,
    "data": {
        "year": "2023",
        "karwa_chauth": {
            "date": "2023-11-01",
            "vrat_timings": {
                "start_time": "2023-11-01 06:33:19",
                "end_time": "2023-11-01 20:15:37"
            },
            "puja_timings": {
                "start_time": "2023-11-01 17:36:41",
                "end_time": "2023-11-01 18:54:23"
            },
            "moonrise": "2023-11-01 20:15:37",
            "image": "https://astroapi-6.divineapi.com/public/assets/vedic/festivals/images/main/Karwa%20Chauth.png"
        },
        "ahoi_ashtami": {
            "date": "2023-11-05",
            "puja_timings": {
                "start_time": "2023-11-05 17:33:44",
                "end_time": "2023-11-05 18:52:02"
            },
            "sighting_stars": "2023-11-05 17:59:50",
            "moonrise": "2023-11-06 00:03:11",
            "image": "https://astroapi-6.divineapi.com/public/assets/vedic/festivals/images/main/Ahoi%20Ashtami.png"
        },
        "rama_ekadashi": {
            "smartas": {
                "date": "2023-11-09",
                "parana": {
                    "start_time": "2023-11-10 06:40:01",
                    "end_time": "2023-11-10 08:49:01"
                },
                "image": "https://astroapi-6.divineapi.com/public/assets/vedic/festivals/images/main/Rama%20Ekadashi.png"
            },
            "vaishnavas": {
                "date": "2023-11-09",
                "parana": {
                    "start_time": "2023-11-10 06:40:01",
                    "end_time": "2023-11-10 08:49:01"
                },
                "image": "https://astroapi-6.divineapi.com/public/assets/vedic/festivals/images/main/Rama%20Ekadashi.png"
            }
        },
        "dhanteras": {
            "date": "2023-11-10",
            "puja_muhurat": {
                "start_time": "2023-11-10 17:49:00",
                "end_time": "2023-11-10 19:43:00"
            },
            "image": "https://astroapi-6.divineapi.com/public/assets/vedic/festivals/images/main/Dhanteras.png"
        },
        "narak_chaturdashi": {
            "date": "2023-11-12",
            "abhyang_snan": {
                "start_time": "2023-11-12 05:29:25",
                "end_time": "2023-11-12 06:41:34"
            },
            "moonrise": "2023-11-12 05:29:25",
            "image": "https://astroapi-6.divineapi.com/public/assets/vedic/festivals/images/main/Narak%20Chaturdashi.png"
        },
        "deepawali": {
            "date": "2023-11-12",
            "puja_muhurat": {
                "start_time": "2023-11-12 17:41:00",
                "end_time": "2023-11-12 19:35:00"
            },
            "nishita_muhurat": {
                "start_time": "2023-11-12 23:40:27",
                "end_time": "2023-11-13 00:33:27"
            },
            "auspicious_choghadiya": [
                {
                    "choghadiya": "Char",
                    "start_time": "2023-11-12 08:02:34",
                    "end_time": "2023-11-12 09:23:34"
                },
                {
                    "choghadiya": "Labh",
                    "start_time": "2023-11-12 09:23:34",
                    "end_time": "2023-11-12 10:44:34"
                },
                {
                    "choghadiya": "Amrit",
                    "start_time": "2023-11-12 10:44:34",
                    "end_time": "2023-11-12 12:05:34"
                },
                {
                    "choghadiya": "Shubh",
                    "start_time": "2023-11-12 13:26:34",
                    "end_time": "2023-11-12 14:47:34"
                }
            ],
            "image": "https://astroapi-6.divineapi.com/public/assets/vedic/festivals/images/main/Deepawali.png"
        },
        "goverdhan_puja": {
            "date": "2023-11-13",
            "pratahkal_muhurat": {
                "start_time": "2023-11-13 06:42:21",
                "end_time": "2023-11-13 08:51:21"
            },
            "sayankal_muhurat": {
                "start_time": "2023-11-13 15:19:56",
                "end_time": "2023-11-13 17:28:56"
            },
            "image": "https://astroapi-6.divineapi.com/public/assets/vedic/festivals/images/main/Goverdhan%20Puja.png"
        },
        "bhaiya_dooj": {
            "date": "2023-11-15",
            "aparahna": {
                "start_time": "2023-11-15 13:09:55",
                "end_time": "2023-11-15 15:18:55"
            },
            "image": "https://astroapi-6.divineapi.com/public/assets/vedic/festivals/images/main/Bhaiya%20Dooj.png"
        },
        "devutthani_ekadashi": {
            "smartas": {
                "date": "2023-11-23",
                "parana": {
                    "start_time": "2023-11-24 06:51:06",
                    "end_time": "2023-11-24 08:57:06"
                },
                "image": "https://astroapi-6.divineapi.com/public/assets/vedic/festivals/images/main/Devutthani%20Ekadashi.png"
            },
            "vaishnavas": {
                "date": "2023-11-23",
                "parana": {
                    "start_time": "2023-11-24 06:51:06",
                    "end_time": "2023-11-24 08:57:06"
                },
                "image": "https://astroapi-6.divineapi.com/public/assets/vedic/festivals/images/main/Devutthani%20Ekadashi.png"
            }
        },
        "chhath_puja": {
            "nahay_khay": {
                "date": "2023-11-17",
                "sunrise": "2023-11-17 06:45:30",
                "sunset": "2023-11-17 17:27:06",
                "image": "https://astroapi-6.divineapi.com/public/assets/vedic/festivals/images/main/Nahay%20Khay%20-%20Chhath%20Puja.png"
            },
            "lohanda_and_kharna": {
                "date": "2023-11-18",
                "sunrise": "2023-11-18 06:46:18",
                "sunset": "2023-11-18 17:26:43",
                "image": "https://astroapi-6.divineapi.com/public/assets/vedic/festivals/images/main/Lohanda%20%26%20Kharna%20-%20Chhath%20Puja.png"
            },
            "sandhya_arghya": {
                "date": "2023-11-19",
                "sunrise": "2023-11-19 06:47:06",
                "sunset": "2023-11-19 17:26:21",
                "image": "https://astroapi-6.divineapi.com/public/assets/vedic/festivals/images/main/Sandhya%20Arghya%20-%20Chhath%20Puja.png"
            },
            "usha_arghya": {
                "date": "2023-11-20",
                "sunrise": "2023-11-20 06:47:54",
                "sunset": "2023-11-20 17:26:01",
                "image": "https://astroapi-6.divineapi.com/public/assets/vedic/festivals/images/main/Usha%20Arghya%20-%20Chhath%20Puja.png"
            }
        },
        "gopashtami": {
            "date": "2023-11-20",
            "image": "https://astroapi-6.divineapi.com/public/assets/vedic/festivals/images/main/Gopashtami.png"
        },
        "akshaya_navami": {
            "date": "2023-11-21",
            "purvahna_time": {
                "start_time": "2023-11-21 06:48:42",
                "end_time": "2023-11-21 12:07:12"
            },
            "image": "https://astroapi-6.divineapi.com/public/assets/vedic/festivals/images/main/Akshaya%20Navami.png"
        },
        "tulsi_vivah": {
            "date": "2023-11-24",
            "image": "https://astroapi-6.divineapi.com/public/assets/vedic/festivals/images/main/Tulsi%20Vivah.png"
        }
    }
}

Code Integration Examples

Below are example calls using cURL, NodeJS, JavaScript (jQuery AJAX), and Python.


cURL Example

curl --location 'https://astroapi-3.divineapi.com/indian-api/v2/kartika-festivals' \
--header 'Authorization: Bearer your API Access 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/kartika-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/kartika-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/kartika-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)