Copy page
Copy page as Markdown for LLMs
The Flames Calculator API determines relationship compatibility between two names using the popular FLAMES method — representing Friendship, Love, Affection, Marriage, Enemy, and Sex. It analyzes the character patterns in both names to derive the nature of the relationship. This API is ideal for love calculators, fun compatibility tools, or gamified astrology features.
POST https://astroapi-7.divineapi.com/calculator/v1/flames-calculator
Returns Flame in response.
| Name | Type | Description |
|---|---|---|
| Authorization* | String | Your API Access Token. Example: Bearer {token} |
| Name | Type | Description |
|---|---|---|
| api_key* | String | Your API key obtained from the DivineAPI dashboard. |
| your_name* | String | Full name of the user. Example: Rahul kumar. |
| partner_name* | String | Full name of the partner. Example: Rita kumari. |
{
"status": "success",
"code": 200,
"message": "Calculation was successful",
"data": {
"flame": "Marriage",
"description": "Your relationship is categorized as: Marriage",
"your_name": "Rahul kumar",
"partner_name": "Rita kumari"
}
}
Below are examples of how you might call this API using different programming languages and environments.
curl --location 'https://astroapi-7.divineapi.com/calculator/v1/flames-calculator' \
--header 'Authorization: Bearer {Your Auth Token}' \
--form 'api_key="{Your API Key}"' \
--form 'your_name="Rahul kumar"' \
--form 'partner_name="Rita kumari"'
var request = require('request');
var options = {
'method': 'POST',
'url': 'https://astroapi-7.divineapi.com/calculator/v1/flames-calculator',
'headers': {
'Authorization': 'Bearer {Your Auth Token}'
},
formData: {
'api_key': '{Your API Key}',
'your_name': 'Rahul kumar',
'partner_name': 'Rita kumari'
}
};
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("your_name", "Rahul kumar");
form.append("partner_name", "Rita kumari");
var settings = {
"url": "https://astroapi-7.divineapi.com/calculator/v1/flames-calculator",
"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-7.divineapi.com/calculator/v1/flames-calculator"
payload = {'api_key': '{Your API Key}',
'your_name': 'Rahul kumar',
'partner_name: 'Rita kumari'
}
headers = {
'Authorization': 'Bearer {Your Auth Token}'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
Input Requirements:
Ensure both your_name and partner_name are properly formatted strings to generate accurate compatibility results.
Localization Ready:
The response values can be localized easily for multilingual frontends by mapping the FLAMES terms to your preferred languages.
Integration Ease:
Can be embedded into existing love calculator apps, astrology portals, or entertainment widgets for quick compatibility checks.
Security Best Practice:
Keep your api_key and Authorization tokens secure — do not expose them on client-side code or public repositories.