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 Triangle Reading

Introducing the Love Triangle Reading API, a powerful tool for unraveling complex relationship dynamics. Provide users with personalized insights and guidance on navigating love triangles, helping them make informed decisions about their romantic lives.


Step by Step Love Triangle Reading API Postman Testing Integration

Step by Step Love Triangle Reading API Postman Testing Integration


API Endpoint for English

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

Guide: If you only need English, use this endpoint.


API Endpoint for other languages

POST https://astroapi-5-translator.divineapi.com/api/v2/love-triangle-reading

Guide: If you want the response in any other language use this translator endpoint.


Supported Language Codes

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

Supported Reference Article:
https://support.divineapi.com/general-api-support/translating-apis-into-a-different-language

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

Guide: Ensure that your translator configuration is up to date via DivineAPI Translator.


Headers

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

Request Body

NameTypeDescription
api_key*StringYour DivineAPI Key (available in your dashboard).
card_imageIntegerCard Image 1/2/3, default is 1.
lanStringLanguage code (default: en). How to update translator.

200: OK Successful

{
    "success": 1,
    "data": {
        "prediction": {
            "card1": "THE MOON",
            "card2": "THE FOOL",
            "card3": "THE LOVERS",
            "card1_image": "https://divineapi.com/admin/uploads/tarot-lovers-triangle/19.png",
            "card2_image": "https://divineapi.com/admin/uploads/tarot-lovers-triangle/1.png",
            "card3_image": "https://divineapi.com/admin/uploads/tarot-lovers-triangle/7.png",
            "your": "As someone who is ruled by their emotions, it is important for you to be with a partner who is able to understand and accept your feelings. You have a strong sense of compassion, which allows you to connect with others on a deep level. Your intuition is also quite strong, which can guide you towards a loving and fulfilling relationship.\r\n\r\nHowever, it is important to be aware that your emotions can be quite volatile at times. Just like the phases of the moon, your feelings can change rapidly, especially if you feel hurt or insecure. This can be challenging for a partner who is not equipped to handle your emotional fluctuations. It's important for you to communicate your needs and feelings in a way that is clear and respectful, so that your partner can understand and support you.\r\n\r\nYour sense of well-being is closely tied to your home and security. You value stability and a sense of safety, and you need a partner who can provide you with these things. A stable and secure home life will help you to feel grounded and centered, which will in turn allow you to explore your emotions and connect with your partner on a deeper level.\r\n\r\nIn terms of romance, it's important for you to prioritize your desires over your needs. While it's natural to want to be loved and cared for, you should also make sure that you are with someone who truly makes you happy and fulfills your deepest desires. This may mean taking some risks and stepping outside of your comfort zone, but the rewards will be well worth it in the end.",
            "lover1": "It's important to remember that while excitement and passion can be exhilarating, they can also be fleeting. It's important to balance the thrill of the moment with practicality and responsibility. If you find yourself in a relationship with this person, it's important to encourage them to think about the long-term consequences of their actions. You can be the solid and reliable presence that helps them stay grounded and focused. Together, you can build a relationship that is both exciting and stable, with a strong foundation that can weather any storm. So, take a chance on this person, but do it with your eyes wide open and your heart grounded in reality.",
            "lover2": "You may be feeling a strong physical attraction towards this person, but it's important to consider whether there is more to your connection than just lust. While physical chemistry can be a powerful force, it may not necessarily translate into a long-lasting, meaningful relationship. Take a step back and evaluate whether there is genuine trust, respect, and compatibility between you and this person.\r\n\r\nIt's also important to acknowledge that sometimes our desires can lead us to pursue people who are not truly available or interested in us. It can be tempting to believe that there is a strong connection between you and someone you are attracted to, but it's important to be honest with yourself about whether this person is really interested in a relationship with you.\r\n\r\nUltimately, it's important to approach your relationship with this person from a place of honesty and authenticity. If your connection is built on a foundation of mutual respect, trust, and shared values, then it may have the potential to be a fulfilling, long-term romance. However, if your attraction is purely physical or one-sided, then it may be best to move on and find someone who is truly right for you."
        }
    }
}

Example Code Implementations

Below are example implementations in various programming environments.


cURL

curl --location 'https://astroapi-5.divineapi.com/api/v2/love-triangle-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/love-triangle-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/love-triangle-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/love-triangle-reading"

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

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

response = requests.post(url, headers=headers, data=payload)
print(response.text)
curl -X POST "https://astroapi-5.divineapi.com/api/v2/love-triangle-reading" \
  -H "Authorization: Bearer {Your Auth Token}" \
  --form 'api_key="{Your API Key}"' \
  --form 'card_image="1"' \
  --form 'lan="en"'
