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


API Endpoint for English

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

Guide: If you only need English, use this endpoint.


API Endpoint for other languages

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

Guide: If you want the response in any other language use this translator endpoint.


Supported Language Codes

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

Supported Reference Article:
https://support.divineapi.com/general-api-support/translating-apis-into-a-different-language

CodeLanguage
enEnglish
hiHindi
zhChinese
jaJapanese
arArabic
ruRussian
ptPortuguese
esSpanish
frFrench
deGerman
itItalian
nlDutch
plPolish
trTurkish
ukUkrainian
huHungarian
grGreek
bnBengali
maMarathi
tmTamil
tlTelugu
mlMalayalam
knKannada
taFilipino/Tagalog
bahIndonesian

Guide: Ensure that your translator configuration is up to date via DivineAPI Translator.


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)
curl -X POST "https://astroapi-5.divineapi.com/api/v2/wisdom-reading" \
  -H "Authorization: Bearer {Your Auth Token}" \
  --form 'api_key="{Your API Key}"' \
  --form 'card_image="1"' \
  --form 'lan="en"'
const FormData = require('form-data');
const axios = require('axios');

const form = new FormData();
form.append('api_key', '{Your API Key}');
form.append('card_image', '1');
form.append('lan', 'en');

const response = await axios.post('https://astroapi-5.divineapi.com/api/v2/wisdom-reading', form, {
  headers: {
    ...form.getHeaders(),
    'Authorization': 'Bearer {Your Auth Token}',
  }
});

console.log(response.data);
import requests

url = "https://astroapi-5.divineapi.com/api/v2/wisdom-reading"
headers = {
    "Authorization": "Bearer {Your Auth Token}",
}
payload = {
    "api_key": "{Your API Key}",
    "card_image": "1",
    "lan": "en",
}

response = requests.post(url, headers=headers, data=payload)

print(response.json())
const formData = new FormData();
formData.append('api_key', '{Your API Key}');
formData.append('card_image', '1');
formData.append('lan', 'en');

const response = await fetch('https://astroapi-5.divineapi.com/api/v2/wisdom-reading', {
  method: 'POST',
  headers: {
      'Authorization': "Bearer {Your Auth Token}",
    },
  body: formData,
});

const data = await response.json();
console.log(data);
<?php

use GuzzleHttp\Client;

$client = new Client();

$response = $client->request('POST', 'https://astroapi-5.divineapi.com/api/v2/wisdom-reading', [
    'headers' => [
        'Authorization' => 'Bearer {Your Auth Token}',
    ],
    'multipart' => [
        ['name' => 'api_key', 'contents' => '{Your API Key}'],
        ['name' => 'card_image', 'contents' => '1'],
        ['name' => 'lan', 'contents' => 'en'],
    ],
]);

echo $response->getBody();
package main

import (
    "bytes"
    "fmt"
    "mime/multipart"
    "net/http"
    "io"
)

func main() {
    body := &bytes.Buffer{}
    writer := multipart.NewWriter(body)
    writer.WriteField("api_key", "{Your API Key}")
    writer.WriteField("card_image", "1")
    writer.WriteField("lan", "en")
    writer.Close()

    req, _ := http.NewRequest("POST", "https://astroapi-5.divineapi.com/api/v2/wisdom-reading", body)
    req.Header.Set("Content-Type", writer.FormDataContentType())
    req.Header.Set("Authorization", "Bearer {Your Auth Token}")

    client := &http.Client{}
    resp, _ := client.Do(req)
    defer resp.Body.Close()

    body2, _ := io.ReadAll(resp.Body)
    fmt.Println(string(body2))
}
import okhttp3.*;
import java.io.IOException;

public class Main {
    public static void main(String[] args) throws IOException {
        OkHttpClient client = new OkHttpClient();

        RequestBody body = new MultipartBody.Builder()
            .setType(MultipartBody.FORM)
            .addFormDataPart("api_key", "{Your API Key}")
            .addFormDataPart("card_image", "1")
            .addFormDataPart("lan", "en")
            .build();

        Request request = new Request.Builder()
            .url("https://astroapi-5.divineapi.com/api/v2/wisdom-reading")
            .post(body)
            .addHeader("Authorization", "Bearer {Your Auth Token}")
            .build();

        Response response = client.newCall(request).execute();
        System.out.println(response.body().string());
    }
}
import Foundation

let url = URL(string: "https://astroapi-5.divineapi.com/api/v2/wisdom-reading")!
var request = URLRequest(url: url)
request.httpMethod = "POST"
request.setValue("Bearer {Your Auth Token}", forHTTPHeaderField: "Authorization")

let boundary = "Boundary-\(UUID().uuidString)"
request.setValue("multipart/form-data; boundary=\(boundary)", forHTTPHeaderField: "Content-Type")

