Copy page
Copy page as Markdown for LLMs
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
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/wisdom-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). |
| card_image | Integer | Card Image (1/2/3), default: 1 |
| lan | String | Language code (default: en). How to update translator. |
{
"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."
}
}
}Below are example implementations in various programming environments.
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"'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);
});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);
});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)
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.