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

Spiritual Compatibility

Examine spiritual connections with Synastry API, focusing on the planetary aspects that shape spiritual unity and growth.


Step by Step Spiritual Compatibility API Postman Testing Integration

Testing Guide URL


Use Translator for Other Languages

Support Article URL: Translating a Natal API into a Different Language

CodeLanguage
enEnglish
hiHindi
ptPortuguese
frFrench
deGerman
jaJapanese
trTurkish
ruRussian
itItalian
esSpanish
nlDutch
plPolish

Guide: These languages are supported by this API. You can use them by passing "lan" in the body with the corresponding value.


House System Codes

Support Article URL: How to Change the House System Code in Natal Astrology

CodeSystem Name
PPlacidus
KKoch
RRegiomontanus
CCampanus
AEqual
WEqual, Whole Sign
NWhole Sign, Aries = 1st House
XAxial Rotation System / Meridian Houses
TPolich/Page ("Topocentric")
MMorinus
OPorphyry
BAlcabitius
DEqual / MC
EEqual = A
FCarter Poli-Equatorial
G36 Gauquelin Sectors
HHorizon / Azimuth
ISunshine
iSunshine Alternative
LPullen
S-delta-
QPullen
S-ratio-
SSripati
UKrusinski-Pisa-Goelzer
VEqual Vehlow
YAPC Houses

Note: The default house system used is P – Placidus.


API Endpoint

POST https://astroapi-4.divineapi.com/western-api/v2/synastry/spiritual-compatibility

Response: Returns Spiritual Compatibility in response.


Headers

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

Request Body

NameTypeDescription
api_key*StringYour API key
p1_full_name*StringP1's full name (e.g., Rahul Kumar)
p1_day*IntegerP1's date of birth (e.g., 24)
p1_month*IntegerP1's month of birth (e.g., 05)
p1_year*IntegerP1's year of birth (e.g., 1998)
p1_hour*IntegerP1's hour of birth (e.g., 14)
p1_min*IntegerP1's minute of birth (e.g., 40)
p1_sec*IntegerP1's second (e.g., 43)
p1_gender*StringP1's gender (e.g., male)
p1_place*StringP1's birthplace (e.g., New Delhi)
p1_lat*FloatP1's latitude (e.g., 28.7041)
p1_lon*FloatP1's longitude (e.g., 77.1025)
p1_tzone*FloatP1's timezone (e.g., 5.5). Timezone List
p2_full_name*StringP2's full name (e.g., Simran Kumari)
p2_day*IntegerP2's date of birth (e.g., 24)
p2_month*IntegerP2's month of birth (e.g., 05)
p2_year*IntegerP2's year of birth (e.g., 1998)
p2_hour*IntegerP2's hour of birth (e.g., 14)
p2_min*IntegerP2's minute of birth (e.g., 40)
p2_sec*IntegerP2's second (e.g., 43)
p2_gender*StringP2's gender (e.g., female)
p2_place*StringP2's birthplace (e.g., New Delhi)
p2_lat*FloatP2's latitude (e.g., 28.7041)
p2_lon*FloatP2's longitude (e.g., 77.1025)
p2_tzone*FloatP2's timezone (e.g., 5.5). Timezone List
lanStringLanguage code (default: en)
house_systemStringHouse system code (default: P)

200: OK Spiritual Compatibility fetched successfully

{
    "success": 1,
    "data": {
        "content": [],
        "message": [
            "Sexuality may connect two bodies but Spirituality connects souls. Spiritual compatibility is something that has become the newest trend in relationships. Unfortunately the count on spiritual compatibility looks poor between Rahul Kumar and Simran Kumari, due to the factors like Sun Moon aspects, Jupiter aspects, 12th house overlaps and north node alignment which are missing in the synastry chart. However spirituality comes with practice and when there is care and respect in the relationship the spirituality can always spark."
        ]
    }
}

Example Code Implementations

Below are example implementations in various programming environments.


cURL

