Natal Aspects API
Natal aspects with their orbs, and whether each is applying
POST/v1/western/aspects
1 credit · Secret key (test or live) · getWesternAspects
Orbs differ between schools. The response states the ones used, and you can pass your own.
Request body
birthBirth requireddatestring (date) requirede.g.
"1990-08-13"timestringpattern
^([01]\d|2[0-3]):[0-5]\d(:[0-5]\d)?$· e.g."06:30"time_accuracystringWith "unknown", lagna- and house-dependent fields are omitted and listed in warnings — never filled with a noon default.
one of
exact,approximate,unknown· default"exact"placeCoordinates or object or object requiredCoordinates, a place_id from /v1/places/search, or a free-text query. A vague query returns 422 place_ambiguous with candidates; the API never guesses.
One of:
- Coordinates
Fields
latitudenumber required≥ -90 · ≤ 90
longitudenumber required≥ -180 · ≤ 180
No other fields are accepted.
- object
Fields
place_idstring required
No other fields are accepted.
- object
Fields
querystring requiredat least 2 characters · at most 120 characters
No other fields are accepted.
- Coordinates
timezonestring"auto" (from coordinates AND date), an IANA name, or a fixed offset like "+05:30".
default
"auto"
No other fields are accepted.
house_systemstringone of
placidus,equal,whole_sign,porphyry· default"placidus"aspectsarray of stringorbsobjectYour own orb in degrees for any aspect, replacing the default and the extra for the Sun and Moon.
conjunctionnumber≥ 0 · ≤ 15
oppositionnumber≥ 0 · ≤ 15
trinenumber≥ 0 · ≤ 15
squarenumber≥ 0 · ≤ 15
sextilenumber≥ 0 · ≤ 15
quincunxnumber≥ 0 · ≤ 15
semisextilenumber≥ 0 · ≤ 15
semisquarenumber≥ 0 · ≤ 15
sesquiquadratenumber≥ 0 · ≤ 15
quintilenumber≥ 0 · ≤ 15
biquintilenumber≥ 0 · ≤ 15
No other fields are accepted.
include_anglesbooleandefault
trueoptionsobjectlangstring requiredone of
en,hi· default"en"
No other fields are accepted.
No other fields are accepted.
Response
JSON { data, meta, warnings }, where data is:
framestring requiredcountinteger requiredaspectsarray of object requiredastring requiredbstring requiredaspectstring requiredone of
conjunction,opposition,trine,square,sextile,quincunx,semisextile,semisquare,sesquiquadrate,quintile,biquintileanglenumber requiredorbnumber requiredapplyingboolean required
orbs_usedobject requiredconjunctionnumberoppositionnumbertrinenumbersquarenumbersextilenumberquincunxnumbersemisextilenumbersemisquarenumbersesquiquadratenumberquintilenumberbiquintilenumber
sun_moon_extranumber requiredDegrees added to a major aspect with the Sun or Moon.
Errors: 400, 401, 403, 404, 422, 429, 500. See error codes.
Example request
curl -X POST 'https://api.astrologics.in/v1/western/aspects' \
-H 'Authorization: Bearer al_test_YOUR_KEY' \
-H 'Content-Type: application/json' \
-d '{"birth":{"date":"1990-08-13","time":"06:30","place":{"latitude":28.6139,"longitude":77.209}}}'
Node.js
const res = await fetch("https://api.astrologics.in/v1/western/aspects", {
method: "POST",
headers: { Authorization: "Bearer al_test_YOUR_KEY", "Content-Type": "application/json" },
body: JSON.stringify({
"birth": {
"date": "1990-08-13",
"time": "06:30",
"place": {
"latitude": 28.6139,
"longitude": 77.209
}
}
}),
});
console.log(JSON.stringify(await res.json(), null, 2));Python
import json
import urllib.error
import urllib.request
body = {
"birth": {
"date": "1990-08-13",
"time": "06:30",
"place": {
"latitude": 28.6139,
"longitude": 77.209,
},
},
}
req = urllib.request.Request(
"https://api.astrologics.in/v1/western/aspects",
method="POST",
headers={"Authorization": "Bearer al_test_YOUR_KEY", "Content-Type": "application/json"},
data=json.dumps(body).encode(),
)
try:
with urllib.request.urlopen(req) as res:
print(json.dumps(json.load(res), indent=2, ensure_ascii=False))
except urllib.error.HTTPError as err:
print(err.code, err.read().decode())PHP
<?php
$ch = curl_init('https://api.astrologics.in/v1/western/aspects');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => ['Authorization: Bearer al_test_YOUR_KEY', 'Content-Type: application/json'],
CURLOPT_POSTFIELDS => '{"birth":{"date":"1990-08-13","time":"06:30","place":{"latitude":28.6139,"longitude":77.209}}}',
CURLOPT_RETURNTRANSFER => true,
]);
echo curl_exec($ch), PHP_EOL;Example response
200 OK · 4,866 characters
{
"data": {
"frame": "tropical",
"count": 28,
"aspects": [
{
"a": "mars",
"b": "saturn",
"aspect": "trine",
"angle": 120,
"orb": 0.05,
"applying": true
},
{
"a": "venus",
"b": "jupiter",
"aspect": "conjunction",
"angle": 0,
"orb": 0.06,
"applying": false
},
{
"a": "sun",
"b": "mars",
"aspect": "square",
"angle": 90,
"orb": 0.09,
"applying": false
},
{
"a": "moon",
"b": "neptune",
"aspect": "trine",
"angle": 120,
"orb": 0.42,
"applying": true
},
{
"a": "mercury",
"b": "pluto",
"aspect": "sextile",
"angle": 60,
"orb": 2.31,
"applying": false
},
{
"a": "mercury",
"b": "mars",
"aspect": "trine",
"angle": 120,
"orb": 2.59,
"applying": true
},
{
"a": "mercury",
"b": "saturn",
"aspect": "trine",
"angle": 120,
"orb": 2.64,
"applying": true
},
{
"a": "neptune",
"b": "pluto",
"aspect": "sextile",
"angle": 60,
"orb": 2.82,
"applying": false
},
{
"a": "jupiter",
"b": "midheaven",
"aspect": "sextile",
"angle": 60,
"orb": 3.12,
"applying": false
},
{
"a": "venus",
"b": "midheaven",
"aspect": "sextile",
"angle": 60,
"orb": 3.18,
"applying": false
},
{
"a": "moon",
"b": "pluto",
"aspect": "opposition",
"angle": 180,
"orb": 3.24,
"applying": true
},
{
"a": "moon",
"b": "north_node",
"aspect": "square",
"angle": 90,
"orb": 4.6,
"applying": false
},
{
"a": "mars",
"b": "pluto",
"aspect": "opposition",
"angle": 180,
"orb": 4.9,
"applying": false
},
{
"a": "saturn",
"b": "pluto",
"aspect": "sextile",
"angle": 60,
"orb": 4.94,
"applying": true
},
{
"a": "sun",
"b": "pluto",
"aspect": "square",
"angle": 90,
"orb": 4.98,
"applying": false
},
{
"a": "mercury",
"b": "neptune",
"aspect": "trine",
"angle": 120,
"orb": 5.13,
"applying": false
},
{
"a": "moon",
"b": "mercury",
"aspect": "trine",
"angle": 120,
"orb": 5.54,
"applying": true
},
{
"a": "sun",
"b": "midheaven",
"aspect": "square",
"angle": 90,
"orb": 5.71,
"applying": true
},
{
"a": "saturn",
"b": "midheaven",
"aspect": "trine",
"angle": 120,
"orb": 5.75,
"applying": false
},
{
"a": "moon",
"b": "uranus",
"aspect": "trine",
"angle": 120,
"orb": 5.8,
"applying": false
},
{
"a": "mars",
"b": "midheaven",
"aspect": "conjunction",
"angle": 0,
"orb": 5.8,
"applying": true
},
{
"a": "uranus",
"b": "neptune",
"aspect": "conjunction",
"angle": 0,
"orb": 6.21,
"applying": false
},
{
"a": "mars",
"b": "neptune",
"aspect": "trine",
"angle": 120,
"orb": 7.72,
"applying": false
},
{
"a": "saturn",
"b": "neptune",
"aspect": "conjunction",
"angle": 0,
"orb": 7.76,
"applying": true
},
{
"a": "sun",
"b": "ascendant",
"aspect": "conjunction",
"angle": 0,
"orb": 7.96,
"applying": true
},
{
"a": "moon",
"b": "mars",
"aspect": "conjunction",
"angle": 0,
"orb": 8.13,
"applying": true
},
{
"a": "moon",
"b": "saturn",
"aspect": "trine",
"angle": 120,
"orb": 8.18,
"applying": true
},
{
"a": "sun",
"b": "moon",
"aspect": "square",
"angle": 90,
"orb": 8.22,
"applying": true
}
],
"orbs_used": {
"conjunction": 8,
"opposition": 8,
"trine": 8,
"square": 7,
"sextile": 5
},
"sun_moon_extra": 2
},
"meta": {
"request_id": "req_example",
"api_version": "v1",
"engine_version": "2026.10.10",
"mode": "live",
"credits_charged": 1
},
"warnings": []
}Try it
More in Western
- Western Natal Chart API: A tropical birth chart: planets, angles, Placidus or other houses, dignities and element balance
- Natal Chart Wheel SVG API: The chart drawn as a wheel in SVG, with the ascendant on the left
- Synastry API: Aspects between two charts, and each person's planets in the other's houses
- Composite Chart API: A midpoint composite chart for two people
- Western Transits API: Exact transits to a birth chart, sign ingresses and stations over a range
- Secondary Progressions API: A secondary progressed chart for a date, with solar arc angles
- Western Solar Return API: The tropical solar return chart for a year, at the birth place or another
- Lunar Return API: The next tropical lunar return chart after a date