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

Wisdom Reading API

Introducing the Wisdom Reading API, your portal to accessing profound wisdom and insights for personal growth and reflection. Easily integrate wisdom readings into your website and applications, offering users guidance and inspiration for their journey.


Step by Step Wisdom Reading API Postman Testing Integration

Step by Step Wisdom 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:
Translate or localize responses with the DivineAPI Translator.


Endpoint

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

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: 1
lanStringLanguage code (default: en). How to update translator.

200: OK Successful

{
    "success": 1,
    "data": {
        "prediction": {
            "card1": "THE STAR",
            "card2": "THE HERMIT",
            "card1_image": "https://divineapi.com/admin/uploads/tarot-zen/18.png",
            "card2_image": "https://divineapi.com/admin/uploads/tarot-zen/10.png",
            "ying": "You can take this time to slow down and reassess the situation. The Star card reminds you that the universe has a plan for you, and things will fall into place at the right time. Instead of rushing into action, take a moment to meditate, reflect, and connect with your intuition. When you listen to your inner voice, you will find the answers you seek.\r\n\r\nIt is also important to focus on your personal growth and self-care during this time. Take care of your physical and emotional needs, and make time for activities that bring you joy and relaxation. When you take care of yourself, you will have the energy and clarity to tackle any challenges that come your way.\r\n\r\nRemember that the Star card is a symbol of hope and inspiration. Even if things seem dark or uncertain right now, trust that there is a brighter future ahead. Keep your focus on your goals, and have faith in yourself and the universe. With patience, perseverance, and a positive attitude, you can achieve anything you set your mind to.",
            "yang": "By drawing the Hermit in the yang position of your reading, you're being called to take charge of your life and make decisions on your own. It's time to step away from the influence of others and find your own truth. You may have been seeking guidance from others, but the Hermit reminds you that the best guidance comes from within. Use your intuition and inner wisdom to guide you in your decisions.\r\n\r\nThis card can also be a sign that you need to take some time for yourself to recharge and rejuvenate. The world can be overwhelming, and taking some time alone can help you gain clarity and perspective. Take a break from social media and the news, and spend some time in nature or doing an activity you enjoy. This will help you feel more centered and grounded, which will ultimately benefit all aspects of your life. Remember, the Hermit is not about isolating yourself from the world, but rather finding balance between the inner and outer worlds."
        }
    }
}

Example Code Implementations

Below are example implementations in various programming environments.


cURL

curl --location 'https://astroapi-5.divineapi.com/api/v2/wisdom-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/wisdom-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/wisdom-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/wisdom-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)

Implementation Notes

Authentication:
Include a valid Bearer token in every API call to authorize the request.

Error Handling:
Handle potential errors gracefully, such as 400 (Bad Request), 401 (Unauthorized), and 500 (Server Error).

Customization:
The two-card structure (ying and yang) offers flexibility to display balanced insights — spiritual versus practical.

UI Integration:
Present both card images (card1_image, card2_image) side by side with their respective readings for visual engagement.