Testing Kundali API - Antar Dasha Analysis API Using Postman

Navigate the cycles of life with our 'Antar Dasha Analysis' API, unraveling the dynamic planetary periods that shape individual destinies within the realm of Indian Astrology.

 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 "Antar Dasha Analysis" API request.
  • Ensure the method is set to POST.
  • Use this request URL: https://astroapi-3.divineapi.com/indian-api/v1/antar-dasha-analysis 

 

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.
    • maha_dasha: "rahu" - Enter the dasha name.
    • antar_dasha: "moon" - Enter the dasha name.
    • 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.
maha_dasha and antar_dasha values

sun: For Sun dasha

moon: For Moon dasha

mars: For Mars dasha

mercury: For Mercury dasha

venus: For Venus dasha

saturn: For Saturn dasha

jupiter: For Jupiter dasha

ketu: For Ketu dasha

rahu: For Rahu 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": {
        "maha_dasha": "Rahu",
        "antar_dasha": "Moon",
        "analysis": {
            "career": "During the period of Rahu Maha Dasha and Moon Antar Dasha, you may observe significant changes and volatility in your career sphere. Rahu is known for unexpected and sudden changes, while the Moon signifies thoughts and mental state. This may reflect in your career moves and choices. Your aspiration for growth and better opportunities could increase. You may be driven to switch jobs or even professions. Be ready to embrace unexpected shifts. But along with it, you may also face misunderstandings or conflicts in your work-relationships. Unclear communication could lead to conflicts. You might also feel a sense of restlessness. Therefore, practicing patience and maintaining a calm approach is highly recommended. This is the time to remain diligent, flexible, and adaptive to changes. On a positive note, this period might also bring about opportunities for overseas work or travel related to work.",
            "health": "Rahu may cause disturbance to your mental equilibrium. You could face issues related to stress, anxiety and restlessness during this Dasha. The Moon, while it frequently treats the mind, might add to the emotional struggles during this period. Be mindful of mental health issues and seek help if necessary. In terms of physical health, there could be ailments surfacing that might have been hidden or ignored. Rahu can potentially cause illnesses to suddenly flare up, so timely medical intervention is crucial. It's very important to maintain a balanced diet and routine. Regular exercise can help you stay physically fit and also maintain mental stability. Make sure to treat health issues immediately and don't ignore any signals your body gives you.",
            "finance": "Rahu can bring in financial volatility. You might earn from unexpected sources but the risk of sudden losses is also high. The Moon signifies fluctuations and these can translate to income volatility too. It’s crucial to maintain a tight check on your expenses and avoid any risk-bearing investments. Sudden expenses might crop up, causing financial instability. Your interest in speculative activities might increase, but caution in these matters is advised. Try to create a good balance between your income and expenses. Prudent financial planning and avoiding unnecessary expenses could help preserve your monetary stability. Investing in safe and long-term profitable areas is recommended.",
            "relationships": "Rahu and the Moon might trigger sensitive reactions in your relationships. You may feel restless, impatient and may have constant mood swings, which could cause turbulence in your relationships. Misunderstandings might crop up if you don't handle your emotional turmoil wisely. Be clear in your communication and avoid unnecessary arguments. You would need to practice patience during this period. There might be times when you could feel isolated despite being surrounded by people. Family relations might get strained, while friendships might undergo a testing phase. Stay calm and composed in dealing with people. Fostering patience, understanding and empathy could help in maintaining harmony in relationships."
        }
    }
}
  • The Antar Dasha Analysis API response outlines the effects of the Rahu Maha Dasha and Moon Antar Dasha on career, health, finance, and relationships. 
  • Each section provides detailed insights into potential challenges and opportunities, such as career volatility, mental health struggles, financial instability, and relationship turbulence. 
  • The analysis emphasizes the importance of patience, clear communication, and prudent planning to navigate these periods successfully.

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.