curl --location 'https://astroapi-4.divineapi.com/western-api/v2/synastry/spiritual-compatibility' \
--header 'Authorization: Bearer {Your Auth Token}' \
--form 'api_key="{Your API Key}"' \
--form 'p1_full_name="Rahul Kumar"' \
--form 'p1_day="24"' \
--form 'p1_month="05"' \
--form 'p1_year="1998"' \
--form 'p1_hour="14"' \
--form 'p1_min="40"' \
--form 'p1_sec="43"' \
--form 'p1_gender="male"' \
--form 'p1_place="New Delhi"' \
--form 'p1_lat="28.7041"' \
--form 'p1_lon="77.1025"' \
--form 'p1_tzone="5.5"' \
--form 'p2_full_name="Simran Kumari"' \
--form 'p2_day="24"' \
--form 'p2_month="05"' \
--form 'p2_year="1998"' \
--form 'p2_hour="14"' \
--form 'p2_min="40"' \
--form 'p2_sec="43"' \
--form 'p2_gender="female"' \
--form 'p2_place="New Delhi"' \
--form 'p2_lat="28.7041"' \
--form 'p2_lon="77.1025"' \
--form 'p2_tzone="5.5"' \
--form 'lan="en"'

NodeJS

var request = require('request');
var options = {
  'method': 'POST',
  'url': 'https://astroapi-4.divineapi.com/western-api/v2/synastry/spiritual-compatibility',
  'headers': {
    'Authorization': 'Bearer {Your Auth Token}'
  },
  formData: {
    'api_key': '{Your API Key}',
    'p1_full_name': 'Rahul Kumar',
    'p1_day': '24',
    'p1_month': '05',
    'p1_year': '1998',
    'p1_hour': '14',
    'p1_min': '40',
    'p1_sec': '43',
    'p1_gender': 'male',
    'p1_place': 'New Delhi',
    'p1_lat': '28.7041',
    'p1_lon': '77.1025',
    'p1_tzone': '5.5',
    'p2_full_name': 'Simran Kumari',
    'p2_day': '24',
    'p2_month': '05',
    'p2_year': '1998',
    'p2_hour': '14',
    'p2_min': '40',
    'p2_sec': '43',
    'p2_gender': 'female',
    'p2_place': 'New Delhi',
    'p2_lat': '28.7041',
    'p2_lon': '77.1025',
    'p2_tzone': '5.5',
    '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("p1_full_name", "Rahul Kumar");
form.append("p1_day", "24");
form.append("p1_month", "05");
form.append("p1_year", "1998");
form.append("p1_hour", "14");
form.append("p1_min", "40");
form.append("p1_sec", "43");
form.append("p1_gender", "male");
form.append("p1_place", "New Delhi");
form.append("p1_lat", "28.7041");
form.append("p1_lon", "77.1025");
form.append("p1_tzone", "5.5");
form.append("p2_full_name", "Simran Kumari");
form.append("p2_day", "24");
form.append("p2_month", "05");
form.append("p2_year", "1998");
form.append("p2_hour", "14");
form.append("p2_min", "40");
form.append("p2_sec", "43");
form.append("p2_gender", "female");
form.append("p2_place", "New Delhi");
form.append("p2_lat", "28.7041");
form.append("p2_lon", "77.1025");
form.append("p2_tzone", "5.5");
form.append("lan", "en");

var settings = {
  "url": "https://astroapi-4.divineapi.com/western-api/v2/synastry/spiritual-compatibility",
  "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-4.divineapi.com/western-api/v2/synastry/spiritual-compatibility"

payload = {'api_key': '{Your API Key}',
'p1_full_name': 'Rahul Kumar',
'p1_day': '24',
'p1_month': '05',
'p1_year': '1998',
'p1_hour': '14',
'p1_min': '40',
'p1_sec': '43',
'p1_gender': 'male',
'p1_place': 'New Delhi',
'p1_lat': '28.7041',
'p1_lon': '77.1025',
'p1_tzone': '5.5',
'p2_full_name': 'Simran Kumari',
'p2_day': '24',
'p2_month': '05',
'p2_year': '1998',
'p2_hour': '14',
'p2_min': '40',
'p2_sec': '43',
'p2_gender': 'female',
'p2_place': 'New Delhi',
'p2_lat': '28.7041',
'p2_lon': '77.1025',
'p2_tzone': '5.5',
'lan': 'en'}

headers = {
  'Authorization': 'Bearer {Your Auth Token}'
}

response = requests.request("POST", url, headers=headers, data=payload)

print(response.text)

Implementation Notes

Use Authorization: Bearer {Your Auth Token} and {Your API Key} securely; never expose them in client-side code.

Provide date, time, and coordinates in correct numeric formats; use decimal timezone values (e.g., 5.5).

Check HTTP status codes, log responses, and handle 4xx/5xx errors gracefully.

Defaults are lan=en and house_system=P; test via Postman first and always use HTTPS for secure communication.