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

Examine the interplay between celestial bodies with the Aspect Table, highlighting significant astrological relationships and their impacts.


Step by Step Aspect Table API Postman Testing Integration

https://support.divineapi.com/western-astrology-apis/testing-western-api-aspect-table-api-using-postman


Supported Language Codes

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

CodeDescription
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/aspect-table

Returns Aspect Table in response.


Headers

NameTypeDescription
Authorization*StringYour API Access Token, e.g. Bearer {token}

Request Body

NameTypeDescription
api_key*StringYour API key
full_name*StringFull name, e.g. Rahul Kumar
day*IntegerDate of birth, e.g. 24
month*IntegerMonth of birth, e.g. 05
year*IntegerYear of birth, e.g. 2023
hour*IntegerHour, e.g. 14
min*IntegerMinute, e.g. 40
sec*IntegerSecond, e.g. 43
gender*StringGender, e.g. male
place*StringPlace, e.g. New Delhi
lat*FloatLatitude, e.g. 28.7041
lon*FloatLongitude, e.g. 77.1025
tzone*FloatTimezone, e.g. 5.5 (see Timezone List)
lanStringLanguage (default: en)
house_systemStringHouse system code (default: P - Placidus)

200 OK – Aspect Table Fetched Successfully

{
    "success": 1,
    "data": [
        {
            "planetOne": "Ascendant",
            "planetTwo": "Saturn",
            "orb": 1.01,
            "aspect": "Quincunx"
        },
        {
            "planetOne": "Ascendant",
            "planetTwo": "South node",
            "orb": 3.11,
            "aspect": "Semisextile"
        },
        {
            "planetOne": "Sun",
            "planetTwo": "Ascendant",
            "orb": 2.75,
            "aspect": "Trine"
        },
        {
            "planetOne": "Sun",
            "planetTwo": "Mars",
            "orb": 0.83,
            "aspect": "Sextile"
        },
        {
            "planetOne": "Sun",
            "planetTwo": "South node",
            "orb": 0.36,
            "aspect": "Quincunx"
        },
        {
            "planetOne": "Sun",
            "planetTwo": "MC",
            "orb": 3,
            "aspect": "Semisextile"
        },
        {
            "planetOne": "Mars",
            "planetTwo": "Ascendant",
            "orb": 3.58,
            "aspect": "Sextile"
        },
        {
            "planetOne": "Mars",
            "planetTwo": "South node",
            "orb": 0.47,
            "aspect": "Square"
        },
        {
            "planetOne": "Mars",
            "planetTwo": "Pluto",
            "orb": 1.89,
            "aspect": "Opposition"
        },
        {
            "planetOne": "Mercury",
            "planetTwo": "Ascendant",
            "orb": 3.31,
            "aspect": "Quincunx"
        },
        {
            "planetOne": "Mercury",
            "planetTwo": "Sun",
            "orb": 6.06,
            "aspect": "Semisextile"
        },
        {
            "planetOne": "Mercury",
            "planetTwo": "Mars",
            "orb": 6.89,
            "aspect": "Square"
        },
        {
            "planetOne": "Mercury",
            "planetTwo": "North node",
            "orb": 6.42,
            "aspect": "Conjunction"
        },
        {
            "planetOne": "Mercury",
            "planetTwo": "South node",
            "orb": 6.42,
            "aspect": "Opposition"
        },
        {
            "planetOne": "Mercury",
            "planetTwo": "MC",
            "orb": 3.06,
            "aspect": "Sextile"
        },
        {
            "planetOne": "Jupiter",
            "planetTwo": "Ascendant",
            "orb": 3.99,
            "aspect": "Quincunx"
        },
        {
            "planetOne": "Jupiter",
            "planetTwo": "Sun",
            "orb": 1.24,
            "aspect": "Semisextile"
        },
        {
            "planetOne": "Jupiter",
            "planetTwo": "Mars",
            "orb": 0.41,
            "aspect": "Square"
        },
        {
            "planetOne": "Jupiter",
            "planetTwo": "North node",
            "orb": 0.88,
            "aspect": "Conjunction"
        },
        {
            "planetOne": "Jupiter",
            "planetTwo": "South node",
            "orb": 0.88,
            "aspect": "Opposition"
        },
        {
            "planetOne": "Jupiter",
            "planetTwo": "MC",
            "orb": 4.23,
            "aspect": "Sextile"
        },
        {
            "planetOne": "Saturn",
            "planetTwo": "Sun",
            "orb": 3.76,
            "aspect": "Square"
        },
        {
            "planetOne": "Saturn",
            "planetTwo": "Mars",
            "orb": 4.59,
            "aspect": "Quincunx"
        },
        {
            "planetOne": "Saturn",
            "planetTwo": "Mercury",
            "orb": 2.3,
            "aspect": "Sextile"
        },
        {
            "planetOne": "Saturn",
            "planetTwo": "Jupiter",
            "orb": 5,
            "aspect": "Sextile"
        },
        {
            "planetOne": "Saturn",
            "planetTwo": "North node",
            "orb": 4.12,
            "aspect": "Sextile"
        },
        {
            "planetOne": "Saturn",
            "planetTwo": "MC",
            "orb": 0.76,
            "aspect": "Trine"
        },
        {
            "planetOne": "North node",
            "planetTwo": "Ascendant",
            "orb": 3.11,
            "aspect": "Quincunx"
        },
        {
            "planetOne": "North node",
            "planetTwo": "Sun",
            "orb": 0.36,
            "aspect": "Semisextile"
        },
        {
            "planetOne": "North node",
            "planetTwo": "Mars",
            "orb": 0.47,
            "aspect": "Square"
        },
        {
            "planetOne": "North node",
            "planetTwo": "Mercury",
            "orb": 6.42,
            "aspect": "Conjunction"
        },
        {
            "planetOne": "North node",
            "planetTwo": "Jupiter",
            "orb": 0.88,
            "aspect": "Conjunction"
        },
        {
            "planetOne": "North node",
            "planetTwo": "MC",
            "orb": 3.35,
            "aspect": "Sextile"
        },
        {
            "planetOne": "South node",
            "planetTwo": "Mercury",
            "orb": 6.42,
            "aspect": "Opposition"
        },
        {
            "planetOne": "South node",
            "planetTwo": "Jupiter",
            "orb": 0.88,
            "aspect": "Opposition"
        },
        {
            "planetOne": "South node",
            "planetTwo": "Saturn",
            "orb": 4.12,
            "aspect": "Trine"
        },
        {
            "planetOne": "South node",
            "planetTwo": "Pluto",
            "orb": 2.36,
            "aspect": "Square"
        },
        {
            "planetOne": "Uranus",
            "planetTwo": "Venus",
            "orb": 1.87,
            "aspect": "Sextile"
        },
        {
            "planetOne": "Neptune",
            "planetTwo": "Moon",
            "orb": 0.01,
            "aspect": "Trine"
        },
        {
            "planetOne": "Pluto",
            "planetTwo": "Sun",
            "orb": 2.72,
            "aspect": "Trine"
        },
        {
            "planetOne": "Pluto",
            "planetTwo": "Mars",
            "orb": 1.89,
            "aspect": "Opposition"
        },
        {
            "planetOne": "Pluto",
            "planetTwo": "Jupiter",
            "orb": 1.48,
            "aspect": "Square"
        },
        {
            "planetOne": "Pluto",
            "planetTwo": "North node",
            "orb": 2.36,
            "aspect": "Square"
        },
        {
            "planetOne": "Pluto",
            "planetTwo": "MC",
            "orb": 5.72,
            "aspect": "Quincunx"
        },
        {
            "planetOne": "MC",
            "planetTwo": "Ascendant",
            "orb": 0.24,
            "aspect": "Square"
        },
        {
            "planetOne": "MC",
            "planetTwo": "Mars",
            "orb": 3.83,
            "aspect": "Semisextile"
        },
        {
            "planetOne": "MC",
            "planetTwo": "South node",
            "orb": 3.35,
            "aspect": "Trine"
        },
        {
            "planetOne": "Chiron",
            "planetTwo": "Venus",
            "orb": 0.59,
            "aspect": "Square"
        },
        {
            "planetOne": "Chiron",
            "planetTwo": "Uranus",
            "orb": 1.28,
            "aspect": "Semisextile"
        }
    ]
}

