Know Your Friend Reading
Introducing the Know Your Friend Reading API, an interactive way to uncover deeper insights into friendships and compatibility. This API helps users understand dynamics, strengths, and growth areas in their relationships — perfect for applications focused on connection and personal discovery.
Step by Step Know Your Friend Reading API Postman Testing Integration
Step by Step Know Your Friend Reading API Postman Testing Integration
API Endpoint for English
POST https://astroapi-5.divineapi.com/api/v3/know-your-friend-readingGuide: If you only need English, use this endpoint.
API Endpoint for other languages
POST https://astroapi-5-translator.divineapi.com/api/v3/know-your-friend-readingGuide: If you want the response in any other language use this translator endpoint.
Supported Language Codes
Use the lan parameter in the request body to define your preferred 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: Ensure that your translator configuration is up to date via 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 (found on your dashboard). |
| lan | String | Language code (default: en). How to update translator. |
| cards_count | Integer | Number of cards to display, eg: 1 (Allowed: 1/2/3/4/5, Default: 1) |
| card_image | Integer | Card image UI type, eg: 1 (Allowed: 1/2/3, Default: 1) |
200: OK Successful
{
"success": 1,
"data": {
"prediction": {
"card": "THE CHARIOT",
"result": "This person's dynamic and go-getter attitude is contagious, and you will find yourself drawn to their ambitious nature. The Chariot symbolizes victory, and this friend is always striving for success in all aspects of their life. They will encourage you to be more assertive and self-assured in your own pursuits. Their energy and enthusiasm will inspire you to take risks and follow your dreams. This friend is also reliable and dependable, and you can always count on them to be there for you when you need support.\r\n\r\nYou might be wondering how you can keep up with such an energetic friend, but don't worry. The Chariot's energy is not about wearing you down but lifting you up. Your friend's drive and determination will motivate you to achieve your own goals and aspirations. They may also be a good mentor or coach, guiding you towards success and helping you overcome obstacles. Remember to show your appreciation for this friend, as they will always be an invaluable source of inspiration and motivation in your life.",
"image": "https://divineapi.com/admin/uploads/tarot_friend_or_foe/8.png",
"image2": "https://divineapi.com/admin/uploads/tarot_friend_or_foe/8_2.jpg",
"image3": "https://divineapi.com/admin/uploads/tarot_friend_or_foe/8_3.jpg"
}
}
}Example Code Implementations
Below are example implementations in various programming environments.
cURL
curl --location 'https://astroapi-5.divineapi.com/api/v3/know-your-friend-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/v3/know-your-friend-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/v3/know-your-friend-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/v3/know-your-friend-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)