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 "Vimshottari Dasha" API request.
- Ensure the method is set to POST.
- Use this request URL: https://astroapi-3.divineapi.com/indian-api/v1/vimshottari-dasha
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.
- full_name: “Your name” - Enter name.
- day: “24” - Enter the date of birth.
- month: “05” - Enter the month of birth.
- year: "2023" - The year of interest.
- hour: “14” - Enter the hour.
- min: “40” - Enter the minute.
- sec: “43” - Enter the second.
- gender: “male” - Enter the gender.
- place: "New Delhi" - The name of the city.
- lat: "28.6139" - Latitude for location-specific details.
- lon: "77.2090" - Longitude for accurate location insights.
- tzone: "5.5" - Timezone offset from UTC.
- lan: “en” - Enter the language.
- dasha_type: “antar-dasha” - Enter the dasha name
- Please ensure that the bearer token is exactly the same as in your profile, with no changes in spacing or formatting.
dasha_type
maha-dasha: Return only maha dasha
antar-dasha: Return maha dasha and antar dasha
pratyantar-dasha: Return maha dasha, antar dasha and pratyantar dasha
sookshma-dasha: Return maha dasha, antar dasha, pratyantar dasha and sookshma dasha
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": {
"date": "2023-05-24",
"time": "14:40:43",
"maha_dasha": {
"Jupiter": {
"start_date": "2007-08-31",
"end_date": "2023-08-23",
"antar_dasha": {
"Jupiter": {
"start_time": "--",
"end_time": "--"
},
"Saturn": {
"start_time": "--",
"end_time": "--"
},
"Mercury": {
"start_time": "--",
"end_time": "--"
},
"Ketu": {
"start_time": "--",
"end_time": "--"
},
"Venus": {
"start_time": "--",
"end_time": "--"
},
"Sun": {
"start_time": "--",
"end_time": "--"
},
"Moon": {
"start_time": "--",
"end_time": "--"
},
"Mars": {
"start_time": "--",
"end_time": "--"
},
"Rahu": {
"start_time": "2021-04-07",
"end_time": "2023-08-23"
}
}
},
"Saturn": {
"start_date": "2023-08-23",
"end_date": "2042-08-23",
"antar_dasha": {
"Saturn": {
"start_time": "2023-08-23",
"end_time": "2026-08-26"
},
"Mercury": {
"start_time": "2026-08-26",
"end_time": "2029-05-05"
},
"Ketu": {
"start_time": "2029-05-05",
"end_time": "2030-06-14"
},
"Venus": {
"start_time": "2030-06-14",
"end_time": "2033-08-14"
},
"Sun": {
"start_time": "2033-08-14",
"end_time": "2034-07-26"
},
"Moon": {
"start_time": "2034-07-26",
"end_time": "2036-02-26"
},
"Mars": {
"start_time": "2036-02-26",
"end_time": "2037-04-04"
},
"Rahu": {
"start_time": "2037-04-04",
"end_time": "2040-02-10"
},
"Jupiter": {
"start_time": "2040-02-10",
"end_time": "2042-08-23"
}
}
},
"Mercury": {
"start_date": "2042-08-23",
"end_date": "2059-08-23",
"antar_dasha": {
"Mercury": {
"start_time": "2042-08-23",
"end_time": "2045-01-19"
},
"Ketu": {
"start_time": "2045-01-19",
"end_time": "2046-01-15"
},
"Venus": {
"start_time": "2046-01-15",
"end_time": "2048-11-15"
},
"Sun": {
"start_time": "2048-11-15",
"end_time": "2049-09-21"
},
"Moon": {
"start_time": "2049-09-21",
"end_time": "2051-02-21"
},
"Mars": {
"start_time": "2051-02-21",
"end_time": "2052-02-17"
},
"Rahu": {
"start_time": "2052-02-17",
"end_time": "2054-09-04"
},
"Jupiter": {
"start_time": "2054-09-04",
"end_time": "2056-12-10"
},
"Saturn": {
"start_time": "2056-12-10",
"end_time": "2059-08-23"
}
}
},
"Ketu": {
"start_date": "2059-08-23",
"end_date": "2066-08-23",
"antar_dasha": {
"Ketu": {
"start_time": "2059-08-23",
"end_time": "2060-01-19"
},
"Venus": {
"start_time": "2060-01-19",
"end_time": "2061-03-19"
},
"Sun": {
"start_time": "2061-03-19",
"end_time": "2061-07-25"
},
"Moon": {
"start_time": "2061-07-25",
"end_time": "2062-02-25"
},
"Mars": {
"start_time": "2062-02-25",
"end_time": "2062-07-22"
},
"Rahu": {
"start_time": "2062-07-22",
"end_time": "2063-08-09"
},
"Jupiter": {
"start_time": "2063-08-09",
"end_time": "2064-07-15"
},
"Saturn": {
"start_time": "2064-07-15",
"end_time": "2065-08-24"
},
"Mercury": {
"start_time": "2065-08-24",
"end_time": "2066-08-23"
}
}
},
"Venus": {
"start_date": "2066-08-23",
"end_date": "2086-08-23",
"antar_dasha": {
"Venus": {
"start_time": "2066-08-23",
"end_time": "2069-12-23"
},
"Sun": {
"start_time": "2069-12-23",
"end_time": "2070-12-23"
},
"Moon": {
"start_time": "2070-12-23",
"end_time": "2072-08-23"
},
"Mars": {
"start_time": "2072-08-23",
"end_time": "2073-10-23"
},
"Rahu": {
"start_time": "2073-10-23",
"end_time": "2076-10-23"
},
"Jupiter": {
"start_time": "2076-10-23",
"end_time": "2079-06-23"
},
"Saturn": {
"start_time": "2079-06-23",
"end_time": "2082-08-23"
},
"Mercury": {
"start_time": "2082-08-23",
"end_time": "2085-06-23"
},
"Ketu": {
"start_time": "2085-06-23",
"end_time": "2086-08-23"
}
}
},
"Sun": {
"start_date": "2086-08-23",
"end_date": "2092-08-23",
"antar_dasha": {
"Sun": {
"start_time": "2086-08-23",
"end_time": "2086-12-11"
},
"Moon": {
"start_time": "2086-12-11",
"end_time": "2087-06-11"
},
"Mars": {
"start_time": "2087-06-11",
"end_time": "2087-10-17"
},
"Rahu": {
"start_time": "2087-10-17",
"end_time": "2088-09-10"
},
"Jupiter": {
"start_time": "2088-09-10",
"end_time": "2089-06-28"
},
"Saturn": {
"start_time": "2089-06-28",
"end_time": "2090-06-09"
},
"Mercury": {
"start_time": "2090-06-09",
"end_time": "2091-04-15"
},
"Ketu": {
"start_time": "2091-04-15",
"end_time": "2091-08-21"
},
"Venus": {
"start_time": "2091-08-21",
"end_time": "2092-08-23"
}
}
},
"Moon": {
"start_date": "2092-08-23",
"end_date": "2102-08-23",
"antar_dasha": {
"Moon": {
"start_time": "2092-08-23",
"end_time": "2093-06-23"
},
"Mars": {
"start_time": "2093-06-23",
"end_time": "2094-01-23"
},
"Rahu": {
"start_time": "2094-01-23",
"end_time": "2095-07-23"
},
"Jupiter": {
"start_time": "2095-07-23",
"end_time": "2096-11-23"
},
"Saturn": {
"start_time": "2096-11-23",
"end_time": "2098-06-23"
},
"Mercury": {
"start_time": "2098-06-23",
"end_time": "2099-11-23"
},
"Ketu": {
"start_time": "2099-11-23",
"end_time": "2100-06-23"
},
"Venus": {
"start_time": "2100-06-23",
"end_time": "2102-02-23"
},
"Sun": {
"start_time": "2102-02-23",
"end_time": "2102-08-23"
}
}
},
"Mars": {
"start_date": "2102-08-23",
"end_date": "2109-08-23",
"antar_dasha": {
"Mars": {
"start_time": "2102-08-23",
"end_time": "2103-01-19"
},
"Rahu": {
"start_time": "2103-01-19",
"end_time": "2104-02-06"
},
"Jupiter": {
"start_time": "2104-02-06",
"end_time": "2105-01-12"
},
"Saturn": {
"start_time": "2105-01-12",
"end_time": "2106-02-21"
},
"Mercury": {
"start_time": "2106-02-21",
"end_time": "2107-02-17"
},
"Ketu": {
"start_time": "2107-02-17",
"end_time": "2107-07-14"
},
"Venus": {
"start_time": "2107-07-14",
"end_time": "2108-09-14"
},
"Sun": {
"start_time": "2108-09-14",
"end_time": "2109-01-20"
},
"Moon": {
"start_time": "2109-01-20",
"end_time": "2109-08-23"
}
}
},
"Rahu": {
"start_date": "2109-08-23",
"end_date": "2127-08-23",
"antar_dasha": {
"Rahu": {
"start_time": "2109-08-23",
"end_time": "2112-05-05"
},
"Jupiter": {
"start_time": "2112-05-05",
"end_time": "2114-09-29"
},
"Saturn": {
"start_time": "2114-09-29",
"end_time": "2117-08-04"
},
"Mercury": {
"start_time": "2117-08-04",
"end_time": "2120-02-22"
},
"Ketu": {
"start_time": "2120-02-22",
"end_time": "2121-03-12"
},
"Venus": {
"start_time": "2121-03-12",
"end_time": "2124-03-12"
},
"Sun": {
"start_time": "2124-03-12",
"end_time": "2125-02-05"
},
"Moon": {
"start_time": "2125-02-05",
"end_time": "2126-08-05"
},
"Mars": {
"start_time": "2126-08-05",
"end_time": "2127-08-23"
}
}
}
}
}
}
- The Vinshottari Dasha API response provides details about planetary periods in Vedic astrology.
- It includes the start and end dates of each major period (Maha Dasha) and its sub-periods (Antar Dasha) for the planets Jupiter, Saturn, Mercury, Ketu, Venus, Sun, Moon, Mars, and Rahu.
- These periods are based on the positions of the planets at the time of birth and help astrologers interpret significant life events and transitions for individuals.
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.