Astrology Aspects API

AstroAPI uses Western (tropical), geocentric astrology by default. Sidereal or Vedic-style calculations are not applied unless explicitly enabled and documented.

Calculate angular relationships between planets in a natal chart. Aspect results are derived from the underlying chart calculation data and returned as raw values.

Endpoint

POST https://api.astroapi.io/api/astro/aspects

Include Authorization: Bearer <API_KEY>.

Example Request

{
  "birth": {
    "date": "1990-01-01",
    "time": "12:00",
    "lat": 40.7128,
    "lon": -74.0060
  }
}

Example Response

{
  "type": "aspects",
  "input": {
    "birth": {
      "date": "1990-01-01",
      "time": "12:00",
      "lat": 40.7128,
      "lon": -74.0060
    }
  },
  "aspects": {
    "planets": {
      "Sun": { "lon": 0, "sign": "Aries" },
      "Moon": { "lon": 1.47, "sign": "Aries" }
    },
    "houses": {
      "ascendant": 94.64,
      "mc": 208.91,
      "systems": {
        "whole_sign": { "houses": { "1": 90, "2": 120 } },
        "placidus": { "houses": { "1": 94.64, "2": 132.89 } }
      }
    },
    "aspects": [
      { "p1": "Sun", "p2": "Moon", "type": "conjunction", "distance": 1.47, "orb": 1.47 }
    ],
    "nodes": { "mean": { "sign": "Cancer", "deg_in_sign": 19.53 } },
    "metadata": { "note": "DE421 ephemeris; raw calculation output" }
  }
}

Quick Test / curl

Use this curl command to quickly test the Houses API endpoint with your API key:

curl -i https://api.astroapi.io/api/astro/aspects \
  -X POST \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY_HERE" \
  -d '{
    "birth": {
      "date": "2000-01-01",
      "time": "12:00",
      "lat": 33.7488,
      "lon": -84.3877
    }
  }'

Common Uses

  • Natal chart analysis
  • Aspect line or table rendering
  • Astrology research tools
  • Client-side interpretation systems

This API does not perform interpretation, scoring, or compatibility analysis. These responsibilities are handled by the client application.

// JavaScript — Aspects API
fetch("https://api.astroapi.io/api/astro/aspects", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    "Authorization": "Bearer YOUR_API_KEY"
  },
  body: JSON.stringify({
    birth: {
      date: "1990-01-01",
      time: "12:00",
      lat: 40.7128,
      lon: -74.0060
    }
  })
})
  .then(res => res.json())
  .then(data => console.log(data));
# Python — Aspects API
import requests

url = "https://api.astroapi.io/api/astro/aspects"

payload = {
  "birth": {
    "date": "1990-01-01",
    "time": "12:00",
    "lat": 40.7128,
    "lon": -74.0060
  }
}

headers = {
  "Content-Type": "application/json",
  "Authorization": "Bearer YOUR_API_KEY"
}

response = requests.post(url, json=payload, headers=headers)
print(response.json())