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

Heartbreak Reading API

Introducing the Heartbreak Reading API, a compassionate tool that provides users with personalized emotional insights and guidance during times of emotional pain. This API helps you deliver supportive, reflective readings to those navigating heartbreak, offering both clarity and healing through the wisdom of tarot.


Step by Step Heartbreak Reading API Postman Testing Integration

Step by Step Heartbreak Reading API Postman Testing Integration


Supported Language Codes

Use the lan parameter in the request body to select your preferred language for the API response.

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

Guide:
You can translate or localize the API output using the DivineAPI Translator.


API Endpoint

POST https://astroapi-5.divineapi.com/api/v2/heartbreak-reading

Headers

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

Request Body

NameTypeDescription
api_key*StringYour DivineAPI Key (available in your developer dashboard).
card_imageIntegerChoose the card image variant (1 / 2 / 3). Default value: 1.
lanStringLanguage code (default: en). How to update translator.

200: OK Successful

{
    "success": 1,
    "data": {
        "prediction": {
            "card1": "THE HIEROPHANT",
            "card2": "THE EMPEROR",
            "card1_image": "https://divineapi.com/admin/uploads/tarot-breakup/6.png",
            "card2_image": "https://divineapi.com/admin/uploads/tarot-breakup/5.png",
            "cause": "You have likely experienced a situation where you and your partner had differing views on the purpose and expectations of your relationship. Perhaps you wanted a traditional, committed union, while your partner preferred an unconventional arrangement. Despite being in love, your relationship was unable to flourish due to the conflicting values. In the end, it was probably better for both of you to part ways so that you could maintain a friendship. While it may have been difficult to end the romantic aspect of your relationship, it is possible to still maintain a meaningful connection with your ex-partner. By recognizing and respecting each other's differences, you can work towards a healthy and positive friendship. Remember that not all relationships are meant to last forever, but that doesn't mean they weren't valuable experiences that helped shape you into the person you are today.",
            "advise": "It sounds like your past relationship was marked by an imbalance in power. Perhaps you even felt like you were with a parent rather than a partner. This can be a difficult and frustrating dynamic to navigate, but don't worry – there are ways to move forward and find healthier relationships.\r\n\r\nThe wise and strong Emperor advises you to be your own guardian and take control of your life. This means taking responsibility for your own well-being, setting boundaries, and making decisions that are in your best interest. When you take ownership of your life, you'll attract people who respect your boundaries and support your independence.\r\n\r\nOn the other hand, if you continue to rely on others to make decisions for you, you'll likely attract people who want to take control of your life. This can lead to more dysfunctional relationships and a sense of feeling trapped or powerless.\r\n\r\nSo how can you improve your self-reliance? Start by identifying areas where you may be overly dependent on others. This could include financial support, emotional validation, or decision-making. Once you've identified these areas, take small steps towards becoming more self-sufficient. This could mean creating a budget and managing your own finances, seeking out therapy or support groups to work through emotional issues, or practicing making decisions on your own, even if they are small.\r\n\r\nRemember, improving your self-reliance takes time and practice, but it's a crucial step towards building healthy, fulfilling relationships. The Emperor reminds you that you have the power within you to create the life you want – all you need to do is take the first step."
        }
    }
}

Example Code Implementations

Below are example implementations in various programming environments.


cURL

curl --location 'https://astroapi-5.divineapi.com/api/v2/heartbreak-reading' \
--header 'Authorization: Bearer {Your Auth Token}' \
--form 'api_key="Your API key"' \
--form 'card_image="1"' \
--form 'lan="en"'

NodeJS

var request = require('request');
var options = {
  'method': 'POST',
  'url': 'https://astroapi-5.divineapi.com/api/v2/heartbreak-reading',
  'headers': {
    'Authorization': 'Bearer {Your Auth Token}'
  },
  formData: {
    'api_key': 'Your API key',
    'card_image': '1',
    '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/heartbreak-reading",
  "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/heartbreak-reading"

payload = {'api_key': 'Your API key',
'card_image': '1',
'lan': 'en'}

headers = {
  'Authorization': 'Bearer {Your Auth Token}'
}

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

print(response.text)