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

Flames Calculator

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.


API Endpoint

POST https://astroapi-7.divineapi.com/calculator/v1/flames-calculator

Returns Flame in response.


Headers

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

Request Body

NameTypeDescription
api_key*StringYour API key obtained from the DivineAPI dashboard.
your_name*StringFull name of the user. Example: Rahul kumar.
partner_name*StringFull name of the partner. Example: Rita kumari.

200: OK Flames fetched successfully

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

Example Integrations

Below are examples of how you might call this API using different programming languages and environments.


cURL

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"'

NodeJS

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);
});

JavaScript jQuery AJAX

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);
})

Python

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)

Implementation Notes

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.