Astrology API Developer Hub

Get a free key and send your first request. Docs, examples and prices are on this page.

cURL
curl -X POST https://api.astromansion.com/v1/natal \
  -H "Content-Type: application/json" \
  -d '{"birth": {"date": "1990-07-15", "time": "14:30",
       "lat": 51.5074, "lon": -0.1278,
       "timezone": "Europe/London", "houses": "placidus"},
       "options": {}}'
Response excerpt

200 OK

Sun
Cancer 22°48′21″
Moon
Aries 24°8′6″
Ascendant
Scorpio 1°58′5″

Run it in your terminal without a key to get JSON back. This is a fixed example, with no live request sent here.

What could you build?

Where the positions come from

Positions come from NASA JPL tables on our own server. A birth is never sent anywhere else to be calculated.

Checked against NASA JPL Horizons

Compared positions
8,010
Largest average difference
0.19″
Date range
1900–2100

Last compared on 22 Aug 2026.

How long a request takes

Typical
11.17 ms
Slow
13.18 ms
POST /v1/natal

One birth chart, without the wheel image

Sample
25 requests
Last measured
21 Nov 2026

Measured inside the server, so internet travel time is not included.

MansionSQL

Ask for only the rows you need, not the whole chart. One query can join birth, partner, transit and catalogue data.

POST /v1/query

Anonymous reference chart, 1 Jan 1990, New York

SELECT name, sign, house, longitude FROM planets WHERE house BETWEEN 10 AND 12 ORDER BY house, longitude LIMIT 5
Query result across houses 10–125 bodies plotted on the Capricorn–Pisces arc from the real longitude values the query returned.CapricornAquariusPisces101112Neptune house 10Saturn house 10Mercury house 10Venus house 11Moon house 12

A query computes only what it names

A second birth, a transit moment or the catalogue is computed only when the query names it.

Two charts, one row

With partner data, the same planet in two people sits side by side.

JOIN natal_b b ON a.name = b.name

Orbs across zero Aries

ORB reads 359° to 2° as 3°, so a transit contact crossing Aries zero is not lost.

ORB(359, 2) = 3°

Only the asteroids you ask for

When the IN restriction names Pallas and Vesta, every other asteroid stays out of the chart.

name IN ('Pallas', 'Vesta')

From API key to first response

  1. Get a free key

    Up to 100 requests a month are free. Plans add requests and techniques, paid in USD through Gumroad.

    Pick your plan
  2. Add the key to your request

    Send the request above with this header.

    X-API-Key: am_...
  3. Read the answer

    planets[]
    Each planet's sign, degree and house
    aspects[]
    Each aspect, its two bodies and its orb
    wheel
    The chart wheel as SVG, when you ask for it
    Open the API reference

Connect from an AI assistant

Claude and ChatGPT call the API directly through MCP.

Server address
URL
https://api.astromansion.com/mcp
Claude Code
Shell
claude mcp add --transport http astromansion https://api.astromansion.com/mcp --header "X-API-Key: am_..."
claude.ai and ChatGPT
Add this address as a custom connector in settings. Then sign in with your AstroMansion account.

Sign in with your account or send a key to connect. Use counts on your account's plan.

Docs and tools

Quotas and pricing

Free

0USD / month

Requests / month
100
Requests / minute
3

Basic

19USD / month

Requests / month
2,000
Requests / minute
30

Pro

79USD / month

Requests / month
20,000
Requests / minute
120

Build your first integration

After creating a free account, generate an API key on your account page. The key is shown once when created. Compare plans if you need a wider scope.

SDKs and OpenAPI

Keys, limits and payment

When do I get my key?

Your purchase is recorded once Gumroad tells us about your payment. On your account page, enter the code sent to your payment email, then create your API key and copy it. The key is shown only once and is never sent by email, for your safety.

Can I try before buying?

Yes. The birth chart tool on the site needs no signup, and the API's Free plan gives you 100 requests per month at no cost.

Which currency do I pay in?

Prices are in USD and payment goes through Gumroad. If your card is in another currency, your bank converts the amount. The card only needs to allow international online payments.

What happens when I use up my monthly requests?

Until the month ends, new requests are turned away with a 429 quota_exceeded error. Nothing is lost. Your requests renew next month, or you can move up a plan if you do not want to wait.

What is the refund policy?

You can request a refund within 14 days. When the refund is approved, your API key is deactivated automatically.