Copy page
Copy page as Markdown for LLMs
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
Use the lan parameter in the request body to define your preferred response language.
| Code | Language |
|---|---|
| en | English |
| hi | Hindi |
| pt | Portuguese |
| fr | French |
| es | Spanish |
| ru | Russian |
| de | German |
| nl | Dutch |
| it | Italian |
| pl | Polish |
| ar | Arabic |
| ja | Japanese |
| zh | Chinese |
| tm | Tamil |
| tl | Telugu |
| tr | Turkish |
| ta | Filipino/Tagalog |
| bn | Bengali |
| ma | Marathi |
| ml | Malayalam |
| kn | Kannada |
Guide:
Translate or localize responses with the DivineAPI Translator.
POST https://astroapi-5.divineapi.com/api/v2/power-life-reading
| Name | Type | Description |
|---|---|---|
| Authorization* | String | Your API Access Token. Example: Bearer {token} |
| Name | Type | Description |
|---|---|---|
| api_key* | String | Your DivineAPI Key (available in your dashboard). |
| lan | String | Language code (default: en). How to update translator. |
{
"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"
}
}
}Below are example implementations in various programming environments.
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"'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);
});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);
});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)
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.