Developer API

Astronomical precision,
ready for your app

The same calculation engine powering Magical Chart, exposed as a clean REST API. Swiss Ephemeris precision, structured JSON, production-ready since 2025.

Build the astrology tools you wished existed.

What you can build

Everything an astrology app needs, in one endpoint

☀

Natal charts

Planetary positions, house cusps, aspects and angles for any birthdate and location.

●

Astrocartography

Planetary lines on a world map. MC, IC, ASC, DSC lines for all major planets.

★

Sky maps

Current sky or any date. Planets, signs and houses rendered as structured data.

☾

Moon phases

Lunar phase, illumination percentage and next phase dates for any location.

☉

Local sidereal time

Accurate LST for any coordinates and moment. Useful for custom house calculations.

♦

Solar returns

Exact solar return date and planetary positions for any year. Tropical or sidereal.

Endpoints

EndpointWhat it returnsFree tier
POST /api/birth-chart Natal chart: planets, houses, aspects, angles 60 req/min
POST /api/birth-chart?mode=sky Sky map for any date and time 60 req/min
POST /api/birth-chart?mode=astrocarto Astrocartography lines (lat/lng arrays per planet) 60 req/min
GET /api/moon Moon phase, illumination, next phases 60 req/min
POST /api/interpret AI interpretation of a natal chart in natural language (EN or FR) Paid key only

All endpoints return structured JSON with a provenance block confirming the engine version and coordinate system. No proprietary format to reverse-engineer.

Example request

# Natal chart for June 15, 1990, 08:30 AM in Paris
curl -X POST https://www.magicalchart.com/api/birth-chart \
  -H "Authorization: Bearer sk_mc_your_key" \
  -H "Content-Type: application/json" \
  -d '{
    "dob": "1990-06-15",
    "tob": "08:30",
    "city": "Paris",
    "country": "FR"
  }'

Example response (excerpt)

{
  "success": true,
  "data": {
    "planets": {
      "Sun":    { "sign": "Gemini",  "degree": 24.1, "house": 10 },
      "Moon":   { "sign": "Scorpio", "degree":  3.7, "house":  3 },
      "Rising": { "sign": "Leo",     "degree": 22.4 }
    },
    "houses": {
      "1": { "sign": "Leo",    "degree": 22.4 },
      "10": { "sign": "Taurus", "degree": 21.8 }
    },
    "aspects": [
      { "planet1": "Sun", "planet2": "Mars", "type": "trine", "orb": 1.2 }
    ]
  },
  "provenance": {
    "engine": "magical-chart-astro-engine",
    "coordinateSystem": "geocentric ecliptic, tropical zodiac"
  }
}

Simple, usage-based pricing

Start free. Scale when you need it.

Free tier
Open
$0/month
No key required. Rate-limited by IP.
  • 60 requests per minute
  • All endpoints
  • No registration
  • Community support
Read the docs
High volume
Pro
$79/month
For production apps with real traffic.
  • 100,000 calls/month
  • API key (bypass IP rate limit)
  • Monthly usage dashboard
  • Priority email support
  • Key auto-generated on purchase
Get Pro access

Need more than 100,000 calls/month? Email wooly@magicalchart.com with your volume estimate and use case.

Frequently asked questions

How accurate are the calculations?

The engine is built on the Swiss Ephemeris (the same library used by professional astrology software). Planetary positions are validated to within 0.01 degrees. Astrocartography lines are validated to <50 km at the equator. See the docs for the full validation report.

What house systems are supported?

Placidus, Koch, Equal, Whole Sign and Campanus. The default is Placidus. Pass "house_system": "whole_sign" in the request body to override.

When do I receive my API key?

Your key is generated automatically and emailed within seconds of your payment completing. It is shown once in the email and never stored in plaintext. Keep it safe.

Can I test before buying?

Yes. The free tier (no key, 60 req/min) uses the exact same engine and returns the same JSON format as the paid tiers. Build and test against it, then upgrade when you need higher limits.

What happens if I exceed my monthly quota?

Requests over the quota receive a 429 quota_exceeded response. Your quota resets on the first day of the next calendar month. You can upgrade to a higher plan at any time.

Is there a free trial?

The free tier is effectively a permanent free trial with no time limit. If you need a trial of the paid tiers, email wooly@magicalchart.com.

Ready to build?

Start with the free tier today. Upgrade when you outgrow 60 req/min.

Free docs & sandbox Get a paid key