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

Made For Each Other Or Not

Introducing the Made For Each Other Or Not API, a powerful tool to assess and analyze compatibility between individuals. With this API, effortlessly determine the potential for harmonious connections and compatibility, enhancing matchmaking and relationship services.


Step by Step Made For Each Other Or Not API Postman Testing Integration

Step by Step Made For Each Other Or Not API Postman Testing Integration


API Endpoint for English

POST https://astroapi-5.divineapi.com/api/v3/made-for-each-other-or-not-reading

Guide: If you only need English, use this endpoint.


API Endpoint for other languages

POST https://astroapi-5-translator.divineapi.com/api/v3/made-for-each-other-or-not-reading

Guide: 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

CodeLanguage
enEnglish
hiHindi
zhChinese
jaJapanese
arArabic
ruRussian
ptPortuguese
esSpanish
frFrench
deGerman
itItalian
nlDutch
plPolish
trTurkish
ukUkrainian
huHungarian
grGreek
bnBengali
maMarathi
tmTamil
tlTelugu
mlMalayalam
knKannada
taFilipino/Tagalog
bahIndonesian

Guide: Ensure that your translator configuration is up to date via DivineAPI Translator.


Headers

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

Request Body

NameTypeDescription
api_key*StringYour DivineAPI Key (available in your dashboard).
lanStringLanguage code (default: en). How to update translator.
cards_countIntegerNumber of cards to display, eg: 1 (Allowed: 1/2/3/4/5, Default: 1)
card_imageIntegerCard image UI type, eg: 1 (Allowed: 1/2/3, Default: 1)

200: OK Successful

{
    "success": 1,
    "data": {
        "prediction": {
            "card": "THE SUN",
            "result": "As you bask in the glow of your dream relationship, it's important to take a moment to appreciate all that it brings to your life. From the excitement of new experiences to the warmth of companionship, your relationship is exactly what you hoped for and more.\r\n\r\nAs you begin to share your thoughts and feelings with your partner, it's important to approach each interaction with an open mind and a positive outlook. The Sun card represents joy and optimism, and it's crucial not to let small disappointments derail your positive energy. Instead, focus on the bigger picture and the many blessings that your relationship brings.\r\n\r\nIt's important to acknowledge that no relationship is perfect. Everyone has flaws and imperfections, and it's essential to accept them as a natural part of the human experience. While it's not helpful to deny the flaws of another person, it's also important not to dwell on them excessively. Instead, focus on the positive aspects of your relationship and work together to build a strong foundation based on mutual trust and respect.\r\n\r\nAs you continue to navigate your dream relationship, remember to stay true to yourself and your values. Communicate openly and honestly with your partner, and be willing to compromise and work through challenges together. With the right attitude and approach, your dream relationship can become a beautiful reality that brings joy, fulfillment, and happiness to your life.",
            "image": "https://divineapi.com/admin/uploads/tarot_friend_or_foe/20.png",
            "image2": "https://divineapi.com/admin/uploads/tarot_friend_or_foe/20_2.jpg",
            "image3": "https://divineapi.com/admin/uploads/tarot_friend_or_foe/20_3.jpg"
        }
    }
}

Example Code Implementations

Below are example implementations in various programming environments.


cURL

curl --location 'https://astroapi-5.divineapi.com/api/v2/made-for-each-other-or-not-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/made-for-each-other-or-not-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/made-for-each-other-or-not-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/made-for-each-other-or-not-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)
curl -X POST "https://astroapi-5.divineapi.com/api/v2/made-for-each-other-or-not-reading" \
  -H "Authorization: Bearer {Your Auth Token}" \
  --form 'api_key="{Your API Key}"' \
  --form 'lan="en"'
const FormData = require('form-data');
const axios = require('axios');

const form = new FormData();
form.append('api_key', '{Your API Key}');
form.append('lan', 'en');

const response = await axios.post('https://astroapi-5.divineapi.com/api/v2/made-for-each-other-or-not-reading', form, {
  headers: {
    ...form.getHeaders(),
    'Authorization': 'Bearer {Your Auth Token}',
  }
});

console.log(response.data);
import requests

url = "https://astroapi-5.divineapi.com/api/v2/made-for-each-other-or-not-reading"
headers = {
    "Authorization": "Bearer {Your Auth Token}",
}
payload = {
    "api_key": "{Your API Key}",
    "lan": "en",
}

response = requests.post(url, headers=headers, data=payload)

print(response.json())
const formData = new FormData();
formData.append('api_key', '{Your API Key}');
formData.append('lan', 'en');

const response = await fetch('https://astroapi-5.divineapi.com/api/v2/made-for-each-other-or-not-reading', {
  method: 'POST',
  headers: {
      'Authorization': "Bearer {Your Auth Token}",
    },
  body: formData,
});

const data = await response.json();
console.log(data);
<?php

use GuzzleHttp\Client;

$client = new Client();

$response = $client->request('POST', 'https://astroapi-5.divineapi.com/api/v2/made-for-each-other-or-not-reading', [
    'headers' => [
        'Authorization' => 'Bearer {Your Auth Token}',
    ],
    'multipart' => [
        ['name' => 'api_key', 'contents' => '{Your API Key}'],
        ['name' => 'lan', 'contents' => 'en'],
    ],
]);

echo $response->getBody();
package main

