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
| Parameter | Type | Required | Description |
|---|---|---|---|
datetime | string | Yes | ISO 8601 datetime |
latitude | number | Yes | Latitude (-90 to 90) |
longitude | number | Yes | Longitude (-180 to 180) |
timezone | string | Yes | IANA timezone identifier |
houseSystem | string | No | House system (default: "placidus") |
House Systems
placidus- Placidus (default)koch- Kochequal- Equal Housewhole- Whole Signcampanus- Campanusregiomontanus- Regiomontanusporphyry- 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
| Aspect | Standard Engine | Calc2 Engine (Beta) |
|---|---|---|
| Implementation | Swiss Ephemeris | Custom implementation |
| Data Source | SE1 ephemeris files | SE1 ephemeris files (same data) |
| Speed | Standard | Potentially faster |
| Accuracy | Arcsecond precision (reference) | May have minor deviations |
| Status | Production-ready | Beta |
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