var bodyData = Data()
bodyData.append("--\(boundary)\r\n".data(using: .utf8)!)
bodyData.append("Content-Disposition: form-data; name=\"api_key\"\r\n\r\n".data(using: .utf8)!)
bodyData.append("{Your API Key}\r\n".data(using: .utf8)!)
bodyData.append("--\(boundary)\r\n".data(using: .utf8)!)
bodyData.append("Content-Disposition: form-data; name=\"card_image\"\r\n\r\n".data(using: .utf8)!)
bodyData.append("1\r\n".data(using: .utf8)!)
bodyData.append("--\(boundary)\r\n".data(using: .utf8)!)
bodyData.append("Content-Disposition: form-data; name=\"lan\"\r\n\r\n".data(using: .utf8)!)
bodyData.append("en\r\n".data(using: .utf8)!)
bodyData.append("--\(boundary)--\r\n".data(using: .utf8)!)
request.httpBody = bodyData

let task = URLSession.shared.dataTask(with: request) { data, response, error in
    if let data = data {
        print(String(data: data, encoding: .utf8) ?? "")
    }
}
task.resume()
import okhttp3.*

fun main() {
    val client = OkHttpClient()

    val body = MultipartBody.Builder()
        .setType(MultipartBody.FORM)
        .addFormDataPart("api_key", "{Your API Key}")
        .addFormDataPart("card_image", "1")
        .addFormDataPart("lan", "en")
        .build()

    val request = Request.Builder()
        .url("https://astroapi-5.divineapi.com/api/v2/wisdom-reading")
        .post(body!!)
        .addHeader("Authorization", "Bearer {Your Auth Token}")
        .build()

    client.newCall(request).execute().use { response ->
        println(response.body?.string())
    }
}
using System;
using System.Net.Http;
using System.Threading.Tasks;

class Program {
    static async Task Main() {
        using var client = new HttpClient();
        client.DefaultRequestHeaders.Add("Authorization", "Bearer {Your Auth Token}");

        var content = new MultipartFormDataContent();
        content.Add(new StringContent("{Your API Key}"), "api_key");
        content.Add(new StringContent("1"), "card_image");
        content.Add(new StringContent("en"), "lan");

        var response = await client.PostAsync("https://astroapi-5.divineapi.com/api/v2/wisdom-reading", content);
        var result = await response.Content.ReadAsStringAsync();
        Console.WriteLine(result);
    }
}
Response 200
{
    "success": 1,
    "data": {
        "prediction": {
            "card1": "THE EMPEROR",
            "card2": "THE MOON",
            "card1_image": "https://divineapi.com/admin/uploads/tarot-zen/5.png",
            "card2_image": "https://divineapi.com/admin/uploads/tarot-zen/19.png",
            "ying": "It's natural to want stability and security in your life, but it's important to recognize that sometimes your desires might not align with the actions you need to take. The Emperor in the yin position of your reading may be a sign that you need to take a step back and reassess your priorities. What is it that you truly want in life? What are the things that will make you feel secure and stable? Once you have identified these, you can start working towards them.\r\n\r\nBut remember, it's not always wise to act impulsively. This card reminds you that careful planning and strategy can go a long way in achieving your goals. Take the time to think through your actions and consider the potential consequences before you make any big decisions. This will help you avoid making mistakes that could hinder your progress in the long run.\r\n\r\nBy focusing on planning and strategy, you will be able to make progress towards your goals in a steady and sustainable way. Don't rush into things; take your time and trust that you will reach your destination eventually. With the right mindset and approach, you can create the stability and security that you crave.",
            "yang": "If you have drawn the Moon card in your reading, it's a sign that there may be many things hidden in your life that you are not aware of. This could be related to communication issues, where important information is being kept from you or you are not expressing yourself fully to others. In such situations, it's important to trust your instincts and be open to trusting others, even if it means stepping out of your comfort zone.\r\n\r\nThe Moon's energy is one of mystery and uncertainty, and it can be easy to get lost in your own thoughts and emotions. However, by being open and honest with yourself and others, you can lighten the load and gain a deeper understanding of your situation. Whether it's a matter of love or money, having an open and honest conversation can make all the difference in the world.\r\n\r\nBy trusting your instincts and being open to your heart, anything is possible. It may be uncomfortable to have difficult conversations or to trust others, but the rewards can be truly transformative. You may be surprised at how much progress you can make by simply being open and honest with yourself and those around you.\r\n\r\nRemember, the Moon's energy is one of deep intuition and emotional intelligence. By tuning into your instincts and trusting in the power of communication, you can navigate even the most challenging situations with ease and grace. So take some time to reflect on your situation, trust your instincts, and open your heart to the possibilities that lie ahead."
        }
    }
}