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

Aspect Table

Explore Synastry API's Aspect Table feature for nuanced relationship insights, detailing precise planetary aspects and angles to illuminate compatibility through in-depth astrological analysis.


Step by Step Aspect Table API Postman Testing Integration

View Full Guide on Support Portal


Use Translator for Other Languages

Support Article URL: https://support.divineapi.com/general-api-support/translating-a-natal-apis-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 value of the language.


House System Codes

House System Codes Support Article URL: https://support.divineapi.com/western-astrology-apis/how-to-change-the-house-system-code-in-natal-astrology

CodeSystem/Notes
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/v1/synastry/aspect

Returns: Aspect Table 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, ex: Rahul Kumar
p1_day*IntegerP1's date of birth, eg: 24
p1_month*IntegerP1's month of birth, eg: 05
p1_year*IntegerP1's year of birth, eg: 1998
p1_hour*IntegerP1's hour, eg: 14
p1_min*IntegerP1's minute, eg: 40
p1_sec*IntegerP1's second, eg: 43
p1_gender*StringP1's gender, ex: male
p1_place*StringP1's birth place, ex: New Delhi
p1_lat*FloatP1's latitude, eg: 28.7041
p1_lon*FloatP1's longitude, eg: 77.1025
p1_tzone*FloatP1's timezone, eg: 5.5 Timezone List
p2_full_name*StringP2's Full Name, ex: Simran Kumari
p2_day*IntegerP2's date of birth, eg: 24
p2_month*IntegerP2's month of birth, eg: 05
p2_year*IntegerP2's year of birth, eg: 1998
p2_hour*IntegerP2's hour, eg: 14
p2_min*IntegerP2's minute, eg: 40
p2_sec*IntegerP2's second, eg: 43
p2_gender*StringP2's gender, ex: male
p2_place*StringP2's birth place, ex: New Delhi
p2_lat*FloatP2's latitude, eg: 28.7041
p2_lon*FloatP2's longitude, eg: 77.1025
p2_tzone*FloatP2's timezone, eg: 5.5 Timezone List
lanStringLanguage en/hi, default en
house_systemStringHouse system code, default — P (Placidus)

200: OK Aspect Table Fetched Successfully

The following is a sample 200: OK JSON response structure for the Aspect Table API. It contains both p1_p2_aspect and p2_p1_aspect objects, detailing all planetary aspects between two individuals.

