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

Power Life Reading

Introducing the Power Life Reading API, a transformative tool that offers deep insights and guidance into one’s life path and purpose. Easily integrate this API into your websites and applications to provide users with personalized life readings that empower their journey.


Step by Step Power Life Reading API Postman Testing Integration

Step by Step Power Life 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/power-life-reading

Headers

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

Request Body

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

200: OK Successful

{
    "success": 1,
    "data": {
        "prediction": {
            "card": "THE FOOL",
            "result": "Before you make any decisions, it is essential to pause and evaluate the situation thoroughly. Take the time to consider all the possible outcomes and consequences of your actions. Ask yourself if the risks are worth the potential rewards. Rushing into something without taking the necessary precautions can lead to disaster.\r\n\r\nIn addition, it's crucial to trust your instincts and listen to your inner voice. If something doesn't feel right, it probably isn't. You may be tempted to follow the crowd or do what others expect of you, but this may not be the right path for you. Your intuition is a powerful tool, and it can guide you in making the right decisions.\r\n\r\nRemember that building strong relationships takes time and effort. You can't force someone to like you or trust you. It's essential to be patient and genuine in your interactions with others. Rushing into a relationship without getting to know the person can lead to disappointment and heartbreak.\r\n\r\nIn conclusion, taking a step back and evaluating the situation before taking action is always the best course of action. Trusting your instincts and being patient will help you make the right decisions and build strong relationships that will last a lifetime.",
            "image": "https://divineapi.com/admin/uploads/tarot_power/1.png",
            "image2": "https://divineapi.com/admin/uploads/tarot_power/1_2.jpg",
            "image3": "https://divineapi.com/admin/uploads/tarot_power/1_3.jpg"
        }
    }
}

Example Code Implementations

Below are example implementations in various programming environments.


cURL

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

Implementation Notes

Authentication:
Always include a valid Bearer token in your header for authorized access.

Error Handling:
Implement response handling for 400, 401, and 500 status codes for smooth execution.

Caching:
Cache frequent readings to improve performance and reduce redundant API calls.

UI Integration:
Display the three tarot card images (image, image2, image3) alongside the result text for an engaging reading experience.