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

Which Animal Are You Reading

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

Step by Step Which Animal Are You Reading API Postman Testing Integration


Supported Language Codes

Use the lan parameter in the request body to define your preferred 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

Guide:
Translate or localize responses with the DivineAPI Translator.


Endpoint

POST https://astroapi-5.divineapi.com/api/v2/which-animal-are-you-reading

Headers

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

Request Body

NameTypeDescription
api_key*StringYour DivineAPI Key (available in your dashboard).
full_name*StringUser’s full name. Example: Ram Kumar.
day*IntegerDate of birth. Example: 10.
month*IntegerMonth of birth. Example: 10.
year*IntegerYear of birth. Example: 2024.
lanStringLanguage code (default: en). How to update translator.

200: OK Successful

{
    "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"
        }
    }
}

Example Code Implementations

Below are example implementations in various programming environments.


cURL

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"'

NodeJS

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);
});

JavaScript jQuery AJAX

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);
});

Python

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)

Implementation Notes

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.