Testing the "Love Compatibility Tarot" API Using Postman

Introducing our Love Compatibility Tarot API, a powerful tool to gauge romantic connections. Easily integrate love compatibility calculations into your website and applications, helping users find and nurture meaningful relationships based on astrological and personality insights.

 Last updated : 13 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 "Love Compatibility Tarot" API request.
  • Ensure the method is set to POST.
  • Use this request URL: https://astroapi-5.divineapi.com/api/v2/love-compatibility 

 

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:
    • Key : api_key | Value: <Your_API_Key>
    • sign 1:  A zodiac sign. (eg.Aries, Capricorn)
    • sign 2:  A zodiac sign. (eg.Aries, Capricorn)
    • 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": {
        "prediction": {
            "sign_1": "Aries",
            "sign_2": "Aries",
            "overall_compatibility": "There are going to be sparked when two Aries start a relationship. \r\nThese two are constantly fighting, resulting in an excellent tough match. Aries-Aries relationships are like staring into a mirror: Aries recognize their partner's demand for autonomy because they are independent. However, they may be territorial at times, resulting in a rivalry between the two Rams. They must learn to cooperate rather than fight with one another. If they succeed, their union has the potential to be tremendously strong.\r\nA love match between two Aries is a union of two powerful souls; the partnership is often joyful and passionate. They enjoy trying new things, usually extreme athletics or other high-intensity activities. Since the two egos are continually fighting, resolving the inherent conflicts of a tight relationship can be difficult. They must learn to cooperate. Both partners must make a concerted effort not to be selfish because they want things to go their way. However, because Aries is a generous sign, two Aries may quickly learn to take shifts delighting each other.",
            "positive_aspects": "Explosive! Aries and Aries are two fire sign stars who will encounter on one stage in a once-in-a-lifetime event that will either be exhilarating or explosive. You're drawn to each other's ambitious, outgoing personalities. There's Aries is a sign of solid loyalty, and you don't put your trust in just anyone. It can be a dream come true to find someone who understands both your passion and your paranoia. You both enjoy being pampered and, yes, coddled. All of this is fine if you can turn off from playing Mama or Dada. Although having children may appear to be a needless extra, combining parental responsibilities can be an energizing event for the two of you as you recapture your youthful exuberance through your brood. ",
            "negative_aspects": "Watch beware if you both have a short temper at the same time! Plates are smashed, Jimmy Choos are stomped on, and it isn't pleasant. While you both make a lot of money, you burn through it just as fast. As the \"third\" party in your partnership, employ a wealth manager. Here, too, individuals have a chance to get lost in each other. Don't get too caught up in each other that you fail to call your friends and relatives!",
            "elements": "Aries is the first sign of the zodiac, and it is associated with fire. It's unusual for one partner to become fatigued while the other wish to retain going; two Aries will work hard together again and tire out at the exact moment. A continual conflict rages between two Aries over who will be the ruler. Because neither partner enjoys submitting, balance is needed. The partnership will run smoothly if these two can keep their egos in control.",
            "ideal_date": "An ideal date would be staying in together and warming up to one another.",
            "score": {
                "general": "7.5",
                "communication": "8.5",
                "sex": "6.5"
            }
        }
    }
}
  • The API response provides a love compatibility analysis for two Aries. 
  • It includes overall compatibility, positive and negative aspects, elements, an ideal date, and scores for general compatibility, communication, and sex. 
  • Use the fields such as "overall_compatibility", "positive_aspects", and "score" to display detailed compatibility insights and numerical ratings.

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.