Copy page
Copy page as Markdown for LLMs
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
Use the lan parameter in the request body to define your preferred response language.
| Code | Language |
|---|---|
| en | English |
| hi | Hindi |
| pt | Portuguese |
| fr | French |
| es | Spanish |
| ru | Russian |
| de | German |
| nl | Dutch |
| it | Italian |
| pl | Polish |
| ar | Arabic |
| ja | Japanese |
| zh | Chinese |
| tm | Tamil |
| tl | Telugu |
| tr | Turkish |
| ta | Filipino/Tagalog |
| bn | Bengali |
| ma | Marathi |
| ml | Malayalam |
| kn | Kannada |
Guide:
Translate or localize responses with the DivineAPI Translator.
POST https://astroapi-5.divineapi.com/api/v2/love-compatibility
| Name | Type | Description |
|---|---|---|
| Authorization* | String | Your API Access Token. Example: Bearer {token} |
| Name | Type | Description |
|---|---|---|
| api_key* | String | Your DivineAPI Key (available in your dashboard). |
| sign_1* | String | Zodiac sign of the first person. (e.g., Aries, Capricorn). |
| sign_2* | String | Zodiac sign of the second person. (e.g., Aries, Capricorn). |
| lan | String | Language code (default: en). How to update translator. |
{
"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"
}
}
}
}Below are example implementations in various programming environments.
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"'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);
});
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);
});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)
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.