Skip to content

Natal Charts

Calculate complete natal charts with planetary positions, house cusps, and aspects.

Basic Calculation

bash
curl -X POST "https://api.astroapi.cloud/api/calc/natal" \
  -H "X-Api-Key: your-api-key" \
  -H "Content-Type: application/json" \
  -d '{
    "datetime": "1990-06-15T14:30:00",
    "latitude": 51.5074,
    "longitude": -0.1278,
    "timezone": "Europe/London"
  }'

Parameters

ParameterTypeRequiredDescription
datetimestringYesISO 8601 datetime
latitudenumberYesLatitude (-90 to 90)
longitudenumberYesLongitude (-180 to 180)
timezonestringYesIANA timezone identifier
houseSystemstringNoHouse system (default: "placidus")

House Systems

  • placidus - Placidus (default)
  • koch - Koch
  • equal - Equal House
  • whole - Whole Sign
  • campanus - Campanus
  • regiomontanus - Regiomontanus
  • porphyry - Porphyry

Response

json
{
  "data": {
    "type": "natal-chart",
    "attributes": {
      "planets": {
        "sun": { "longitude": 84.5, "latitude": 0, "sign": "gemini", "house": 10 },
        "moon": { "longitude": 245.2, "latitude": -3.1, "sign": "sagittarius", "house": 4 }
      },
      "houses": {
        "1": { "cusp": 180.5, "sign": "libra" },
        "2": { "cusp": 210.3, "sign": "scorpio" }
      },
      "aspects": [
        { "planet1": "sun", "planet2": "moon", "aspect": "opposition", "orb": 0.7 }
      ]
    }
  }
}

Included Bodies

By default, the following celestial bodies are included:

  • Sun, Moon
  • Mercury, Venus, Mars, Jupiter, Saturn, Uranus, Neptune, Pluto
  • North Node, South Node
  • Chiron, Lilith (Black Moon)
  • Part of Fortune

Calculation Precision

AstroAPI uses the Swiss Ephemeris for high-precision calculations. All positions are calculated to arcsecond accuracy.

Beta: Alternative Calculation Engine

Experimental Feature

This feature is in beta and may have accuracy issues. Use with caution in production environments.

AstroAPI offers an alternative calculation engine (calc2) that uses a custom implementation to read and evaluate Swiss Ephemeris SE1 data files directly, instead of using the official Swiss Ephemeris library. This engine is optimized for speed and may provide faster response times.

To use the alternative engine, include the X-Use-Calc2 header in your request:

bash
curl -X POST "https://api.astroapi.cloud/api/calc/natal" \
  -H "X-Api-Key: your-api-key" \
  -H "X-Use-Calc2: true" \
  -H "Content-Type: application/json" \
  -d '{
    "datetime": "1990-06-15T14:30:00",
    "latitude": 51.5074,
    "longitude": -0.1278,
    "timezone": "Europe/London"
  }'

Key Differences

AspectStandard EngineCalc2 Engine (Beta)
ImplementationSwiss EphemerisCustom implementation
Data SourceSE1 ephemeris filesSE1 ephemeris files (same data)
SpeedStandardPotentially faster
AccuracyArcsecond precision (reference)May have minor deviations
StatusProduction-readyBeta

When to Use Calc2

  • Recommended for: High-volume applications where speed is prioritized over absolute precision
  • Not recommended for: Applications requiring maximum astronomical accuracy

Known Limitations

  • Custom implementation may produce slightly different results compared to the official Swiss Ephemeris library
  • Still under active development and testing
  • Results should be validated against the standard engine for critical applications

AstroAPI Documentation