Testing Panchang API - Find Ashwin Festivals API Using Postman

Embrace the festive fervor with our 'Ashwin Festivals' API, illuminating the cultural and astrological significance of events that grace the Indian calendar within the Panchang framework.

 Last updated : 12 Dec, 2024
 Guide

1. Securing Your API Key

To start, you need an API key. Head over to https://divineapi.com/ and register to initiate your 7-day trial.

  • Select the APIs you are interested in; you can change these selections at any time. You can add or remove APIs in the future.
  • Click on checkout, fill out the sign-up form, and enter your payment details on the next page.

Your trial will begin immediately. You won't be charged during the trial period, and you can cancel anytime without incurring any charges.

  • After logging in, your API key will be visible on your dashboard on the API Key page ( https://divineapi.com/api-keys)

 

2. Importing the Postman Collection

Import our Postman collection to facilitate your API testing:

  • After logging into your Postman account:
  • Open This link: https://documenter.getpostman.com/view/27195761/2sA3Qs8rfV 
  • Click “Run in Postman” and then select “Run in Web”.
  • Select your workspace and then select ‘import’.

 

3. Configuring Your API Request

Once the collection is imported:

  • Locate the "Find Ashwin Festivals" API request.
  • Ensure the method is set to POST.
  • Use this request URL: https://astroapi-3.divineapi.com/indian-api/v1/ashvina-festivals 

 

4. Setting Request Parameters

This API call necessitates only your API key. To find your API key.

  • Go to your DivineAPI dashboard > API Key page.
  • Click on “Copy” next to the API key

 Notice the difference between the key, and the Access Token.

 

Go back to Postman to set the parameters.

  • Navigate to “Authorization”, select “Bearer Token” in the Auth type, and then add the token from your Divine API profile.
  • Navigate to 'Body', select 'form_data', and then add:
    • api_key: “<Your_API_Key>” - Your unique API subscription identifier.
    • year: "2023" - The year of interest.
    • place: "New Delhi" - The name of the city.
    • lat: "28.6139" - Latitude for location-specific details.
    • lon: "77.2090" - Longitude for accurate location insights. "New
    • tzone: "5.5" - Timezone offset from UTC.
    • lan: “en” - Enter the language.
  • Please ensure that the bearer token is exactly the same as in your profile, with no changes in spacing or formatting.

 

5. Making the Request

Hit the 'Send' button to submit your request.

 

6. Deciphering the Response

The API's response will be structured as follows:

{

{
    "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:48:50",
                    "end_time": "2023-09-29 12:36:50"
                },
                "rohina": {
                    "start_time": "2023-09-29 12:36:50",
                    "end_time": "2023-09-29 13:24:50"
                },
                "aparahna": {
                    "start_time": "2023-09-29 13:24:50",
                    "end_time": "2023-09-29 15:46:50"
                }
            },
            {
                "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:48:50",
                    "end_time": "2023-09-29 12:36:50"
                },
                "rohina": {
                    "start_time": "2023-09-29 12:36:50",
                    "end_time": "2023-09-29 13:24:50"
                },
                "aparahna": {
                    "start_time": "2023-09-29 13:24:50",
                    "end_time": "2023-09-29 15:46:50"
                }
            },
            {
                "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:21",
                    "end_time": "2023-09-30 12:37:21"
                },
                "rohina": {
                    "start_time": "2023-09-30 12:37:21",
                    "end_time": "2023-09-30 13:25:21"
                },
                "aparahna": {
                    "start_time": "2023-09-30 13:25:21",
                    "end_time": "2023-09-30 15:45:21"
                }
            },
            {
                "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:49:52",
                    "end_time": "2023-10-01 12:37:52"
                },
                "rohina": {
                    "start_time": "2023-10-01 12:37:52",
                    "end_time": "2023-10-01 13:25:52"
                },
                "aparahna": {
                    "start_time": "2023-10-01 13:25:52",
                    "end_time": "2023-10-01 15:44:52"
                }
            },
            {
                "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:23",
                    "end_time": "2023-10-02 12:30:23"
                },
                "rohina": {
                    "start_time": "2023-10-02 12:30:23",
                    "end_time": "2023-10-02 13:17:23"
                },
                "aparahna": {
                    "start_time": "2023-10-02 13:17:23",
                    "end_time": "2023-10-02 15:44:23"
                }
            },
            {
                "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:43:55",
                    "end_time": "2023-10-03 12:30:55"
                },
                "rohina": {
                    "start_time": "2023-10-03 12:30:55",
                    "end_time": "2023-10-03 13:17:55"
                },
                "aparahna": {
                    "start_time": "2023-10-03 13:17:55",
                    "end_time": "2023-10-03 15:42:55"
                }
            },
            {
                "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:27",
                    "end_time": "2023-10-04 12:31:27"
                },
                "rohina": {
                    "start_time": "2023-10-04 12:31:27",
                    "end_time": "2023-10-04 13:18:27"
                },
                "aparahna": {
                    "start_time": "2023-10-04 13:18:27",
                    "end_time": "2023-10-04 15:42:27"
                }
            },
            {
                "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:44:59",
                    "end_time": "2023-10-05 12:31:59"
                },
                "rohina": {
                    "start_time": "2023-10-05 12:31:59",
                    "end_time": "2023-10-05 13:18:59"
                },
                "aparahna": {
                    "start_time": "2023-10-05 13:18:59",
                    "end_time": "2023-10-05 15:41:59"
                }
            },
            {
                "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:31",
                    "end_time": "2023-10-06 12:32:31"
                },
                "rohina": {
                    "start_time": "2023-10-06 12:32:31",
                    "end_time": "2023-10-06 13:19:31"
                },
                "aparahna": {
                    "start_time": "2023-10-06 13:19:31",
                    "end_time": "2023-10-06 15:40:31"
                }
            },
            {
                "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:04",
                    "end_time": "2023-10-07 12:33:04"
                },
                "rohina": {
                    "start_time": "2023-10-07 12:33:04",
                    "end_time": "2023-10-07 13:20:04"
                },
                "aparahna": {
                    "start_time": "2023-10-07 13:20:04",
                    "end_time": "2023-10-07 15:40:04"
                }
            },
            {
                "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:46:37",
                    "end_time": "2023-10-08 12:33:37"
                },
                "rohina": {
                    "start_time": "2023-10-08 12:33:37",
                    "end_time": "2023-10-08 13:20:37"
                },
                "aparahna": {
                    "start_time": "2023-10-08 13:20:37",
                    "end_time": "2023-10-08 15:39:37"
                }
            },
            {
                "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:11",
                    "end_time": "2023-10-09 12:34:11"
                },
                "rohina": {
                    "start_time": "2023-10-09 12:34:11",
                    "end_time": "2023-10-09 13:21:11"
                },
                "aparahna": {
                    "start_time": "2023-10-09 13:21:11",
                    "end_time": "2023-10-09 15:38:11"
                }
            },
            {
                "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:47:45",
                    "end_time": "2023-10-10 12:34:45"
                },
                "rohina": {
                    "start_time": "2023-10-10 12:34:45",
                    "end_time": "2023-10-10 13:21:45"
                },
                "aparahna": {
                    "start_time": "2023-10-10 13:21:45",
                    "end_time": "2023-10-10 15:37:45"
                }
            },
            {
                "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:41:53",
                    "end_time": "2023-10-12 12:27:53"
                },
                "rohina": {
                    "start_time": "2023-10-12 12:27:53",
                    "end_time": "2023-10-12 13:13:53"
                },
                "aparahna": {
                    "start_time": "2023-10-12 13:13:53",
                    "end_time": "2023-10-12 15:35:53"
                }
            },
            {
                "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:28",
                    "end_time": "2023-10-13 12:28:28"
                },
                "rohina": {
                    "start_time": "2023-10-13 12:28:28",
                    "end_time": "2023-10-13 13:14:28"
                },
                "aparahna": {
                    "start_time": "2023-10-13 13:14:28",
                    "end_time": "2023-10-13 15:35:28"
                }
            },
            {
                "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:03",
                    "end_time": "2023-10-14 12:29:03"
                },
                "rohina": {
                    "start_time": "2023-10-14 12:29:03",
                    "end_time": "2023-10-14 13:15:03"
                },
                "aparahna": {
                    "start_time": "2023-10-14 13:15:03",
                    "end_time": "2023-10-14 15:35:03"
                }
            }
        ],
        "indira_ekadashi": {
            "smartas": {
                "date": "2023-10-10",
                "parana": {
                    "start_time": "2023-10-11 06:19:19",
                    "end_time": "2023-10-11 08:37:19"
                }
            },
            "vaishnavas": {
                "date": "2023-10-10",
                "parana": {
                    "start_time": "2023-10-11 06:19:19",
                    "end_time": "2023-10-11 08:37:19"
                }
            }
        },
        "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:03",
                "end_time": "2023-10-14 12:29:03"
            },
            "rohina": {
                "start_time": "2023-10-14 12:29:03",
                "end_time": "2023-10-14 13:15:03"
            },
            "aparahna": {
                "start_time": "2023-10-14 13:15:03",
                "end_time": "2023-10-14 15:35:03"
            }
        },
        "papankusha_ekadashi": {
            "smartas": {
                "date": "2023-10-25",
                "parana": {
                    "start_time": "2023-10-26 06:28:37",
                    "end_time": "2023-10-26 08:43:37"
                }
            },
            "vaishnavas": {
                "date": "2023-10-25",
                "parana": {
                    "start_time": "2023-10-26 06:28:37",
                    "end_time": "2023-10-26 08:43:37"
                }
            }
        },
        "jivit_putrika_vrat": "2023-10-07",
        "sharad_purnima": {
            "date": "2023-10-28",
            "moonrise": "2023-10-28 17:20:20"
        },
        "upang_lalita_vrat": "2023-10-19",
        "kojagara_puja": {
            "date": "2023-10-28",
            "nishita_muhurta": {
                "start_time": "2023-10-28 23:39:25",
                "end_time": "2023-10-29 00:30:49"
            }
        }
    }
}
  • The Ashwin Festivals API response provides detailed information about festivals and observances in the Ashwin month of 2023. 
  • Each festival entry includes the date, tithi (lunar day), start and end times, and specific time segments like Kutup, Rohina, and Aparahna. 
  • For Ekadashi and Amavasya, it includes dates for both Smarta and Vaishnava traditions along with Parana timings.

7. Error Resolution

Ensure your API key is correctly entered if you encounter errors, as most issues are due to invalid or missing API keys.

8. Further Assistance

For additional support or inquiries, feel free to contact our customer service team at admin@divineapi.com.