Example Code Implementations

Below are example implementations in various programming environments.


cURL

curl --location 'https://astroapi-4.divineapi.com/western-api/v2/aspect-table' \
--header 'Authorization: Bearer {Your Auth Token}' \
--form 'api_key="{Your API Key}"' \
--form 'full_name="Rahul Kumar"' \
--form 'day="24"' \
--form 'month="05"' \
--form 'year="2023"' \
--form 'hour="14"' \
--form 'min="40"' \
--form 'sec="43"' \
--form 'gender="male"' \
--form 'place="New Delhi, India"' \
--form 'lat="28.7041"' \
--form 'lon="77.1025"' \
--form 'tzone="5.5"'
--form 'lan="en"' \
--form 'house_system="P"'

NodeJS

var request = require('request');
var options = {
  'method': 'POST',
  'url': 'https://astroapi-4.divineapi.com/western-api/v2/aspect-table',
  'headers': {
    'Authorization': 'Bearer {Your Auth Token}'
  },
  formData: {
    'api_key': '{Your API Key}',
    'full_name': 'Rahul Kumar',
    'day': '24',
    'month': '05',
    'year': '2023',
    'hour': '14',
    'min': '40',
    'sec': '43',
    'gender': 'male',
    'place': 'New Delhi, India',
    'lat': '28.7041',
    'lon': '77.1025',
    'tzone': '5.5'
    'lan': 'en',
    'house_system': 'P'
  }
};
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", "Rahul Kumar");
form.append("day", "24");
form.append("month", "05");
form.append("year", "2023");
form.append("hour", "14");
form.append("min", "40");
form.append("sec", "43");
form.append("gender", "male");
form.append("place", "New Delhi, India");
form.append("lat", "28.7041");
form.append("lon", "77.1025");
form.append("tzone", "5.5");
form.append("lan", "en");
form.append("house_system", "P");

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

payload = {'api_key': '{Your API Key}',
'full_name': 'Rahul Kumar',
'day': '24',
'month': '05',
'year': '2023',
'hour': '14',
'min': '40',
'sec': '43',
'gender': 'male',
'place': 'New Delhi, India',
'lat': '28.7041',
'lon': '77.1025',
'tzone': '5.5'
'lan': 'en',
'house_system': 'P'}

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

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

print(response.text)