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 Ashwin Festivals API

Embrace the festive fervor of the month of Ashwin (Ashvina) with the Find Ashwin Festivals API. This endpoint returns a detailed list of important festivals, vrats, pitru-related observances, Navaratri schedule, and Vijayadashami timings that occur in the Ashwin month as per the Hindu Panchang.


Step-by-Step Find Ashwin Festivals API Postman Testing Integration

Refer to the official support article for testing this API using Postman:

https://support.divineapi.com/indian-astrology-apis/testing-festival-api-find-ashwin-festivals-api-using-postman


API Endpoint

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

This endpoint returns the list of all Ashwin (Ashvina) month festivals for the given year and location.


Headers

NameTypeDescription
Authorization*StringYour API Access Token. Example: Bearer {token}

Request Body

NameTypeRequiredDescription
api_keyStringYesYour API key.
yearIntegerYesYear for which festival data is to be fetched. Example: 2023.
placeStringNoName of the place. Example: New Delhi.
latFloatYesLatitude of the place. Example: 28.6139.
lonFloatYesLongitude of the place. Example: 77.2090.
tzoneFloatYesTimezone offset of the place. Example: 5.5. For reference, see the DivineAPI timezone guide.

200: OK Fetched Ashwina festivals successfully

{
    "success": 1,
    "data": {
        "year": "2023",
        "pitru_paksha": [
            {
                "date": "2023-09-29",
                "tithi": {
                    "tithi": "Purnima",
                    "paksha": "Shukla",
                    "start_time": "2023-09-28 18:50:00",
                    "end_time": "2023-09-29 15:27:00"
                },
                "kutup": {
                    "start_time": "2023-09-29 11:49:17",
                    "end_time": "2023-09-29 12:37:17"
                },
                "rohina": {
                    "start_time": "2023-09-29 12:37:17",
                    "end_time": "2023-09-29 13:25:17"
                },
                "aparahna": {
                    "start_time": "2023-09-29 13:25:17",
                    "end_time": "2023-09-29 15:47:17"
                },
                "image": "https://astroapi-6.divineapi.com/public/assets/vedic/festivals/images/main/Pitru%20Paksha.png"
            },
            {
                "date": "2023-09-29",
                "tithi": {
                    "tithi": "Pratipada",
                    "paksha": "Krishna",
                    "start_time": "2023-09-29 15:28:00",
                    "end_time": "2023-09-30 12:21:00"
                },
                "kutup": {
                    "start_time": "2023-09-29 11:49:17",
                    "end_time": "2023-09-29 12:37:17"
                },
                "rohina": {
                    "start_time": "2023-09-29 12:37:17",
                    "end_time": "2023-09-29 13:25:17"
                },
                "aparahna": {
                    "start_time": "2023-09-29 13:25:17",
                    "end_time": "2023-09-29 15:47:17"
                },
                "image": "https://astroapi-6.divineapi.com/public/assets/vedic/festivals/images/main/Pitru%20Paksha.png"
            },
            {
                "date": "2023-09-30",
                "tithi": {
                    "tithi": "Dwitiya",
                    "paksha": "Krishna",
                    "start_time": "2023-09-30 12:22:00",
                    "end_time": "2023-10-01 09:42:00"
                },
                "kutup": {
                    "start_time": "2023-09-30 11:49:48",
                    "end_time": "2023-09-30 12:37:48"
                },
                "rohina": {
                    "start_time": "2023-09-30 12:37:48",
                    "end_time": "2023-09-30 13:25:48"
                },
                "aparahna": {
                    "start_time": "2023-09-30 13:25:48",
                    "end_time": "2023-09-30 15:45:48"
                },
                "image": "https://astroapi-6.divineapi.com/public/assets/vedic/festivals/images/main/Pitru%20Paksha.png"
            },
            {
                "date": "2023-10-01",
                "tithi": {
                    "tithi": "Tritiya",
                    "paksha": "Krishna",
                    "start_time": "2023-10-01 09:43:00",
                    "end_time": "2023-10-02 07:36:00"
                },
                "kutup": {
                    "start_time": "2023-10-01 11:50:19",
                    "end_time": "2023-10-01 12:38:19"
                },
                "rohina": {
                    "start_time": "2023-10-01 12:38:19",
                    "end_time": "2023-10-01 13:26:19"
                },
                "aparahna": {
                    "start_time": "2023-10-01 13:26:19",
                    "end_time": "2023-10-01 15:45:19"
                },
                "image": "https://astroapi-6.divineapi.com/public/assets/vedic/festivals/images/main/Pitru%20Paksha.png"
            },
            {
                "date": "2023-10-02",
                "tithi": {
                    "tithi": "Chaturthi",
                    "paksha": "Krishna",
                    "start_time": "2023-10-02 07:37:00",
                    "end_time": "2023-10-03 06:12:00"
                },
                "kutup": {
                    "start_time": "2023-10-02 11:43:50",
                    "end_time": "2023-10-02 12:30:50"
                },
                "rohina": {
                    "start_time": "2023-10-02 12:30:50",
                    "end_time": "2023-10-02 13:17:50"
                },
                "aparahna": {
                    "start_time": "2023-10-02 13:17:50",
                    "end_time": "2023-10-02 15:44:50"
                },
                "image": "https://astroapi-6.divineapi.com/public/assets/vedic/festivals/images/main/Pitru%20Paksha.png"
            },
            {
                "date": "2023-10-03",
                "tithi": {
                    "tithi": "Panchmi",
                    "paksha": "Krishna",
                    "start_time": "2023-10-03 06:13:00",
                    "end_time": "2023-10-04 05:33:00"
                },
                "kutup": {
                    "start_time": "2023-10-03 11:44:22",
                    "end_time": "2023-10-03 12:31:22"
                },
                "rohina": {
                    "start_time": "2023-10-03 12:31:22",
                    "end_time": "2023-10-03 13:18:22"
                },
                "aparahna": {
                    "start_time": "2023-10-03 13:18:22",
                    "end_time": "2023-10-03 15:43:22"
                },
                "image": "https://astroapi-6.divineapi.com/public/assets/vedic/festivals/images/main/Pitru%20Paksha.png"
            },
            {
                "date": "2023-10-04",
                "tithi": {
                    "tithi": "Shasthi",
                    "paksha": "Krishna",
                    "start_time": "2023-10-04 05:34:00",
                    "end_time": "2023-10-05 05:41:00"
                },
                "kutup": {
                    "start_time": "2023-10-04 11:44:54",
                    "end_time": "2023-10-04 12:31:54"
                },
                "rohina": {
                    "start_time": "2023-10-04 12:31:54",
                    "end_time": "2023-10-04 13:18:54"
                },
                "aparahna": {
                    "start_time": "2023-10-04 13:18:54",
                    "end_time": "2023-10-04 15:42:54"
                },
                "image": "https://astroapi-6.divineapi.com/public/assets/vedic/festivals/images/main/Pitru%20Paksha.png"
            },
            {
                "date": "2023-10-05",
                "tithi": {
                    "tithi": "Saptami",
                    "paksha": "Krishna",
                    "start_time": "2023-10-05 05:42:00",
                    "end_time": "2023-10-06 06:35:00"
                },
                "kutup": {
                    "start_time": "2023-10-05 11:45:26",
                    "end_time": "2023-10-05 12:32:26"
                },
                "rohina": {
                    "start_time": "2023-10-05 12:32:26",
                    "end_time": "2023-10-05 13:19:26"
                },
                "aparahna": {
                    "start_time": "2023-10-05 13:19:26",
                    "end_time": "2023-10-05 15:42:26"
                },
                "image": "https://astroapi-6.divineapi.com/public/assets/vedic/festivals/images/main/Pitru%20Paksha.png"
            },
            {
                "date": "2023-10-06",
                "tithi": {
                    "tithi": "Ashtami",
                    "paksha": "Krishna",
                    "start_time": "2023-10-06 06:36:00",
                    "end_time": "2023-10-07 08:08:00"
                },
                "kutup": {
                    "start_time": "2023-10-06 11:45:59",
                    "end_time": "2023-10-06 12:32:59"
                },
                "rohina": {
                    "start_time": "2023-10-06 12:32:59",
                    "end_time": "2023-10-06 13:19:59"
                },
                "aparahna": {
                    "start_time": "2023-10-06 13:19:59",
                    "end_time": "2023-10-06 15:40:59"
                },
                "image": "https://astroapi-6.divineapi.com/public/assets/vedic/festivals/images/main/Pitru%20Paksha.png"
            },
            {
                "date": "2023-10-07",
                "tithi": {
                    "tithi": "Navami",
                    "paksha": "Krishna",
                    "start_time": "2023-10-07 08:09:00",
                    "end_time": "2023-10-08 10:13:00"
                },
                "kutup": {
                    "start_time": "2023-10-07 11:46:32",
                    "end_time": "2023-10-07 12:33:32"
                },
                "rohina": {
                    "start_time": "2023-10-07 12:33:32",
                    "end_time": "2023-10-07 13:20:32"
                },
                "aparahna": {
                    "start_time": "2023-10-07 13:20:32",
                    "end_time": "2023-10-07 15:40:32"
                },
                "image": "https://astroapi-6.divineapi.com/public/assets/vedic/festivals/images/main/Pitru%20Paksha.png"
            },
            {
                "date": "2023-10-08",
                "tithi": {
                    "tithi": "Dashami",
                    "paksha": "Krishna",
                    "start_time": "2023-10-08 10:14:00",
                    "end_time": "2023-10-09 12:37:00"
                },
                "kutup": {
                    "start_time": "2023-10-08 11:47:05",
                    "end_time": "2023-10-08 12:34:05"
                },
                "rohina": {
                    "start_time": "2023-10-08 12:34:05",
                    "end_time": "2023-10-08 13:21:05"
                },
                "aparahna": {
                    "start_time": "2023-10-08 13:21:05",
                    "end_time": "2023-10-08 15:40:05"
                },
                "image": "https://astroapi-6.divineapi.com/public/assets/vedic/festivals/images/main/Pitru%20Paksha.png"
            },
            {
                "date": "2023-10-09",
                "tithi": {
                    "tithi": "Ekadashi",
                    "paksha": "Krishna",
                    "start_time": "2023-10-09 12:38:00",
                    "end_time": "2023-10-10 15:09:00"
                },
                "kutup": {
                    "start_time": "2023-10-09 11:47:39",
                    "end_time": "2023-10-09 12:34:39"
                },
                "rohina": {
                    "start_time": "2023-10-09 12:34:39",
                    "end_time": "2023-10-09 13:21:39"
                },
                "aparahna": {
                    "start_time": "2023-10-09 13:21:39",
                    "end_time": "2023-10-09 15:38:39"
                },
                "image": "https://astroapi-6.divineapi.com/public/assets/vedic/festivals/images/main/Pitru%20Paksha.png"
            },
            {
                "date": "2023-10-10",
                "tithi": {
                    "tithi": "Dwadashi",
                    "paksha": "Krishna",
                    "start_time": "2023-10-10 15:10:00",
                    "end_time": "2023-10-11 17:37:00"
                },
                "kutup": {
                    "start_time": "2023-10-10 11:48:13",
                    "end_time": "2023-10-10 12:35:13"
                },
                "rohina": {
                    "start_time": "2023-10-10 12:35:13",
                    "end_time": "2023-10-10 13:22:13"
                },
                "aparahna": {
                    "start_time": "2023-10-10 13:22:13",
                    "end_time": "2023-10-10 15:38:13"
                },
                "image": "https://astroapi-6.divineapi.com/public/assets/vedic/festivals/images/main/Pitru%20Paksha.png"
            },
            {
                "date": "2023-10-12",
                "tithi": {
                    "tithi": "Tryodashi",
                    "paksha": "Krishna",
                    "start_time": "2023-10-11 17:38:00",
                    "end_time": "2023-10-12 19:54:00"
                },
                "kutup": {
                    "start_time": "2023-10-12 11:42:22",
                    "end_time": "2023-10-12 12:28:22"
                },
                "rohina": {
                    "start_time": "2023-10-12 12:28:22",
                    "end_time": "2023-10-12 13:14:22"
                },
                "aparahna": {
                    "start_time": "2023-10-12 13:14:22",
                    "end_time": "2023-10-12 15:36:22"
                },
                "image": "https://astroapi-6.divineapi.com/public/assets/vedic/festivals/images/main/Pitru%20Paksha.png"
            },
            {
                "date": "2023-10-13",
                "tithi": {
                    "tithi": "Chaturdashi",
                    "paksha": "Krishna",
                    "start_time": "2023-10-12 19:55:00",
                    "end_time": "2023-10-13 21:51:00"
                },
                "kutup": {
                    "start_time": "2023-10-13 11:42:57",
                    "end_time": "2023-10-13 12:28:57"
                },
                "rohina": {
                    "start_time": "2023-10-13 12:28:57",
                    "end_time": "2023-10-13 13:14:57"
                },
                "aparahna": {
                    "start_time": "2023-10-13 13:14:57",
                    "end_time": "2023-10-13 15:35:57"
                },
                "image": "https://astroapi-6.divineapi.com/public/assets/vedic/festivals/images/main/Pitru%20Paksha.png"
            },
            {
                "date": "2023-10-14",
                "tithi": {
                    "tithi": "Amavasya",
                    "paksha": "Krishna",
                    "start_time": "2023-10-13 21:52:00",
                    "end_time": "2023-10-14 23:25:00"
                },
                "kutup": {
                    "start_time": "2023-10-14 11:43:33",
                    "end_time": "2023-10-14 12:29:33"
                },
                "rohina": {
                    "start_time": "2023-10-14 12:29:33",
                    "end_time": "2023-10-14 13:15:33"
                },
                "aparahna": {
                    "start_time": "2023-10-14 13:15:33",
                    "end_time": "2023-10-14 15:35:33"
                },
                "image": "https://astroapi-6.divineapi.com/public/assets/vedic/festivals/images/main/Pitru%20Paksha.png"
            }
        ],
        "indira_ekadashi": {
            "smartas": {
                "date": "2023-10-10",
                "parana": {
                    "start_time": "2023-10-11 06:19:47",
                    "end_time": "2023-10-11 08:37:47"
                },
                "image": "https://astroapi-6.divineapi.com/public/assets/vedic/festivals/images/main/Indira%20Ekadashi.png"
            },
            "vaishnavas": {
                "date": "2023-10-10",
                "parana": {
                    "start_time": "2023-10-11 06:19:47",
                    "end_time": "2023-10-11 08:37:47"
                },
                "image": "https://astroapi-6.divineapi.com/public/assets/vedic/festivals/images/main/Indira%20Ekadashi.png"
            }
        },
        "pitru_amavasya": {
            "date": "2023-10-14",
            "tithi": {
                "tithi": "Amavasya",
                "paksha": "Krishna",
                "start_time": "2023-10-13 21:52:00",
                "end_time": "2023-10-14 23:25:00"
            },
            "kutup": {
                "start_time": "2023-10-14 11:43:33",
                "end_time": "2023-10-14 12:29:33"
            },
            "rohina": {
                "start_time": "2023-10-14 12:29:33",
                "end_time": "2023-10-14 13:15:33"
            },
            "aparahna": {
                "start_time": "2023-10-14 13:15:33",
                "end_time": "2023-10-14 15:35:33"
            },
            "image": "https://astroapi-6.divineapi.com/public/assets/vedic/festivals/images/main/Pitru%20Amavasya.png"
        },
        "papankusha_ekadashi": {
            "smartas": {
                "date": "2023-10-25",
                "parana": {
                    "start_time": "2023-10-26 06:29:09",
                    "end_time": "2023-10-26 08:44:09"
                },
                "image": "https://astroapi-6.divineapi.com/public/assets/vedic/festivals/images/main/Papankusha%20Ekadashi.png"
            },
            "vaishnavas": {
                "date": "2023-10-25",
                "parana": {
                    "start_time": "2023-10-26 06:29:09",
                    "end_time": "2023-10-26 08:44:09"
                },
                "image": "https://astroapi-6.divineapi.com/public/assets/vedic/festivals/images/main/Papankusha%20Ekadashi.png"
            }
        },
        "jivit_putrika_vrat": {
            "date": "2023-10-07",
            "image": "https://astroapi-6.divineapi.com/public/assets/vedic/festivals/images/main/Jivit%20Putrika%20Vrat.png"
        },
        "sharad_purnima": {
            "date": "2023-10-28",
            "moonrise": "2023-10-28 17:20:40",
            "image": "https://astroapi-6.divineapi.com/public/assets/vedic/festivals/images/main/Sharad%20Purnima.png"
        },
        "upang_lalita_vrat": {
            "date": "2023-10-19",
            "image": "https://astroapi-6.divineapi.com/public/assets/vedic/festivals/images/main/Upang%20Lalita%20Vrat.png"
        },
        "kojagara_puja": {
            "date": "2023-10-28",
            "nishita_muhurta": {
                "start_time": "2023-10-28 23:39:44",
                "end_time": "2023-10-29 00:31:08"
            },
            "image": "https://astroapi-6.divineapi.com/public/assets/vedic/festivals/images/main/Kojagara%20Puja.png"
        },
        "shardiya_navaratri": {
            "pratipada": {
                "date": "2023-10-15",
                "puja": "Shailputri Puja",
                "ghatasthapana_muhurat": [
                    [
                        "2023-10-15 06:22:09",
                        "2023-10-15 10:12:09"
                    ]
                ],
                "ghatasthapana_abhijit_muhurat": {
                    "start_time": "2023-10-15 11:44:09",
                    "end_time": "2023-10-15 12:30:09"
                },
                "image": "https://astroapi-6.divineapi.com/public/assets/vedic/festivals/images/main/Ghatasthapana%2C%20Shailputri%20Puja.png"
            },
            "dwitiya": {
                "date": "2023-10-16",
                "puja": "Brahmacharini Puja",
                "image": "https://astroapi-6.divineapi.com/public/assets/vedic/festivals/images/main/Dwitiya%2C%20Brahmacharini%20Puja.png"
            },
            "tritiya": {
                "date": "2023-10-17",
                "puja": "Chandraghanta Puja",
                "image": "https://astroapi-6.divineapi.com/public/assets/vedic/festivals/images/main/Tritiya%2C%20Chandraghanta%20Puja.png"
            },
            "chaturthi": {
                "date": "2023-10-18",
                "puja": "Kushmanda Puja",
                "image": "https://astroapi-6.divineapi.com/public/assets/vedic/festivals/images/main/Chaturthi%2C%20Kushmanda%20Puja.png"
            },
            "panchami": {
                "date": "2023-10-19",
                "puja": "Skandamata Puja",
                "image": "https://astroapi-6.divineapi.com/public/assets/vedic/festivals/images/main/Panchami%2C%20Skandamata%20Puja.png"
            },
            "shashthi": {
                "date": "2023-10-20",
                "puja": "Katyayani Puja",
                "image": "https://astroapi-6.divineapi.com/public/assets/vedic/festivals/images/main/Shashthi%2C%20Katyayani%20Puja.png"
            },
            "saptami": {
                "date": "2023-10-21",
                "puja": "Kalaratri Puja",
                "image": "https://astroapi-6.divineapi.com/public/assets/vedic/festivals/images/main/Saptami%2C%20Kalaratri%20Puja.png"
            },
            "ashtami": {
                "date": "2023-10-22",
                "puja": "Mahagauri Puja",
                "image": "https://astroapi-6.divineapi.com/public/assets/vedic/festivals/images/main/Ashtami%2C%20Mahagauri%20Puja.png"
            },
            "navami": {
                "date": "2023-10-23",
                "puja": "Sandhi Puja",
                "image": "https://astroapi-6.divineapi.com/public/assets/vedic/festivals/images/main/Navami%2C%20Sandhi%20Puja.png"
            }
        },
        "vijayadashami": {
            "date": "2023-10-24",
            "vijay_muhurta": {
                "start_time": "2023-10-24 13:58:29",
                "end_time": "2023-10-24 14:43:33"
            },
            "aparahna_puja_time": {
                "start_time": "2023-10-24 13:13:49",
                "end_time": "2023-10-24 15:28:49"
            },
            "image": "https://astroapi-6.divineapi.com/public/assets/vedic/festivals/images/main/Vijayadashami.png"
        },
        "kanya_pujan": {
            "date": "2023-10-23",
            "image": "https://astroapi-6.divineapi.com/public/assets/vedic/festivals/images/main/Kanya%20Pujan.png"
        }
    }
}