import (
    "bytes"
    "fmt"
    "mime/multipart"
    "net/http"
    "io"
)

func main() {
    body := &bytes.Buffer{}
    writer := multipart.NewWriter(body)
    writer.WriteField("api_key", "{Your API Key}")
    writer.WriteField("lan", "en")
    writer.Close()

    req, _ := http.NewRequest("POST", "https://astroapi-5.divineapi.com/api/v2/made-for-each-other-or-not-reading", body)
    req.Header.Set("Content-Type", writer.FormDataContentType())
    req.Header.Set("Authorization", "Bearer {Your Auth Token}")

    client := &http.Client{}
    resp, _ := client.Do(req)
    defer resp.Body.Close()

    body2, _ := io.ReadAll(resp.Body)
    fmt.Println(string(body2))
}
import okhttp3.*;
import java.io.IOException;

public class Main {
    public static void main(String[] args) throws IOException {
        OkHttpClient client = new OkHttpClient();

        RequestBody body = new MultipartBody.Builder()
            .setType(MultipartBody.FORM)
            .addFormDataPart("api_key", "{Your API Key}")
            .addFormDataPart("lan", "en")
            .build();

        Request request = new Request.Builder()
            .url("https://astroapi-5.divineapi.com/api/v2/made-for-each-other-or-not-reading")
            .post(body)
            .addHeader("Authorization", "Bearer {Your Auth Token}")
            .build();

        Response response = client.newCall(request).execute();
        System.out.println(response.body().string());
    }
}
import Foundation

let url = URL(string: "https://astroapi-5.divineapi.com/api/v2/made-for-each-other-or-not-reading")!
var request = URLRequest(url: url)
request.httpMethod = "POST"
request.setValue("Bearer {Your Auth Token}", forHTTPHeaderField: "Authorization")

let boundary = "Boundary-\(UUID().uuidString)"
request.setValue("multipart/form-data; boundary=\(boundary)", forHTTPHeaderField: "Content-Type")

var bodyData = Data()
bodyData.append("--\(boundary)\r\n".data(using: .utf8)!)
bodyData.append("Content-Disposition: form-data; name=\"api_key\"\r\n\r\n".data(using: .utf8)!)
bodyData.append("{Your API Key}\r\n".data(using: .utf8)!)
bodyData.append("--\(boundary)\r\n".data(using: .utf8)!)
bodyData.append("Content-Disposition: form-data; name=\"lan\"\r\n\r\n".data(using: .utf8)!)
bodyData.append("en\r\n".data(using: .utf8)!)
bodyData.append("--\(boundary)--\r\n".data(using: .utf8)!)
request.httpBody = bodyData

let task = URLSession.shared.dataTask(with: request) { data, response, error in
    if let data = data {
        print(String(data: data, encoding: .utf8) ?? "")
    }
}
task.resume()
import okhttp3.*

fun main() {
    val client = OkHttpClient()

    val body = MultipartBody.Builder()
        .setType(MultipartBody.FORM)
        .addFormDataPart("api_key", "{Your API Key}")
        .addFormDataPart("lan", "en")
        .build()

    val request = Request.Builder()
        .url("https://astroapi-5.divineapi.com/api/v2/made-for-each-other-or-not-reading")
        .post(body!!)
        .addHeader("Authorization", "Bearer {Your Auth Token}")
        .build()

    client.newCall(request).execute().use { response ->
        println(response.body?.string())
    }
}
using System;
using System.Net.Http;
using System.Threading.Tasks;

class Program {
    static async Task Main() {
        using var client = new HttpClient();
        client.DefaultRequestHeaders.Add("Authorization", "Bearer {Your Auth Token}");

        var content = new MultipartFormDataContent();
        content.Add(new StringContent("{Your API Key}"), "api_key");
        content.Add(new StringContent("en"), "lan");

        var response = await client.PostAsync("https://astroapi-5.divineapi.com/api/v2/made-for-each-other-or-not-reading", content);
        var result = await response.Content.ReadAsStringAsync();
        Console.WriteLine(result);
    }
}
Response 200
{
    "success": 1,
    "data": {
        "prediction": {
            "card": "THE WORLD",
            "result": "As you continue to contemplate the World card, you may find yourself drawn to the idea of moving on to the next chapter in your life. Your crush has undoubtedly captured your heart, but it's important to remember that there are other aspects of your life that also require your attention. This card is a reminder that life is a journey, and every chapter is an opportunity to grow and learn.\r\n\r\nTake some time to reflect on the journey that has led you to this point. Perhaps there were challenges along the way, but you persevered and arrived at this moment. Your crush is undoubtedly a significant part of your life right now, but don't forget to appreciate the other blessings in your life. From family and friends to career and personal growth, there is always something to be grateful for.\r\n\r\nAs you wait for the next chapter to unfold between you and your crush, try to maintain a sense of balance in your life. Pursue your passions, spend time with loved ones, and take care of yourself. Remember, the World card represents the completion of one cycle and the beginning of another. Embrace the journey and look forward to what lies ahead.",
            "image": "https://divineapi.com/admin/uploads/tarot_friend_or_foe/22.png",
            "image2": "https://divineapi.com/admin/uploads/tarot_friend_or_foe/22_2.jpg",
            "image3": "https://divineapi.com/admin/uploads/tarot_friend_or_foe/22_3.jpg"
        }
    }
}