Testing Panchang API - Find Shravana Festivals API Using Postman

Indulge in the aura of Shravana with our 'Shravana Festivals' API, uncovering the astrological and cultural splendor of festivals that adorn 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 Shravana Festivals" API request.
  • Ensure the method is set to POST.
  • Use this request URL: https://astroapi-3.divineapi.com/indian-api/v1/shraavana-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",
        "kamika_ekadashi": {
            "smartas": {
                "date": "2023-07-13",
                "parana": {
                    "start_time": "2023-07-14 05:32:35",
                    "end_time": "2023-07-14 08:17:35"
                }
            },
            "vaishnavas": {
                "date": "2023-07-13",
                "parana": {
                    "start_time": "2023-07-14 05:32:35",
                    "end_time": "2023-07-14 08:17:35"
                }
            }
        },
        "hariyaali_teej": "2023-08-19",
        "naga_panchami": {
            "date": "2023-08-21",
            "puja_muhurat": {
                "start_time": "2023-08-21 05:53:24",
                "end_time": "2023-08-21 08:29:24"
            }
        },
        "putrida_ekadashi": {
            "smartas": {
                "date": "2023-08-27",
                "parana": {
                    "start_time": "2023-08-28 05:57:01",
                    "end_time": "2023-08-28 08:30:01"
                }
            },
            "vaishnavas": {
                "date": "2023-08-27",
                "parana": {
                    "start_time": "2023-08-28 05:57:01",
                    "end_time": "2023-08-28 08:30:01"
                }
            }
        },
        "gayatri_jayanti": "2023-08-31",
        "kalki_jayanti": {
            "date": "2023-08-22",
            "puja_muhurat": {
                "start_time": "2023-08-22 16:18:01",
                "end_time": "2023-08-22 18:54:01"
            }
        },
        "hayagriva_jayanti": {
            "date": "2023-08-30",
            "puja_muhurat": {
                "start_time": "2023-08-30 16:12:25",
                "end_time": "2023-08-30 18:45:25"
            }
        },
        "narali_purnima": "2023-08-31",
        "sanskrit_divas": "2023-08-31",
        "shraavana_maas": {
            "start_date": "2023-07-04",
            "end_date": "2023-08-31"
        },
        "shraavana_somvaar_vrat": {
            "1": "2023-07-10",
            "2": "2023-07-17",
            "3": "2023-07-24",
            "4": "2023-07-31",
            "5": "2023-08-07",
            "6": "2023-08-14",
            "7": "2023-08-21",
            "8": "2023-08-28"
        },
        "mangla_gauri_vrat": {
            "1": "2023-07-04",
            "2": "2023-07-11",
            "3": "2023-07-18",
            "4": "2023-07-25",
            "5": "2023-08-01",
            "6": "2023-08-08",
            "7": "2023-08-15",
            "8": "2023-08-22",
            "9": "2023-08-29"
        },
        "varalaxmi_vrat": {
            "date": "2023-08-25",
            "puja_muhurat": {
                "simha_lagna": {
                    "start_time": "2023-08-25 05:55:29",
                    "end_time": "2023-08-25 07:41:29"
                },
                "vrishchika_lagna": {
                    "start_time": "2023-08-25 12:18:29",
                    "end_time": "2023-08-25 14:36:29"
                },
                "kumbha_lagna": {
                    "start_time": "2023-08-25 18:23:29",
                    "end_time": "2023-08-25 19:50:29"
                },
                "vrishabha_lagna": {
                    "start_time": "2023-08-25 22:51:29",
                    "end_time": "2023-08-26 00:45:29"
                }
            }
        }
    }
}
  • The Shravana Festivals API response details the festival dates and timings for the Shravana month in 2023. 
  • Each festival entry includes the date, and for specific observances (e.g., Ekadashi), it provides Parana (fast-breaking) timings for both Smartas and Vaishnavas. 
  • Additional details such as Puja Muhurat timings for certain rituals and a list of dates for recurring events (e.g., Shraavana Somvaar Vrat) are also included.

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.