Copy page
Copy page as Markdown for LLMs
Introducing the Which Animal Are You Reading API, a fun and engaging tool that assigns users an animal based on their reading preferences. Easily integrate this playful feature into your website and applications, providing users with entertaining insights into their reading habits.
Step by Step Which Animal Are You Reading API Postman Testing Integration
Use the lan parameter in the request body to define your preferred response language.
| Code | Language |
|---|---|
| en | English |
| hi | Hindi |
| pt | Portuguese |
| fr | French |
| es | Spanish |
| ru | Russian |
| de | German |
| nl | Dutch |
| it | Italian |
| pl | Polish |
| ar | Arabic |
| ja | Japanese |
| zh | Chinese |
| tm | Tamil |
| tl | Telugu |
| tr | Turkish |
| ta | Filipino/Tagalog |
| bn | Bengali |
| ma | Marathi |
| ml | Malayalam |
| kn | Kannada |
Guide:
Translate or localize responses with the DivineAPI Translator.
POST https://astroapi-5.divineapi.com/api/v2/which-animal-are-you-reading
| Name | Type | Description |
|---|---|---|
| Authorization* | String | Your API Access Token. Example: Bearer {token} |
| Name | Type | Description |
|---|---|---|
| api_key* | String | Your DivineAPI Key (available in your dashboard). |
| full_name* | String | User’s full name. Example: Ram Kumar. |
| day* | Integer | Date of birth. Example: 10. |
| month* | Integer | Month of birth. Example: 10. |
| year* | Integer | Year of birth. Example: 2024. |
| lan | String | Language code (default: en). How to update translator. |
{
"success": 1,
"data": {
"prediction": {
"birth_number": 1,
"animal": "Barn Owl (Justice)",
"result": "When it comes to your inner animal, the Barn Owl, you embody a sense of calm and stability. You are at your best when you have predictability in your life and can rely on a solid foundation. However, you know that life is full of cycles, and that change is inevitable. As a result, you have developed the ability to simplify your life and make well-thought-out decisions, even when faced with uncertainty.\r\n\r\nWhile you value the advice and opinions of those around you, you ultimately trust your own judgment and intuition. This self-assuredness allows you to make decisions that are aligned with your values and goals. Your confidence in your own abilities is a strength that serves you well, both in your personal and professional life.\r\n\r\nIn your relationships, you know that success requires a balance of giving and taking. You are most fulfilled when you are able to share your love and support with others, while also receiving the same in return. You are not afraid of the hard work that goes into building strong, meaningful connections with others, and you are willing to invest the time and effort required to make these relationships thrive.\r\n\r\nStaying true to the things you love is a key component of your happiness and success. Whether it's a particular hobby, interest, or value system, you know that these things are essential to your well-being. When you are able to find a partner who shares these same values and passions, you have the potential to build a deep and fulfilling relationship that stands the test of time.\r\n\r\nEmbrace your inner Barn Owl, and all of the qualities that make you unique. By staying grounded and focused, while also remaining open to change and growth, you can create a life that is both stable and fulfilling. Trust in your own judgment, invest in your relationships, and stay true to the things you love, and you will find that success and happiness are within your reach.",
"image": "https://divineapi.com/admin/uploads/tarot-inner-animal/1.png"
}
}
}Below are example implementations in various programming environments.
curl --location 'https://astroapi-5.divineapi.com/api/v2/which-animal-are-you-reading' \
--header 'Authorization: Bearer {Your Auth Token}' \
--form 'api_key="{Your API Key}"' \
--form 'full_name="Ram Kumar"' \
--form 'day="10"' \
--form 'month="10"' \
--form 'year="2024"' \
--form 'lan="en"'var request = require('request');
var options = {
'method': 'POST',
'url': 'https://astroapi-5.divineapi.com/api/v2/which-animal-are-you-reading',
'headers': {
'Authorization': 'Bearer {Your Auth Token}'
},
formData: {
'api_key': '{Your API Key}',
'full_name': 'Ram Kumar',
'day': '10',
'month': '10',
'year': '2024',
'lan': 'en'
}
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});var form = new FormData();
form.append("api_key", "{Your API Key}");
form.append("full_name", "Ram Kumar");
form.append("day", "10");
form.append("month", "10");
form.append("year", "2024");
form.append("lan", "en");
var settings = {
"url": "https://astroapi-5.divineapi.com/api/v2/which-animal-are-you-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);
});import requests
url = "https://astroapi-5.divineapi.com/api/v2/which-animal-are-you-reading"
payload = {'api_key': '{Your API Key}',
'full_name': 'Ram Kumar',
'day': '10',
'month': '10',
'year': '2024',
'lan': 'en'}
headers = {
'Authorization': 'Bearer {Your Auth Token}'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
Authentication:
Include a valid Bearer token in every API call to authenticate successfully.
Error Handling:
Handle common response errors such as 400 (Bad Request), 401 (Unauthorized), and 500 (Server Error) gracefully.
Customization:
Use the full_name and birth details to personalize the response for each user.
UI Enhancement:
Display the animal image (image) and the reading text (result) creatively to engage users with visual appeal.