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

Know Your Friend Reading

Introducing the Know Your Friend Reading API, an interactive way to uncover deeper insights into friendships and compatibility. This API helps users understand dynamics, strengths, and growth areas in their relationships — perfect for applications focused on connection and personal discovery.


Step by Step Know Your Friend Reading API Postman Testing Integration

Step by Step Know Your Friend Reading API Postman Testing Integration


Supported Language Codes

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

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.


Endpoint

POST https://astroapi-5.divineapi.com/api/v2/know-your-friend-reading

Headers

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

Request Body

NameTypeDescription
api_key*StringYour DivineAPI Key (found on your dashboard).
lanStringLanguage code (default: en). How to update translator.

200: OK Successful

{
    "success": 1,
    "data": {
        "prediction": {
            "card": "THE CHARIOT",
            "result": "This person's dynamic and go-getter attitude is contagious, and you will find yourself drawn to their ambitious nature. The Chariot symbolizes victory, and this friend is always striving for success in all aspects of their life. They will encourage you to be more assertive and self-assured in your own pursuits. Their energy and enthusiasm will inspire you to take risks and follow your dreams. This friend is also reliable and dependable, and you can always count on them to be there for you when you need support.\r\n\r\nYou might be wondering how you can keep up with such an energetic friend, but don't worry. The Chariot's energy is not about wearing you down but lifting you up. Your friend's drive and determination will motivate you to achieve your own goals and aspirations. They may also be a good mentor or coach, guiding you towards success and helping you overcome obstacles. Remember to show your appreciation for this friend, as they will always be an invaluable source of inspiration and motivation in your life.",
            "image": "https://divineapi.com/admin/uploads/tarot_friend_or_foe/8.png",
            "image2": "https://divineapi.com/admin/uploads/tarot_friend_or_foe/8_2.jpg",
            "image3": "https://divineapi.com/admin/uploads/tarot_friend_or_foe/8_3.jpg"
        }
    }
}

Example Code Implementations

Below are example implementations in various programming environments.


cURL

curl --location 'https://astroapi-5.divineapi.com/api/v2/know-your-friend-reading' \
--header 'Authorization: Bearer {Your Auth Token}' \
--form 'api_key="{Your API Key}"' \
--form 'lan="en"'

NodeJS

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

var settings = {
  "url": "https://astroapi-5.divineapi.com/api/v2/know-your-friend-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/know-your-friend-reading"

payload = {'api_key': '{Your API Key}',
'lan': 'en'}

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

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

print(response.text)