This API provides a Yes or No answer to a question asked by the user, based on the tarot cards. The response includes a brief description of the card and its interpretation, providing guidance and insights to the user on their situation.
Tarot ID | Card Name |
---|---|
1 | The Magician |
2 | The Hierophant |
3 | The Emperor |
4 | Death |
5 | The Hermit |
6 | The Devil |
7 | Temperance |
8 | The Fool |
9 | The Chariot |
10 | Justice |
11 | The Judgment |
12 | Strength |
13 | The Empress |
14 | The Wheel of Fortune |
15 | The Star |
16 | The Moon |
17 | The Lovers |
18 | The Sun |
19 | The Hanged Man |
20 | The Tower |
21 | The World |
22 | The High Priestess |
Params | Data type | Descriptions |
tarot_id required | int | eg: 1 |
{
"name": "The Magician",
"value": "Yes",
"description": "It's time to manifest your intentions and put them into action. This card signifies the meeting of the material and spiritual realms. So if you're thinking to put your ideas into action, now is the time. The Magician is associated with planet Mercury. Mercury is the winged messenger and travels between the gods and humanity. So if you have a message to drop, be sure that heavens are listening and you shall be answered! This card is all about manifestations, spiritual rebirth and tapping into your infinite potential. So gather your ideas and see them come to reality."
}
var api = 'yes_no_tarot';
var userId = '<Your User Id>';
var apiKey = '<Your Api Key>';
var language = '<Your Language>' // By default it is set to en
var data = {
tarot_id: 1,
};
var auth = "Basic " + new Buffer(userId + ":" + apiKey).toString("base64");
var request = $.ajax({
url: "https://json.astrologyapi.com/v1/"+api,
method: "POST",
dataType:'json',
headers: {
"authorization": auth,
"Content-Type":'application/json',
"Accept-Language": language
},
data:JSON.stringify(data)
});
request.then( function(resp){
console.log(resp);
}, function(err){
console.log(err);
});