{
    "success": 1,
    "data": {
        "p1_p2_aspect": {
            "planetOne": "Rahul Kumar's planet",
            "planetTwo": "Simran Kumari's planet",
            "aspects": [
                {
                    "planetOne": "Ascendant",
                    "planetTwo": "Ascendant",
                    "orb": 0,
                    "aspect": "Conjunction",
                    "aspect_type": "Intense"
                },
                {
                    "planetOne": "Ascendant",
                    "planetTwo": "Neptune",
                    "orb": 3.71,
                    "aspect": "Trine",
                    "aspect_type": "Easy"
                },
                {
                    "planetOne": "Ascendant",
                    "planetTwo": "Pluto",
                    "orb": 1.03,
                    "aspect": "Sextile",
                    "aspect_type": "Mildly Easy"
                },
                {
                    "planetOne": "Sun",
                    "planetTwo": "Ascendant",
                    "orb": 2.76,
                    "aspect": "Trine",
                    "aspect_type": "Easy"
                },
                {
                    "planetOne": "Sun",
                    "planetTwo": "Sun",
                    "orb": 0,
                    "aspect": "Conjunction",
                    "aspect_type": "Intense"
                },
                {
                    "planetOne": "Sun",
                    "planetTwo": "Mars",
                    "orb": 2.85,
                    "aspect": "Conjunction",
                    "aspect_type": "Intense"
                },
                {
                    "planetOne": "Sun",
                    "planetTwo": "North node",
                    "orb": 3.12,
                    "aspect": "Square",
                    "aspect_type": "Hard"
                },
                {
                    "planetOne": "Sun",
                    "planetTwo": "Pluto",
                    "orb": 3.79,
                    "aspect": "Opposition",
                    "aspect_type": "Hard"
                },
                {
                    "planetOne": "Moon",
                    "planetTwo": "Moon",
                    "orb": 0,
                    "aspect": "Conjunction",
                    "aspect_type": "Intense"
                },
                {
                    "planetOne": "Moon",
                    "planetTwo": "Mercury",
                    "orb": 1.72,
                    "aspect": "Conjunction",
                    "aspect_type": "Intense"
                },
                {
                    "planetOne": "Moon",
                    "planetTwo": "North node",
                    "orb": 6.97,
                    "aspect": "Trine",
                    "aspect_type": "Easy"
                },
                {
                    "planetOne": "Moon",
                    "planetTwo": "MC",
                    "orb": 7.09,
                    "aspect": "Sextile",
                    "aspect_type": "Mildly Easy"
                },
                {
                    "planetOne": "Moon",
                    "planetTwo": "Chiron",
                    "orb": 1.18,
                    "aspect": "Opposition",
                    "aspect_type": "Hard"
                },
                {
                    "planetOne": "Mars",
                    "planetTwo": "Ascendant",
                    "orb": 5.6,
                    "aspect": "Trine",
                    "aspect_type": "Easy"
                },
                {
                    "planetOne": "Mars",
                    "planetTwo": "Sun",
                    "orb": 2.85,
                    "aspect": "Conjunction",
                    "aspect_type": "Intense"
                },
                {
                    "planetOne": "Mars",
                    "planetTwo": "Mars",
                    "orb": 0,
                    "aspect": "Conjunction",
                    "aspect_type": "Intense"
                },
                {
                    "planetOne": "Mars",
                    "planetTwo": "North node",
                    "orb": 5.97,
                    "aspect": "Square",
                    "aspect_type": "Hard"
                },
                {
                    "planetOne": "Mercury",
                    "planetTwo": "Moon",
                    "orb": 1.72,
                    "aspect": "Conjunction",
                    "aspect_type": "Intense"
                },
                {
                    "planetOne": "Mercury",
                    "planetTwo": "Mercury",
                    "orb": 0,
                    "aspect": "Conjunction",
                    "aspect_type": "Intense"
                },
                {
                    "planetOne": "Mercury",
                    "planetTwo": "Chiron",
                    "orb": 0.53,
                    "aspect": "Opposition",
                    "aspect_type": "Hard"
                },
                {
                    "planetOne": "Venus",
                    "planetTwo": "Venus",
                    "orb": 0,
                    "aspect": "Conjunction",
                    "aspect_type": "Intense"
                },
                {
                    "planetOne": "Venus",
                    "planetTwo": "Saturn",
                    "orb": 4.82,
                    "aspect": "Conjunction",
                    "aspect_type": "Intense"
                },
                {
                    "planetOne": "Jupiter",
                    "planetTwo": "Jupiter",
                    "orb": 0,
                    "aspect": "Conjunction",
                    "aspect_type": "Intense"
                },
                {
                    "planetOne": "Saturn",
                    "planetTwo": "Venus",
                    "orb": 4.82,
                    "aspect": "Conjunction",
                    "aspect_type": "Intense"
                },
                {
                    "planetOne": "Saturn",
                    "planetTwo": "Saturn",
                    "orb": 0,
                    "aspect": "Conjunction",
                    "aspect_type": "Intense"
                },
                {
                    "planetOne": "North node",
                    "planetTwo": "Pluto",
                    "orb": 0.67,
                    "aspect": "Square",
                    "aspect_type": "Hard"
                },
                {
                    "planetOne": "South node",
                    "planetTwo": "Sun",
                    "orb": 3.12,
                    "aspect": "Square",
                    "aspect_type": "Hard"
                },
                {
                    "planetOne": "South node",
                    "planetTwo": "Moon",
                    "orb": 6.97,
                    "aspect": "Sextile",
                    "aspect_type": "Mildly Easy"
                },
                {
                    "planetOne": "South node",
                    "planetTwo": "Mars",
                    "orb": 5.97,
                    "aspect": "Square",
                    "aspect_type": "Hard"
                },
                {
                    "planetOne": "South node",
                    "planetTwo": "MC",
                    "orb": 0.12,
                    "aspect": "Trine",
                    "aspect_type": "Easy"
                },
                {
                    "planetOne": "Uranus",
                    "planetTwo": "Moon",
                    "orb": 0.38,
                    "aspect": "Square",
                    "aspect_type": "Hard"
                },
                {
                    "planetOne": "Uranus",
                    "planetTwo": "Mercury",
                    "orb": 2.09,
                    "aspect": "Square",
                    "aspect_type": "Hard"
                },
                {
                    "planetOne": "Uranus",
                    "planetTwo": "Uranus",
                    "orb": 0,
                    "aspect": "Conjunction",
                    "aspect_type": "Intense"
                },
                {
                    "planetOne": "Neptune",
                    "planetTwo": "Sun",
                    "orb": 0.95,
                    "aspect": "Trine",
                    "aspect_type": "Easy"
                },
                {
                    "planetOne": "Neptune",
                    "planetTwo": "Mars",
                    "orb": 1.9,
                    "aspect": "Trine",
                    "aspect_type": "Easy"
                },
                {
                    "planetOne": "Neptune",
                    "planetTwo": "Neptune",
                    "orb": 0,
                    "aspect": "Conjunction",
                    "aspect_type": "Intense"
                },
                {
                    "planetOne": "Pluto",
                    "planetTwo": "Sun",
                    "orb": 3.79,
                    "aspect": "Opposition",
                    "aspect_type": "Hard"
                },
                {
                    "planetOne": "Pluto",
                    "planetTwo": "South node",
                    "orb": 0.67,
                    "aspect": "Square",
                    "aspect_type": "Hard"
                },
                {
                    "planetOne": "Pluto",
                    "planetTwo": "Pluto",
                    "orb": 0,
                    "aspect": "Conjunction",
                    "aspect_type": "Intense"
                },
                {
                    "planetOne": "MC",
                    "planetTwo": "Ascendant",
                    "orb": 0.25,
                    "aspect": "Square",
                    "aspect_type": "Hard"
                },
                {
                    "planetOne": "MC",
                    "planetTwo": "North node",
                    "orb": 0.12,
                    "aspect": "Sextile",
                    "aspect_type": "Mildly Easy"
                },
                {
                    "planetOne": "MC",
                    "planetTwo": "MC",
                    "orb": 0,
                    "aspect": "Conjunction",
                    "aspect_type": "Intense"
                },
                {
                    "planetOne": "Chiron",
                    "planetTwo": "Moon",
                    "orb": 1.18,
                    "aspect": "Opposition",
                    "aspect_type": "Hard"
                },
                {
                    "planetOne": "Chiron",
                    "planetTwo": "Mercury",
                    "orb": 0.53,
                    "aspect": "Opposition",
                    "aspect_type": "Hard"
                },
                {
                    "planetOne": "Chiron",
                    "planetTwo": "Uranus",
                    "orb": 1.56,
                    "aspect": "Square",
                    "aspect_type": "Hard"
                },
                {
                    "planetOne": "Chiron",
                    "planetTwo": "Chiron",
                    "orb": 0,
                    "aspect": "Conjunction",
                    "aspect_type": "Intense"
                }
            ]
        },
        "p2_p1_aspect": {
            "planetOne": "Simran Kumari's planet",
            "planetTwo": "Rahul Kumar's planet",
            "aspects": [
                {
                    "planetOne": "Ascendant",
                    "planetTwo": "Ascendant",
                    "orb": 0,
                    "aspect": "Conjunction",
                    "aspect_type": "Intense"
                },
                {
                    "planetOne": "Ascendant",
                    "planetTwo": "Neptune",
                    "orb": 3.71,
                    "aspect": "Trine",
                    "aspect_type": "Easy"
                },
                {
                    "planetOne": "Ascendant",
                    "planetTwo": "Pluto",
                    "orb": 1.03,
                    "aspect": "Sextile",
                    "aspect_type": "Mildly Easy"
                },
                {
                    "planetOne": "Sun",
                    "planetTwo": "Ascendant",
                    "orb": 2.76,
                    "aspect": "Trine",
                    "aspect_type": "Easy"
                },
                {
                    "planetOne": "Sun",
                    "planetTwo": "Sun",
                    "orb": 0,
                    "aspect": "Conjunction",
                    "aspect_type": "Intense"
                },
                {
                    "planetOne": "Sun",
                    "planetTwo": "Mars",
                    "orb": 2.85,
                    "aspect": "Conjunction",
                    "aspect_type": "Intense"
                },
                {
                    "planetOne": "Sun",
                    "planetTwo": "North node",
                    "orb": 3.12,
                    "aspect": "Square",
                    "aspect_type": "Hard"
                },
                {
                    "planetOne": "Sun",
                    "planetTwo": "Pluto",
                    "orb": 3.79,
                    "aspect": "Opposition",
                    "aspect_type": "Hard"
                },
                {
                    "planetOne": "Moon",
                    "planetTwo": "Moon",
                    "orb": 0,
                    "aspect": "Conjunction",
                    "aspect_type": "Intense"
                },
                {
                    "planetOne": "Moon",
                    "planetTwo": "Mercury",
                    "orb": 1.72,
                    "aspect": "Conjunction",
                    "aspect_type": "Intense"
                },
                {
                    "planetOne": "Moon",
                    "planetTwo": "North node",
                    "orb": 6.97,
                    "aspect": "Trine",
                    "aspect_type": "Easy"
                },
                {
                    "planetOne": "Moon",
                    "planetTwo": "MC",
                    "orb": 7.09,
                    "aspect": "Sextile",
                    "aspect_type": "Mildly Easy"
                },
                {
                    "planetOne": "Moon",
                    "planetTwo": "Chiron",
                    "orb": 1.18,
                    "aspect": "Opposition",
                    "aspect_type": "Hard"
                },
                {
                    "planetOne": "Mars",
                    "planetTwo": "Ascendant",
                    "orb": 5.6,
                    "aspect": "Trine",
                    "aspect_type": "Easy"
                },
                {
                    "planetOne": "Mars",
                    "planetTwo": "Sun",
                    "orb": 2.85,
                    "aspect": "Conjunction",
                    "aspect_type": "Intense"
                },
                {
                    "planetOne": "Mars",
                    "planetTwo": "Mars",
                    "orb": 0,
                    "aspect": "Conjunction",
                    "aspect_type": "Intense"
                },
                {
                    "planetOne": "Mars",
                    "planetTwo": "North node",
                    "orb": 5.97,
                    "aspect": "Square",
                    "aspect_type": "Hard"
                },
                {
                    "planetOne": "Mercury",
                    "planetTwo": "Moon",
                    "orb": 1.72,
                    "aspect": "Conjunction",
                    "aspect_type": "Intense"
                },
                {
                    "planetOne": "Mercury",
                    "planetTwo": "Mercury",
                    "orb": 0,
                    "aspect": "Conjunction",
                    "aspect_type": "Intense"
                },
                {
                    "planetOne": "Mercury",
                    "planetTwo": "Chiron",
                    "orb": 0.53,
                    "aspect": "Opposition",
                    "aspect_type": "Hard"
                },
                {
                    "planetOne": "Venus",
                    "planetTwo": "Venus",
                    "orb": 0,
                    "aspect": "Conjunction",
                    "aspect_type": "Intense"
                },
                {
                    "planetOne": "Venus",
                    "planetTwo": "Saturn",
                    "orb": 4.82,
                    "aspect": "Conjunction",
                    "aspect_type": "Intense"
                },
                {
                    "planetOne": "Jupiter",
                    "planetTwo": "Jupiter",
                    "orb": 0,
                    "aspect": "Conjunction",
                    "aspect_type": "Intense"
                },
                {
                    "planetOne": "Saturn",
                    "planetTwo": "Venus",
                    "orb": 4.82,
                    "aspect": "Conjunction",
                    "aspect_type": "Intense"
                },
                {
                    "planetOne": "Saturn",
                    "planetTwo": "Saturn",
                    "orb": 0,
                    "aspect": "Conjunction",
                    "aspect_type": "Intense"
                },
                {
                    "planetOne": "North node",
                    "planetTwo": "Pluto",
                    "orb": 0.67,
                    "aspect": "Square",
                    "aspect_type": "Hard"
                },
                {
                    "planetOne": "South node",
                    "planetTwo": "Sun",
                    "orb": 3.12,
                    "aspect": "Square",
                    "aspect_type": "Hard"
                },
                {
                    "planetOne": "South node",
                    "planetTwo": "Moon",
                    "orb": 6.97,
                    "aspect": "Sextile",
                    "aspect_type": "Mildly Easy"
                },
                {
                    "planetOne": "South node",
                    "planetTwo": "Mars",
                    "orb": 5.97,
                    "aspect": "Square",
                    "aspect_type": "Hard"
                },
                {
                    "planetOne": "South node",
                    "planetTwo": "MC",
                    "orb": 0.12,
                    "aspect": "Trine",
                    "aspect_type": "Easy"
                },
                {
                    "planetOne": "Uranus",
                    "planetTwo": "Moon",
                    "orb": 0.38,
                    "aspect": "Square",
                    "aspect_type": "Hard"
                },
                {
                    "planetOne": "Uranus",
                    "planetTwo": "Mercury",
                    "orb": 2.09,
                    "aspect": "Square",
                    "aspect_type": "Hard"
                },
                {
                    "planetOne": "Uranus",
                    "planetTwo": "Uranus",
                    "orb": 0,
                    "aspect": "Conjunction",
                    "aspect_type": "Intense"
                },
                {
                    "planetOne": "Neptune",
                    "planetTwo": "Sun",
                    "orb": 0.95,
                    "aspect": "Trine",
                    "aspect_type": "Easy"
                },
                {
                    "planetOne": "Neptune",
                    "planetTwo": "Mars",
                    "orb": 1.9,
                    "aspect": "Trine",
                    "aspect_type": "Easy"
                },
                {
                    "planetOne": "Neptune",
                    "planetTwo": "Neptune",
                    "orb": 0,
                    "aspect": "Conjunction",
                    "aspect_type": "Intense"
                },
                {
                    "planetOne": "Pluto",
                    "planetTwo": "Sun",
                    "orb": 3.79,
                    "aspect": "Opposition",
                    "aspect_type": "Hard"
                },
                {
                    "planetOne": "Pluto",
                    "planetTwo": "South node",
                    "orb": 0.67,
                    "aspect": "Square",
                    "aspect_type": "Hard"
                },
                {
                    "planetOne": "Pluto",
                    "planetTwo": "Pluto",
                    "orb": 0,
                    "aspect": "Conjunction",
                    "aspect_type": "Intense"
                },
                {
                    "planetOne": "MC",
                    "planetTwo": "Ascendant",
                    "orb": 0.25,
                    "aspect": "Square",
                    "aspect_type": "Hard"
                },
                {
                    "planetOne": "MC",
                    "planetTwo": "North node",
                    "orb": 0.12,
                    "aspect": "Sextile",
                    "aspect_type": "Mildly Easy"
                },
                {
                    "planetOne": "MC",
                    "planetTwo": "MC",
                    "orb": 0,
                    "aspect": "Conjunction",
                    "aspect_type": "Intense"
                },
                {
                    "planetOne": "Chiron",
                    "planetTwo": "Moon",
                    "orb": 1.18,
                    "aspect": "Opposition",
                    "aspect_type": "Hard"
                },
                {
                    "planetOne": "Chiron",
                    "planetTwo": "Mercury",
                    "orb": 0.53,
                    "aspect": "Opposition",
                    "aspect_type": "Hard"
                },
                {
                    "planetOne": "Chiron",
                    "planetTwo": "Uranus",
                    "orb": 1.56,
                    "aspect": "Square",
                    "aspect_type": "Hard"
                },
                {
                    "planetOne": "Chiron",
                    "planetTwo": "Chiron",
                    "orb": 0,
                    "aspect": "Conjunction",
                    "aspect_type": "Intense"
                }
            ]
        }
    }
}

Example Code Implementations

Below are example implementations in various programming environments.


cURL

curl --location 'https://astroapi-4.divineapi.com/western-api/v1/synastry/aspect' \
--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/v1/synastry/aspect',
  '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/v1/synastry/aspect",
  "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/v1/synastry/aspect"

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)

Notes

Ensure latitude and longitude are in decimal degrees (WGS84).

Timezone (p1_tzone, p2_tzone) is numeric offset from UTC; e.g., 5.5 for India.

If house_system is not specified, default is P (Placidus).

Language defaults to English (lan=en) if not provided.

Validate date and time inputs before sending requests.

Response includes both directional aspect sets (p1_p2_aspect and p2_p1_aspect).