const FormData = require('form-data');
const axios = require('axios');

const form = new FormData();
form.append('api_key', '{Your API Key}');
form.append('card_image', '1');
form.append('lan', 'en');

const response = await axios.post('https://astroapi-5.divineapi.com/api/v2/love-triangle-reading', form, {
  headers: {
    ...form.getHeaders(),
    'Authorization': 'Bearer {Your Auth Token}',
  }
});

console.log(response.data);
import requests

url = "https://astroapi-5.divineapi.com/api/v2/love-triangle-reading"
headers = {
    "Authorization": "Bearer {Your Auth Token}",
}
payload = {
    "api_key": "{Your API Key}",
    "card_image": "1",
    "lan": "en",
}

response = requests.post(url, headers=headers, data=payload)

print(response.json())
const formData = new FormData();
formData.append('api_key', '{Your API Key}');
formData.append('card_image', '1');
formData.append('lan', 'en');

const response = await fetch('https://astroapi-5.divineapi.com/api/v2/love-triangle-reading', {
  method: 'POST',
  headers: {
      'Authorization': "Bearer {Your Auth Token}",
    },
  body: formData,
});

const data = await response.json();
console.log(data);
<?php

use GuzzleHttp\Client;

$client = new Client();

$response = $client->request('POST', 'https://astroapi-5.divineapi.com/api/v2/love-triangle-reading', [
    'headers' => [
        'Authorization' => 'Bearer {Your Auth Token}',
    ],
    'multipart' => [
        ['name' => 'api_key', 'contents' => '{Your API Key}'],
        ['name' => 'card_image', 'contents' => '1'],
        ['name' => 'lan', 'contents' => 'en'],
    ],
]);

echo $response->getBody();
package main

import (
    "bytes"
    "fmt"
    "mime/multipart"
    "net/http"
    "io"
)

func main() {
    body := &bytes.Buffer{}
    writer := multipart.NewWriter(body)
    writer.WriteField("api_key", "{Your API Key}")
    writer.WriteField("card_image", "1")
    writer.WriteField("lan", "en")
    writer.Close()

    req, _ := http.NewRequest("POST", "https://astroapi-5.divineapi.com/api/v2/love-triangle-reading", body)
    req.Header.Set("Content-Type", writer.FormDataContentType())
    req.Header.Set("Authorization", "Bearer {Your Auth Token}")

    client := &http.Client{}
    resp, _ := client.Do(req)
    defer resp.Body.Close()

    body2, _ := io.ReadAll(resp.Body)
    fmt.Println(string(body2))
}
import okhttp3.*;
import java.io.IOException;

public class Main {
    public static void main(String[] args) throws IOException {
        OkHttpClient client = new OkHttpClient();

        RequestBody body = new MultipartBody.Builder()
            .setType(MultipartBody.FORM)
            .addFormDataPart("api_key", "{Your API Key}")
            .addFormDataPart("card_image", "1")
            .addFormDataPart("lan", "en")
            .build();

        Request request = new Request.Builder()
            .url("https://astroapi-5.divineapi.com/api/v2/love-triangle-reading")
            .post(body)
            .addHeader("Authorization", "Bearer {Your Auth Token}")
            .build();

        Response response = client.newCall(request).execute();
        System.out.println(response.body().string());
    }
}
import Foundation

let url = URL(string: "https://astroapi-5.divineapi.com/api/v2/love-triangle-reading")!
var request = URLRequest(url: url)
request.httpMethod = "POST"
request.setValue("Bearer {Your Auth Token}", forHTTPHeaderField: "Authorization")

let boundary = "Boundary-\(UUID().uuidString)"
request.setValue("multipart/form-data; boundary=\(boundary)", forHTTPHeaderField: "Content-Type")

var bodyData = Data()
bodyData.append("--\(boundary)\r\n".data(using: .utf8)!)
bodyData.append("Content-Disposition: form-data; name=\"api_key\"\r\n\r\n".data(using: .utf8)!)
bodyData.append("{Your API Key}\r\n".data(using: .utf8)!)
bodyData.append("--\(boundary)\r\n".data(using: .utf8)!)
bodyData.append("Content-Disposition: form-data; name=\"card_image\"\r\n\r\n".data(using: .utf8)!)
bodyData.append("1\r\n".data(using: .utf8)!)
bodyData.append("--\(boundary)\r\n".data(using: .utf8)!)
bodyData.append("Content-Disposition: form-data; name=\"lan\"\r\n\r\n".data(using: .utf8)!)
bodyData.append("en\r\n".data(using: .utf8)!)
bodyData.append("--\(boundary)--\r\n".data(using: .utf8)!)
request.httpBody = bodyData

