search

Copy page

Copy page as Markdown for LLMs

View as Markdown

View this page as plain text


Open in ChatGPT

Ask ChatGPT about this page

Open in Claude

Ask Claude about this page

Love Compatibility

Introducing the Love Compatibility API, a powerful tool designed to analyze romantic compatibility between two zodiac signs. Easily integrate this API into your platform to provide users with accurate insights about emotional harmony, communication potential, and relationship dynamics.


Step by Step Love Compatibility API Postman Testing Integration

Step by Step Love Compatibility API Postman Testing Integration


Supported Language Codes

Use the lan parameter in the request body to define your preferred response language.

CodeLanguage
enEnglish
hiHindi
ptPortuguese
frFrench
esSpanish
ruRussian
deGerman
nlDutch
itItalian
plPolish
arArabic
jaJapanese
zhChinese
tmTamil
tlTelugu
trTurkish
taFilipino/Tagalog
bnBengali
maMarathi
mlMalayalam
knKannada

Guide:
Translate or localize responses with the DivineAPI Translator.


API Endpoint

POST https://astroapi-5.divineapi.com/api/v2/love-compatibility

Headers

NameTypeDescription
Authorization*StringYour API Access Token. Example: Bearer {token}

Request Body

NameTypeDescription
api_key*StringYour DivineAPI Key (available in your dashboard).
sign_1*StringZodiac sign of the first person. (e.g., Aries, Capricorn).
sign_2*StringZodiac sign of the second person. (e.g., Aries, Capricorn).
lanStringLanguage code (default: en). How to update translator.

200: OK Successful

{
    "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"
            }
        }
    }
}

Example Code Implementations

Below are example implementations in various programming environments.


cURL

curl --location 'https://astroapi-5.divineapi.com/api/v2/love-compatibility' \
--header 'Authorization: Bearer {Your Auth Token}' \
--form 'api_key="{Your API Key}"' \
--form 'sign_1="Aries"' \
--form 'sign_2="Aries"' \
--form 'lan="en"'

NodeJS

var request = require('request');
var options = {
  'method': 'POST',
  'url': 'https://astroapi-5.divineapi.com/api/v2/love-compatibility',
  'headers': {
    'Authorization': 'Bearer {Your Auth Token}'
  },
  formData: {
    'api_key': '{Your API Key}',
    'sign_1': 'Aries',
    'sign_2': 'Aries',
    'lan': 'en'
  }
};
request(options, function (error, response) {
  if (error) throw new Error(error);
  console.log(response.body);
});

JavaScript jQuery AJAX

var form = new FormData();
form.append("api_key", "Your API key");
form.append("card_image", "1");
form.append("lan", "en");

var settings = {
  "url": 'https://astroapi-5.divineapi.com/api/v2/love-compatibility',
  "method": "POST",
  "timeout": 0,
  "headers": {
    "Authorization": "Bearer {Your Auth Token}"
  },
  "processData": false,
  "mimeType": "multipart/form-data",
  "contentType": false,
  "data": form
};

$.ajax(settings).done(function (response) {
  console.log(response);
});

Python

import requests

url = "https://astroapi-5.divineapi.com/api/v2/love-triangle-reading"

payload = {'api_key': 'Bearer {Your Auth Token}',
'card_image': '1',
'lan': 'en'}
files=[

]
headers = {
  'Authorization': '••••••'
}

response = requests.request("POST", url, headers=headers, data=payload, files=files)

print(response.text)

Implementation Notes

Authentication:
Always include your Bearer token in the header. Missing or invalid tokens return a 401 Unauthorized error.

Error Handling:
Manage responses like 400 Bad Request and 500 Internal Server Error using fallback messages or retry logic.

Caching:
Cache frequent zodiac pair results (e.g., Aries–Taurus) to improve speed and minimize API calls.

UI Integration:
Use the score object for progress bars or visual indicators to display compatibility levels effectively.