Coffee Cup Reading API
Introducing the Coffee Cup Reading API, a fascinating tool that brings the art of tasseography (coffee cup divination) into your website or application. This API delivers symbolic interpretations and spiritual insights drawn from coffee grounds, offering users a mystical and reflective experience.
Step by Step Coffee Cup Reading API Postman Testing Integration
Step by Step Coffee Cup Reading API Postman Testing Integration
API Endpoint for English
POST https://astroapi-5.divineapi.com/api/v2/coffee-cup-readingGuide: If you only need English, use this endpoint.
API Endpoint for other languages
POST https://astroapi-5-translator.divineapi.com/api/v2/coffee-cup-readingGuide: If you want the response in any other language use this translator endpoint.
Supported Language Codes
Use the lan field in the request body to specify the desired response language.
Supported Reference Article:
https://support.divineapi.com/general-api-support/translating-apis-into-a-different-language
| Code | Language |
|---|---|
| en | English |
| hi | Hindi |
| zh | Chinese |
| ja | Japanese |
| ar | Arabic |
| ru | Russian |
| pt | Portuguese |
| es | Spanish |
| fr | French |
| de | German |
| it | Italian |
| nl | Dutch |
| pl | Polish |
| tr | Turkish |
| uk | Ukrainian |
| hu | Hungarian |
| gr | Greek |
| bn | Bengali |
| ma | Marathi |
| tm | Tamil |
| tl | Telugu |
| ml | Malayalam |
| kn | Kannada |
| ta | Filipino/Tagalog |
| bah | Indonesian |
Guide: To manage translations and localization, update settings using the DivineAPI Translator.
Headers
| Name | Type | Description |
|---|---|---|
| Authorization* | String | Your API Access Token. Example: Bearer {token} |
Request Body
| Name | Type | Description |
|---|---|---|
| api_key* | String | Your DivineAPI key, available from your dashboard. |
| lan | String | Language code as per the table above. Default is en. |
200: OK Successful
{
"success": 1,
"data": {
"prediction": {
"present_title": "Mountain",
"present_image": "https://divineapi.com/public/api-assets/coffee_cup/67.png",
"present_content": "While facing your deepest fears in pursuit of achieving more and more, a point arrives in the journey when you are confronted with the mountains. Mountains in a coffee cup reading are representative of hurdles that limit seeking your movement. But only if you keep walking further with the right vision, can you be able to turn the same hurdles into wonderful possibilities for yourself. ",
"near_future_title": "Aircrafts",
"near_future_image": "https://divineapi.com/public/api-assets/coffee_cup/24.png",
"near_future_content": "Vacations, travel, and journeys are usually determined by aviation. Expect to be whisked away to a vacation spot. You're in for some new adventures. This could also indicate that something positive is about to happen in your life. You may go through a life-altering transformation within. With wide arms, embrace the change.",
"distant_future_title": "Crown",
"distant_future_image": "https://divineapi.com/public/api-assets/coffee_cup/43.png",
"distant_future_content": "That studded jewelry on your head may be seen as a prize for a position, but it is more than simply a favor; it is a blessing disguised. The concealment is in the number of duties that the ornament carries. It is more than simply a beautiful identity; it is a loaded stone of expectations and obligations that calls humanity's destiny into question. The true difficulty is to remain grounded in the face of this high-headed element."
}
}
}Example Code Implementations
Below are example implementations in various programming environments.
cURL
curl --location 'https://astroapi-5.divineapi.com/api/v2/coffee-cup-reading' \
--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/coffee-cup-reading',
'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/coffee-cup-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/coffee-cup-reading"
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)