let task = URLSession.shared.dataTask(with: request) { data, response, error in
    if let data = data {
        print(String(data: data, encoding: .utf8) ?? "")
    }
}
task.resume()
import okhttp3.*

fun main() {
    val client = OkHttpClient()

    val body = MultipartBody.Builder()
        .setType(MultipartBody.FORM)
        .addFormDataPart("api_key", "{Your API Key}")
        .addFormDataPart("card_image", "1")
        .addFormDataPart("lan", "en")
        .build()

    val request = Request.Builder()
        .url("https://astroapi-5.divineapi.com/api/v2/love-triangle-reading")
        .post(body!!)
        .addHeader("Authorization", "Bearer {Your Auth Token}")
        .build()

    client.newCall(request).execute().use { response ->
        println(response.body?.string())
    }
}
using System;
using System.Net.Http;
using System.Threading.Tasks;

class Program {
    static async Task Main() {
        using var client = new HttpClient();
        client.DefaultRequestHeaders.Add("Authorization", "Bearer {Your Auth Token}");

        var content = new MultipartFormDataContent();
        content.Add(new StringContent("{Your API Key}"), "api_key");
        content.Add(new StringContent("1"), "card_image");
        content.Add(new StringContent("en"), "lan");

        var response = await client.PostAsync("https://astroapi-5.divineapi.com/api/v2/love-triangle-reading", content);
        var result = await response.Content.ReadAsStringAsync();
        Console.WriteLine(result);
    }
}
Response 200
{
    "success": 1,
    "data": {
        "prediction": {
            "card1": "THE EMPEROR",
            "card2": "THE STAR",
            "card3": "THE HERMIT",
            "card1_image": "https://divineapi.com/admin/uploads/tarot-lovers-triangle/5.png",
            "card2_image": "https://divineapi.com/admin/uploads/tarot-lovers-triangle/18.png",
            "card3_image": "https://divineapi.com/admin/uploads/tarot-lovers-triangle/10.png",
            "your": "You have a strong personality, and you're not afraid to take the lead. You have a clear vision for your life and the goals you want to achieve. Love and romance are important to you, but you understand that there are certain expectations and boundaries that must be respected. Your past relationships have taught you valuable lessons, and you're not willing to settle for anything less than what you deserve.\r\n\r\nWhen it comes to love, you are a strategic thinker. You don't rush into things and you carefully evaluate potential partners before making a commitment. You want someone who can keep up with you, intellectually and emotionally. You value equality in your relationships, but you also have a need for control. You want to have a say in important decisions, and you expect your partner to respect your opinions and ideas.\r\n\r\nWhile your desire for control may come across as intimidating to some, it is simply a reflection of your confidence and self-assurance. You know what you want, and you're not afraid to go after it. You have a magnetic personality that attracts others to you, and your leadership qualities make you a natural-born leader. With the right partner by your side, you're sure to achieve great things together.",
            "lover1": "If you are with this person, you can expect to be swept up in their vision and optimism. You may find yourself feeling inspired and motivated by their ambitious goals and creative ideas. However, you should also be aware of the potential pitfalls that can come with this personality type. While this person's big-picture thinking can be a great asset, they may struggle with day-to-day details and organization. It may be up to you to help keep things running smoothly and make sure important details are not overlooked.\r\n\r\nCommunication will be key in any partnership with this person. Make sure to express your needs and concerns clearly, as they may not always be aware of how their actions are affecting you. It is important to work together as a team to achieve your shared goals, rather than letting misunderstandings or miscommunication drive a wedge between you.\r\n\r\nUltimately, with the right approach and a willingness to work together, you can build a strong and successful partnership with this visionary dreamer. Just be prepared to be flexible and adaptable, as you navigate the ups and downs of pursuing big dreams and taking risks.",
            "lover2": "If you are interested in this person, it might be helpful to explore their interests and hobbies. You may find common ground that you both enjoy, such as a shared love for movies, books, or cooking. This can be a great way to connect and bond over something that you both enjoy.\r\n\r\nIt's also important to be patient with this person. They may be cautious about jumping into a relationship and might take some time to open up emotionally. You can try to create a comfortable and safe environment where they can express themselves without feeling judged or pressured.\r\n\r\nOn the other hand, if you are looking for a more adventurous or spontaneous partner, then it might be best to keep looking. This person's preference for a low-key lifestyle might not align with your own desires and needs in a relationship.\r\n\r\nUltimately, it's important to listen to your intuition and trust your instincts. If you feel a strong connection with this person and are willing to take things slow, then it may be worth pursuing. But if you have doubts or concerns, it's okay to keep looking and find someone who better matches what you're looking for in a relationship."
        }
    }
}