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

Daily Tarot API

Introducing the Daily Tarot API, your gateway to offering personalized daily tarot card readings. This API allows seamless integration of mystical tarot insights into your websites and applications, helping users receive spiritual guidance and motivation for their day ahead.


Step by Step Daily Tarot API Postman Testing Integration

Step by Step Daily Tarot API Postman Testing Integration


Supported Language Codes

Use the lan field in the request body to specify the 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
huHungarian
ukUkrainian

Guide:
For multilingual responses, ensure your translator is active via DivineAPI Translator.


API Endpoint

POST https://astroapi-5.divineapi.com/api/v2/daily-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": {
        "card": "SIX OF WANDS",
        "category": "Reverse",
        "career": "This reversed card solely depicts your failure. However, failure can come in many ways. It can come in the form of a small conflict at your workplace where you might get accused of something you have never done. Or there can be situation where you will be asked for a pay raise but later you get to know you didn't meet the criteria. So all the ways predict that you might eithre become a victim or get accused. ",
        "love": "This card depicts that you are not stringy mentally. You are striving hard to find true love. But sometimes you fail when you think you are about to reach the peak. This card creates such situations that you will find difficulty in meeting your soulmate. Due to this, you are likely to become weak. But being optimistic and confident will add to your fortune. ",
        "finance": "This card reversed depicts a complete failure in your life. You should be very careful and take an account of your properties. This is because a single negative event can turn your life upside down. Track the history of your transactions and tell your loved ones about the things happening around you. This will help you in certain situations. Family is the one that stands with you in difficult times. ",
        "image": "https://divineapi.com/admin/uploads/daily_tarot/14_2.jpg",
        "image2": "https://divineapi.com/admin/uploads/daily_tarot/14.jpg"
    }
}

Example Code Implementations

Below are example implementations in various programming environments.


cURL

curl --location 'https://astroapi-5.divineapi.com/api/v2/daily-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/daily-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/daily-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/daily-tarot"

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)