What the API Covers

Full Pitru Paksha schedule for Ashwin (Shraddh dates, kutup, rohina, aparahna).

Indira Ekadashi (Smarta and Vaishnava) with parana.

Pitru Amavasya / Sarva Pitru Amavasya timings.

Papankusha Ekadashi with parana.

Shardiya Navaratri day-wise puja details and images.

Vijayadashami with Vijay Muhurta and Aparahna timing.

Supporting vrats like Jivit Putrika Vrat, Upang Lalita Vrat, Kojagara Puja, Sharad Purnima.


Example Code Implementations

Below are example implementations in various programming environments.


cURL 

curl --location 'https://astroapi-3.divineapi.com/indian-api/v2/ashvina-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

var request = require('request');
var options = {
  'method': 'POST',
  'url': 'https://astroapi-3.divineapi.com/indian-api/v2/ashvina-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 

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/ashvina-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 

import requests

url = "https://astroapi-3.divineapi.com/indian-api/v2/ashvina-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)


Notes

Always send both Authorization header and api_key in the body.

Location parameters (place, lat, lon, tzone) ensure accurate local sunrise-based muhurta calculations, especially for Pitru Paksha, Kojagari Puja, and Navaratri.

Image URLs returned by the API can be used directly in your UI to render festival cards or detail pages.

This API is ideal for Panchang dashboards, festival calendars, astrology apps, and devotional mobile apps.

Example Code
curl -X POST "https://astroapi-3.divineapi.com/indian-api/v2/ashvina-festivals" \
  -H "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"'
const FormData = require('form-data');
const axios = require('axios');

const 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');

const response = await axios.post('https://astroapi-3.divineapi.com/indian-api/v2/ashvina-festivals', form, {
  headers: {
    ...form.getHeaders(),
    'Authorization': 'Bearer {Your Auth Token}',
  }
});

console.log(response.data);
import requests

url = "https://astroapi-3.divineapi.com/indian-api/v2/ashvina-festivals"
headers = {
    "Authorization": "Bearer {Your Auth Token}",
}
payload = {
    "api_key": "{Your API Key}",
    "year": "2023",
    "place": "New Delhi",
    "lat": "28.6139",
    "lon": "77.2090",
    "tzone": "5.5",
}

response = requests.post(url, headers=headers, data=payload)

print(response.json())
const formData = new FormData();
formData.append('api_key', '{Your API Key}');
formData.append('year', '2023');
formData.append('place', 'New Delhi');
formData.append('lat', '28.6139');
formData.append('lon', '77.2090');
formData.append('tzone', '5.5');

const response = await fetch('https://astroapi-3.divineapi.com/indian-api/v2/ashvina-festivals', {
  method: 'POST',
  headers: {
      'Authorization': "Bearer {Your Auth Token}",
    },
  body: formData,
});

const data = await response.json();
console.log(data);
<?php

use GuzzleHttp\Client;

$client = new Client();

$response = $client->request('POST', 'https://astroapi-3.divineapi.com/indian-api/v2/ashvina-festivals', [
    'headers' => [
        'Authorization' => 'Bearer {Your Auth Token}',
    ],
    'multipart' => [
        ['name' => 'api_key', 'contents' => '{Your API Key}'],
        ['name' => 'year', 'contents' => '2023'],
        ['name' => 'place', 'contents' => 'New Delhi'],
        ['name' => 'lat', 'contents' => '28.6139'],
        ['name' => 'lon', 'contents' => '77.2090'],
        ['name' => 'tzone', 'contents' => '5.5'],
    ],
]);

echo $response->getBody();
package main

import (
    "bytes"
    "fmt"
    "mime/multipart"
    "net/http"
    "io"
)

func main() {
    body := &bytes.Buffer{}
    writer := multipart.NewWriter(body)
    writer.WriteField("api_key", "{Your API Key}")
    writer.WriteField("year", "2023")
    writer.WriteField("place", "New Delhi")
    writer.WriteField("lat", "28.6139")
    writer.WriteField("lon", "77.2090")
    writer.WriteField("tzone", "5.5")
    writer.Close()

    req, _ := http.NewRequest("POST", "https://astroapi-3.divineapi.com/indian-api/v2/ashvina-festivals", body)
    req.Header.Set("Content-Type", writer.FormDataContentType())
    req.Header.Set("Authorization", "Bearer {Your Auth Token}")

    client := &http.Client{}
    resp, _ := client.Do(req)
    defer resp.Body.Close()

    body2, _ := io.ReadAll(resp.Body)
    fmt.Println(string(body2))
}
import okhttp3.*;
import java.io.IOException;

public class Main {
    public static void main(String[] args) throws IOException {
        OkHttpClient client = new OkHttpClient();

        RequestBody body = new MultipartBody.Builder()
            .setType(MultipartBody.FORM)
            .addFormDataPart("api_key", "{Your API Key}")
            .addFormDataPart("year", "2023")
            .addFormDataPart("place", "New Delhi")
            .addFormDataPart("lat", "28.6139")
            .addFormDataPart("lon", "77.2090")
            .addFormDataPart("tzone", "5.5")
            .build();

        Request request = new Request.Builder()
            .url("https://astroapi-3.divineapi.com/indian-api/v2/ashvina-festivals")
            .post(body)
            .addHeader("Authorization", "Bearer {Your Auth Token}")
            .build();

        Response response = client.newCall(request).execute();
        System.out.println(response.body().string());
    }
}
import Foundation

let url = URL(string: "https://astroapi-3.divineapi.com/indian-api/v2/ashvina-festivals")!
var request = URLRequest(url: url)
request.httpMethod = "POST"
request.setValue("Bearer {Your Auth Token}", forHTTPHeaderField: "Authorization")

let boundary = "Boundary-\(UUID().uuidString)"
request.setValue("multipart/form-data; boundary=\(boundary)", forHTTPHeaderField: "Content-Type")

var bodyData = Data()
bodyData.append("--\(boundary)\r\n".data(using: .utf8)!)
bodyData.append("Content-Disposition: form-data; name=\"api_key\"\r\n\r\n".data(using: .utf8)!)
bodyData.append("{Your API Key}\r\n".data(using: .utf8)!)
bodyData.append("--\(boundary)\r\n".data(using: .utf8)!)
bodyData.append("Content-Disposition: form-data; name=\"year\"\r\n\r\n".data(using: .utf8)!)
bodyData.append("2023\r\n".data(using: .utf8)!)
bodyData.append("--\(boundary)\r\n".data(using: .utf8)!)
bodyData.append("Content-Disposition: form-data; name=\"place\"\r\n\r\n".data(using: .utf8)!)
bodyData.append("New Delhi\r\n".data(using: .utf8)!)
bodyData.append("--\(boundary)\r\n".data(using: .utf8)!)
bodyData.append("Content-Disposition: form-data; name=\"lat\"\r\n\r\n".data(using: .utf8)!)
bodyData.append("28.6139\r\n".data(using: .utf8)!)
bodyData.append("--\(boundary)\r\n".data(using: .utf8)!)
bodyData.append("Content-Disposition: form-data; name=\"lon\"\r\n\r\n".data(using: .utf8)!)
bodyData.append("77.2090\r\n".data(using: .utf8)!)
bodyData.append("--\(boundary)\r\n".data(using: .utf8)!)
bodyData.append("Content-Disposition: form-data; name=\"tzone\"\r\n\r\n".data(using: .utf8)!)
bodyData.append("5.5\r\n".data(using: .utf8)!)
bodyData.append("--\(boundary)--\r\n".data(using: .utf8)!)
request.httpBody = bodyData

let task = URLSession.shared.dataTask(with: request) { data, response, error in
    if let data = data {
        print(String(data: data, encoding: .utf8) ?? "")
    }
}
task.resume()
import okhttp3.*

fun main() {
    val client = OkHttpClient()

    val body = MultipartBody.Builder()
        .setType(MultipartBody.FORM)
        .addFormDataPart("api_key", "{Your API Key}")
        .addFormDataPart("year", "2023")
        .addFormDataPart("place", "New Delhi")
        .addFormDataPart("lat", "28.6139")
        .addFormDataPart("lon", "77.2090")
        .addFormDataPart("tzone", "5.5")
        .build()

    val request = Request.Builder()
        .url("https://astroapi-3.divineapi.com/indian-api/v2/ashvina-festivals")
        .post(body!!)
        .addHeader("Authorization", "Bearer {Your Auth Token}")
        .build()

    client.newCall(request).execute().use { response ->
        println(response.body?.string())
    }
}
using System;
using System.Net.Http;
using System.Threading.Tasks;

class Program {
    static async Task Main() {
        using var client = new HttpClient();
        client.DefaultRequestHeaders.Add("Authorization", "Bearer {Your Auth Token}");

        var content = new MultipartFormDataContent();
        content.Add(new StringContent("{Your API Key}"), "api_key");
        content.Add(new StringContent("2023"), "year");
        content.Add(new StringContent("New Delhi"), "place");
        content.Add(new StringContent("28.6139"), "lat");
        content.Add(new StringContent("77.2090"), "lon");
        content.Add(new StringContent("5.5"), "tzone");

        var response = await client.PostAsync("https://astroapi-3.divineapi.com/indian-api/v2/ashvina-festivals", content);
        var result = await response.Content.ReadAsStringAsync();
        Console.WriteLine(result);
    }
}