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

Yes or No Tarot

Introducing the Yes or No Tarot API, a powerful tool that provides instant, intuitive answers to pressing questions through tarot card interpretations. Integrate this API seamlessly into your website, application, or other digital platforms to deliver quick and insightful tarot-based responses to users seeking clarity.


Step by Step Yes or No Tarot API Postman Testing Integration

Step by Step Yes or No Tarot API Postman Testing Integration


Supported Language Codes

Use the lan field in the request body to specify the desired language for the response.

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

Guide:
For translations, ensure the translator is updated using DivineAPI Translator.


API Endpoint

POST https://astroapi-5.divineapi.com/api/v2/yes-or-no-tarot

Headers

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

Request Body

NameTypeDescription
api_key*StringYour DivineAPI key from the dashboard.
lanStringLanguage code as per the table above. Default is en.

200: OK Successful

{
    "success": 1,
    "data": {
        "prediction": {
            "card": "ACE OF CUPS",
            "category": "Upright",
            "yes_no": "YES",
            "result": "Aces are believed to symbolize a fresh start, and the Ace of Cups card is no exception. The emergence of an upright Ace of Cups is a sign that you should let go of the psychological issues that have been dragging you back and keeping you from enjoying life without worry. This card represents a chance to offer oneself a fresh start, which may be in the shape of a new relationship or even a new career. Based on what you've been dealing with, this card may represent an emotional or spiritual release. The existence of an Ace of Cups card indicates that it is time to turn over a fresh leaf.",
            "image": "https://divineapi.com/admin/uploads/yes_no_tarot/51_2.jpg",
            "image2": "https://divineapi.com/admin/uploads/yes_no_tarot/51.jpg"
        }
    }
}

Example Code Implementations

Below are example implementations in various programming environments.


cURL

curl --location 'https://astroapi-5.divineapi.com/api/v2/yes-or-no-tarot' \
--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/yes-or-no-tarot',
  '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/yes-or-no-tarot",
  "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/yes-or-no-tarot"

payload = {'api_key': '{Your API Key}',
'lan': 'en'}
files=[

]
headers = {
  'Authorization': 'Bearer {Your Auth Token}'
}

response = requests.request("POST", url, headers=headers, data=payload, files=files)

print(response.text)