Testing Kundali Matching API - Ashtakoot Milan API Using Postman

Explore the harmony of partnerships with our 'Ashtakoot Milan' API, assessing compatibility through eight essential factors within the framework of Indian Astrology's Kundali Matching.

 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 "Ashtakoot Milan" API request.
  • Ensure the method is set to POST.
  • Use this request URL: https://astroapi-3.divineapi.com/indian-api/v1/ashtakoot-milan 

 

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.
    • p1_full_name: “Person one” -  Enter name.
    • p1_day: “24” - Enter the date of birth.
    • p1_month: “05” - Enter the month of birth.
    • p1_year: "1998" - The year of interest.
    • p1_hour: “14” - Enter the hour.
    • p1_min: “40” - Enter the minute.
    • p1_sec: “43” - Enter the second.
    • p1_gender: “male” - Enter the gender.
    • p1_place: "New Delhi" -  The name of the city.
    • p1_lat: "28.7041" - Latitude for location-specific details.
    • p1_lon: "77.1025" - Longitude for accurate location insights.
    • p1_tzone: "5.5" - Timezone offset from UTC.
    • p2_full_name: “Person two” -  Enter name.
    • p2_day: “24” - Enter the date of birth.
    • p2_month: “05” - Enter the month of birth.
    • p2_year: "1998" - The year of interest.
    • p2_hour: “14” - Enter the hour.
    • p2_min: “40” - Enter the minute.
    • p2_sec: “43” - Enter the second.
    • p2_gender: “female” - Enter the gender.
    • p2_place: "New Delhi" -  The name of the city.
    • p2_lat: "28.7041" - Latitude for location-specific details.
    • p2_lon: "77.1025" - Longitude for accurate location insights.
    • p2_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": {
        "ashtakoot_milan": {
            "varna": {
                "p1": "Kshatriya",
                "p2": "Kshatriya",
                "points_obtained": 1,
                "max_ponits": 1,
                "area_of_life": "Karmic Classification"
            },
            "vashya": {
                "p1": "quadruped",
                "p2": "quadruped",
                "points_obtained": 2,
                "max_ponits": 2,
                "area_of_life": "Evolutionary Character"
            },
            "tara": {
                "p1": "Sampat",
                "p2": "Sampat",
                "points_obtained": 3,
                "max_ponits": 3,
                "area_of_life": "Luck"
            },
            "yoni": {
                "p1": "Gaja",
                "p2": "Gaja",
                "points_obtained": 4,
                "max_ponits": 4,
                "area_of_life": "Sexual Compatibility"
            },
            "graha_maitri": {
                "p1": "Mars",
                "p2": "Mars",
                "points_obtained": 5,
                "max_ponits": 5,
                "area_of_life": "Love and Affection"
            },
            "gana": {
                "p1": "Manushya",
                "p2": "Manushya",
                "points_obtained": 6,
                "max_ponits": 6,
                "area_of_life": "Temperament"
            },
            "bhakoota": {
                "p1": "Aries",
                "p2": "Aries",
                "points_obtained": 7,
                "max_ponits": 7,
                "area_of_life": "Emotional Bonding"
            },
            "nadi": {
                "p1": "Madhya",
                "p2": "Madhya",
                "points_obtained": 0,
                "max_ponits": 8,
                "area_of_life": "Health and Progeny"
            }
        },
        "ashtakoot_milan_result": {
            "points_obtained": 28,
            "max_ponits": 36,
            "is_compatible": "true",
            "content": "The compatibility score between the male and female is 28 out of 36, which is considered reasonably good. Additionally, their zodiac signs are friendly, indicating mental compatibility and mutual affection. Overall, it's a favorable match according to Ashtakoota."
        },
        "manglik_dosha": {
            "p1": "false",
            "p2": "false"
        },
        "nadi_dosha": "true",
        "bhakoot_dosha": "false"
    }
}
  • The provided response presents the results of an Ashtakoot Milan analysis, a compatibility assessment in Vedic astrology. 
  • It includes scores for eight different factors like Varna, Vashya, Tara, etc., 
  • Indicating compatibility in various aspects of life. The overall compatibility score is 28 out of 36, suggesting a favorable match. 
  • Additionally, it mentions the presence of Nadi dosha while indicating the absence of Manglik and Bhakoot doshas, which are considered in assessing potential marital issues.

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.