REST API v1, JSON

API Documentation

Compute your first chart over REST in minutes. 52 calculation techniques and 79 documented operations behind one key.

Getting Started

The API base is api.astromansion.com, active version v1. Every endpoint speaks JSON. Your first call needs no signup. The command below runs without a key under IP-based Free limits. For regular use, create a free account, grab your API key and send it in the X-API-Key header.

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": {}}'

# The response is data only (summary, planets, aspects). For the wheel, add "wheel": true to options. The SVG arrives in the response's "wheel" field.
# To narrow the set of planets:
#   "options": {"include": ["Sun","Moon","Mars"], "exclude": ["Pluto"]}
# For an image, also: POST https://api.astromansion.com/v1/render/svg

Integration kit

Download the versioned contract or a starter client for your environment. The clients are thin REST layers. Keep the API key in trusted server code only.

Authentication

Send your key in the X-API-Key header on every request (or as Authorization: Bearer <key>). Keys start with the am_ prefix. Only their SHA-256 digest is stored server-side. Your key shows your plan (Free, Basic, Pro, Enterprise), which sets the endpoints you can use and your monthly requests. An unknown key returns 401.

cURL
# Recommended: the X-API-Key header
curl "https://api.astromansion.com/v1/geo/search?q=Kad%C4%B1k%C3%B6y&limit=5" -H "X-API-Key: am_..."

# The same thing, the other way
curl "https://api.astromansion.com/v1/geo/search?q=Kad%C4%B1k%C3%B6y&limit=5" -H "Authorization: Bearer am_..."
CaseHTTPWhat it means
No key sent200 / 403 / 429Without either header the request uses anonymous Free access. Free endpoints are limited by IP address. The endpoints of higher plans return 403, and requests over the per-minute or monthly limit return 429.
Key not recognised401Deleted, rotated or mistyped. Generate a new one from your account page.
Your plan does not cover it403The key is valid but this endpoint is closed on your plan. The response names the plan it needs.

Generate your key on the account page and rotate it whenever you like. The old key stops working the moment you do.

Rate Limits & Quotas

Three windows apply together: per-minute rate, daily ceiling and monthly quota. Exceeding any returns 429. Minute and day overruns carry the rate_limited code, and monthly quota exhaustion carries quota_exceeded. Counters bind to the key (or the IP when anonymous). The minute and day windows count every request. The monthly quota counts only answered calculations. A refused or failed request and a place search do not use it.

Plansrequests / morequests / minrequests / day
Free100330
Basic2,000302,000
Pro20,00012020,000
Enterprise200,000600200,000

Endpoint Reference

The 79 endpoints on this page, distinguished by HTTP method and path, are generated from one product manifest and the technique registry. Single-chart calculations take a birth body, and two-chart calculations take birth + partner. Technique settings travel in the options object. Full schemas live in Swagger. The GET /v1/health service check is excluded from this product-operation count; the HTTP benchmark on the accuracy page includes it.

Common request body

All technique endpoints share the same birth body: date (YYYY-MM-DD), time (HH:MM, optional), lat, lon, timezone (hour offset or IANA name), houses (optional house system). A sample transit scan:

cURL
curl -X POST https://api.astromansion.com/v1/transits \
  -H "Content-Type: application/json" \
  -H "X-API-Key: am_..." \
  -d '{"birth": {"date": "1992-11-02", "time": "23:15", "lat": 35.6762, "lon": 139.6503, "timezone": "Asia/Tokyo"}, "options": {"year": 2026, "body": "Saturn"}}'
Core

POST/v1/natal

Computes a natal chart from birth data. The default response contains the big-three summary, positions of the 10 classical planets, and every major aspect between the planets, the Ascendant and the MC that holds within its pair's orb limit, tightest first. The SVG wheel appears in the wheel field only when the request includes wheel=true. When time is omitted, the chart is cast at 12:00 local time, time_known is false, and the answer leaves out the Ascendant, the MC, the houses and every aspect to an angle, since only the time decides them. When timezone is omitted no offset is applied. For exact results send timezone or use the IANA zone returned by geo/search.

Request Fields

FieldTypeRequiredDescription
birth.datestringYesBirth date in YYYY-MM-DD (same as the HTML date input).
birth.timestringNoBirth time, HH:MM. Leave it out when unknown. The chart is then cast at 12:00 local time and the answer leaves out the angles and the houses.
birth.latnumberYesLatitude in decimal degrees. Range -90 to 90.
birth.lonnumberYesLongitude in decimal degrees. Range -180 to 180.
birth.timezonenumber | stringNoAn IANA zone name such as Europe/London is read with the rules in force on the birth's date. A UTC offset in hours such as 3 must lie from -14 to 14 and is taken as given. Without a zone the time is read as UTC.
birth.housesstringNoHouse-system name (for example placidus, whole, equal, or regiomontanus). Invalid names return 422.
options.langstringNoResponse language hint (tr/en).

Response Fields

time_knownWhether the request gave the birth time. False when it did not. The chart is then cast at local noon, and the summary, the houses and the aspects leave out what only the time decides.
summaryBig-three + MC summary: Sun, Moon, ASC, MC keys, each carrying sign and degree (dms). Without a birth time, Sun and Moon only.
planetsList of the 10 classical planets: name, sign, degree (dms), house number and retrograde flag. Without a birth time, house is left out.
aspectsMajor aspects below 1° orb: the two bodies, aspect name and orb (deviation in degrees). Without a birth time, between the planets only.
wheelSVG wheel document present only when wheel=true is sent. Embeddable directly in a page.

POST/v1/sign

Returns one body's sign, degree and house at a birth. The Sun, the Moon and the planets are open on every plan. Other named bodies, such as Juno, Chiron, Ceres and Eris, need Basic or above. Without a birth time there is no degree or house, and the answer gives the signs the body held that day.

Request Fields

FieldTypeRequiredDescription
bodystringYesThe body's published name, for example Venus or Juno. An unknown name is refused as a validation error.
birthobjectYesThe birth, with the same fields as the natal request's birth.
options.langstringNoResponse language hint (tr/en).

Response Fields

sign, dms, houseThe sign at the birth's moment, the degree within it, and the house. Without a time the sign is read at the start of the day, and the degree and house are null.
retrogradeWhether the body moved backwards as seen from Earth. Null for the Sun and the Moon.
day_signs, changeThe signs the body held on the birth's day, and the local time it changed sign, HH:MM, when it did.

GET/v1/geo/search

Returns place candidates for a birth-place picker. Searches a measured table of 286,480 places. The search is case- and diacritic-insensitive, handles the Turkish dotless-i correctly, and tolerates small typos. The returned timezone is an IANA zone. Using that zone's real offset at the birth date prevents historical daylight-saving mistakes.

FieldTypeRequiredDescription
qstringYesFree-text place query, at least 2 characters. Text after a comma is a region hint: Springfield, US.
limitintegerNoMaximum results, 1-20, default 6.

results[]: Place candidate: name, label (with region), lat, lon and IANA timezone fields.

cURL
curl "https://api.astromansion.com/v1/geo/search?q=Kad%C4%B1k%C3%B6y&limit=5" -H "X-API-Key: am_..."

POST/v1/aspects

Full natal aspect list

PlanFree
Bodybirth
optionsorb, limit
cURL
curl -X POST https://api.astromansion.com/v1/aspects \
  -H "X-API-Key: am_..." -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": {"orb": 6}}'

POST/v1/chart

Extended natal chart. Up to 100 named selections on Basic, paginated full catalog on Pro

PlanBasic
Bodybirth
optionscategories, all_bodies, catalog_offset, catalog_limit (1..160), include, exclude, exclusive

Field-level plan requirements

FieldTypeValuePlanDescription
all_bodiesbooleantrueProKeep the default false value on Basic. true opens traversal of the full named catalog in pages of at most 160 bodies and requires Pro or above. Continue with catalog_offset until catalog_page.next_offset is null.
catalog_limitinteger1..160BasicA catalog page accepts 1 to 160 bodies. The 160-body ceiling is fixed. Larger values return 422 and are never silently clamped.

The response when your plan does not cover it

HTTP
HTTP/1.1 403 Forbidden
{"error": {"code": "forbidden", "message": "This feature is not included in your plan.", "detail": "The full catalog, selections above 100 bodies, and all_bodies require the Pro plan or above"}}

POST/v1/planetary-system

A planet's satellites from 1900 to 2100 in three frames: seen from Earth, around the planet, and projected onto the natal circle

PlanBasic
Bodybirth
optionsparent, satellites, correction, include_geocentric
Predictive

POST/v1/saturn-return

Computes the exact moments of Saturn returns from birth data. Each event carries the return number, date (DD-MM-YYYY), time (HH:MM, UT), sign and degree. The request body is identical to natal.

GET/v1/moon-phases

This is the Free annual calendar endpoint. It returns the year's four principal Moon phases in order and localizes sign names with lang. Each event carries the phase name, date, time (UT), sign and degree.

FieldTypeRequiredDescription
yearintegerYesCalendar year, 1800-2400.
langstringOptionalResponse language hint (tr/en).

The annual calendar and filtered query are different endpoints

GET is a compact, localized annual view for consumer calendars. POST is a developer query with month or phase filters and astronomical machine fields. Neither computes a birth chart.

ContractGET /v1/moon-phasesPOST /v1/moon-phases/query
Minimum planFreeBasic
InputQuery string: year is required and lang is optional. There is no birth body.JSON: year is required, and month and only are optional. There is no birth body.
Outputyear plus localized events with display fields: phase, date, time, sign and dms.year, month and only plus machine events with jd and lon. The phase and sign values remain stable English identifiers.
When to choose itA complete annual calendar or end-user interface.An integration that needs one month, selected phase types or astronomical coordinates.

The old /v1/moon-phase path remains available for backward compatibility, but new integrations should use /v1/moon-phases/query.

GET/v1/retrogrades

Returns the planetary retrograde cycles of the given year, a list of cycles for each planet. Every cycle carries the retrograde station (date, sign, degree) and the direct station (date, sign, degree).

FieldTypeRequiredDescription
yearintegerYesCalendar year, 1800-2400.
langstringOptionalResponse language hint (tr/en).

GET/v1/eclipses

Returns the solar and lunar eclipses of the given year in order. Each event carries the kind (solar/lunar), subtype, date, time (UT), sign and degree.

FieldTypeRequiredDescription
yearintegerYesCalendar year, 1800-2400.
langstringOptionalResponse language hint (tr/en).

GET/v1/void-moon

Returns the void-of-course Moon intervals of the given month. Each interval carries its start and end date/time, the ingress sign and duration in hours.

FieldTypeRequiredDescription
yearintegerYesCalendar year, 1800-2400.
monthintegerYesMonth, 1-12.
langstringOptionalResponse language hint (tr/en).

POST/v1/age-point

Huber age point through the houses

PlanBasic
Bodybirth
optionsage, date
cURL
curl -X POST https://api.astromansion.com/v1/age-point \
  -H "X-API-Key: am_..." -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": {"age": 36.5}}'

POST/v1/almanac

Almanac: eclipses, retrogrades, planetary hours, void-of-course Moon

PlanBasic
Bodybirth
optionsmode, year, month, date
cURL
curl -X POST https://api.astromansion.com/v1/almanac \
  -H "X-API-Key: am_..." -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": {"mode": "voc", "year": 2025, "month": 6}}'

POST/v1/daily

Daily sky digest

PlanBasic
Bodybirth
optionsdate
cURL
curl -X POST https://api.astromansion.com/v1/daily \
  -H "X-API-Key: am_..." -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": {"date": "2025-06-01"}}'

POST/v1/great-conjunctions

Jupiter and Saturn's great conjunctions

PlanBasic
Bodybirth
optionsfrom_year, to_year
cURL
curl -X POST https://api.astromansion.com/v1/great-conjunctions \
  -H "X-API-Key: am_..." -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": {"from_year": 1900, "to_year": 2100}}'

POST/v1/ingresses

Equinoxes, solstices, and the Aries ingress chart

PlanBasic
Bodybirth
optionsyear
cURL
curl -X POST https://api.astromansion.com/v1/ingresses \
  -H "X-API-Key: am_..." -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": {"year": 2027}}'

POST/v1/lunar-return

Lunar return charts

PlanBasic
Bodybirth
optionsyear
cURL
curl -X POST https://api.astromansion.com/v1/lunar-return \
  -H "X-API-Key: am_..." -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": {"year": 2025}}'

POST/v1/moon-phases/query

Month/phase-filtered developer query without a birth body, including jd and lon

PlanBasic
Bodybirth
optionsyear, month, only

POST/v1/primary-directions

Primary directions of the Ascendant and the Midheaven

PlanBasic
Bodybirth
optionskey, max_age
cURL
curl -X POST https://api.astromansion.com/v1/primary-directions \
  -H "X-API-Key: am_..." -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": {"key": "naibod", "max_age": 80}}'

POST/v1/progression

Secondary progression

PlanBasic
Bodybirth
optionsdate, age, angle_method, orb
cURL
curl -X POST https://api.astromansion.com/v1/progression \
  -H "X-API-Key: am_..." -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": {"age": 30}}'

POST/v1/solar-arc

Solar arc direction

PlanBasic
Bodybirth
optionsdate, age, orb
cURL
curl -X POST https://api.astromansion.com/v1/solar-arc \
  -H "X-API-Key: am_..." -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": {"age": 30}}'

POST/v1/solar-return

Solar return chart

PlanBasic
Bodybirth
optionsyear
cURL
curl -X POST https://api.astromansion.com/v1/solar-return \
  -H "X-API-Key: am_..." -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": {"year": 2025}}'

POST/v1/stations

Planetary stations and retrograde shadow periods

PlanBasic
Bodybirth
optionsyear, from, to, body
cURL
curl -X POST https://api.astromansion.com/v1/stations \
  -H "X-API-Key: am_..." -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": {"body": "Mercury", "year": 2025}}'

POST/v1/timeline

Life timeline (four systems on one axis)

PlanBasic
Bodybirth
optionsage_from, age_to
cURL
curl -X POST https://api.astromansion.com/v1/timeline \
  -H "X-API-Key: am_..." -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": {"age_from": 0, "age_to": 40}}'

POST/v1/transit-hits

Exact aspect moments (bisection precision)

PlanBasic
Bodybirth
optionsfrom, to, body, natal_point, aspects
cURL
curl -X POST https://api.astromansion.com/v1/transit-hits \
  -H "X-API-Key: am_..." -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": {"body": "Mars", "natal_point": "Sun", "from": "2025-01-01", "to": "2025-12-31", "aspects": ["Conjunction", "Square", "Opposition"]}}'

POST/v1/transits

Transit scan: natal contacts across a year or date range

PlanBasic
Bodybirth
optionsyear, from, to, body, orb, aspects
cURL
curl -X POST https://api.astromansion.com/v1/transits \
  -H "X-API-Key: am_..." -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": {"year": 2025}}'

POST/v1/venus-star-point

Venus star point and the eight-year star

PlanBasic
Bodybirth
cURL
curl -X POST https://api.astromansion.com/v1/venus-star-point \
  -H "X-API-Key: am_..." -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"}}'
Relational

POST/v1/compatibility

0-100 compatibility score with verdict

PlanBasic
Bodybirth + partner
optionslanguage
cURL
curl -X POST https://api.astromansion.com/v1/compatibility \
  -H "X-API-Key: am_..." -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"}, "partner": {"date": "1988-03-21", "time": "06:45", "lat": 40.7128, "lon": -74.006, "timezone": -5.0}, "options": {"language": "en"}}'

POST/v1/composite

Midpoint composite

PlanBasic
Bodybirth + partner
optionscategories
cURL
curl -X POST https://api.astromansion.com/v1/composite \
  -H "X-API-Key: am_..." -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"}, "partner": {"date": "1988-03-21", "time": "06:45", "lat": 40.7128, "lon": -74.006, "timezone": -5.0}, "options": {"categories": ["planets"]}}'

POST/v1/pair-aspects

Cross-chart aspects

PlanBasic
Bodybirth + partner
optionsorb, limit
cURL
curl -X POST https://api.astromansion.com/v1/pair-aspects \
  -H "X-API-Key: am_..." -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"}, "partner": {"date": "1988-03-21", "time": "06:45", "lat": 40.7128, "lon": -74.006, "timezone": -5.0}, "options": {"orb": 3}}'

POST/v1/synastry

Synastry analysis

PlanBasic
Bodybirth + partner
cURL
curl -X POST https://api.astromansion.com/v1/synastry \
  -H "X-API-Key: am_..." -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"}, "partner": {"date": "1988-03-21", "time": "06:45", "lat": 40.7128, "lon": -74.006, "timezone": -5.0}}'
Traditional

POST/v1/custom-lot

Custom Arabic lot (A + B - C)

PlanPro
Bodybirth
optionsformula, name, sect_swap
cURL
curl -X POST https://api.astromansion.com/v1/custom-lot \
  -H "X-API-Key: am_..." -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": {"formula": "Asc + Moon - Sun"}}'

POST/v1/decennials

Valens' decennials

PlanPro
Bodybirth
optionsmax_age
cURL
curl -X POST https://api.astromansion.com/v1/decennials \
  -H "X-API-Key: am_..." -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": {"max_age": 80}}'

POST/v1/dignities

Classical dignities, mutual receptions and almuten

PlanPro
Bodybirth
optionsterms

POST/v1/electional

Electional window scan

PlanPro
Bodybirth
optionsfrom, to, top, step_minutes
cURL
curl -X POST https://api.astromansion.com/v1/electional \
  -H "X-API-Key: am_..." -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": {"from": "2025-06-01", "to": "2025-06-07"}}'

POST/v1/firdaria

Firdaria periods

PlanPro
Bodybirth
optionsmax_age
cURL
curl -X POST https://api.astromansion.com/v1/firdaria \
  -H "X-API-Key: am_..." -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": {"max_age": 75}}'

POST/v1/horary

Horary (question moment) chart in Regiomontanus houses, judging a chosen house

PlanPro
Bodybirth
optionshouse
cURL
curl -X POST https://api.astromansion.com/v1/horary \
  -H "X-API-Key: am_..." -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": {"house": 7}}'

POST/v1/lots

All Arabic parts (38 classical lots)

PlanPro
Bodybirth
cURL
curl -X POST https://api.astromansion.com/v1/lots \
  -H "X-API-Key: am_..." -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"}}'

POST/v1/mansions

Lunar mansion (28 manzil)

PlanPro
Bodybirth
cURL
curl -X POST https://api.astromansion.com/v1/mansions \
  -H "X-API-Key: am_..." -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"}}'

POST/v1/profection

Annual profection and lord of the year

PlanPro
Bodybirth
optionsage, date
cURL
curl -X POST https://api.astromansion.com/v1/profection \
  -H "X-API-Key: am_..." -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": {"age": 30}}'

POST/v1/temperament

Temperament by Lilly's method

PlanPro
Bodybirth
cURL
curl -X POST https://api.astromansion.com/v1/temperament \
  -H "X-API-Key: am_..." -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"}}'

POST/v1/zodiacal-releasing

Zodiacal releasing (Spirit/Fortune)

PlanPro
Bodybirth
optionslot, levels, max_age
cURL
curl -X POST https://api.astromansion.com/v1/zodiacal-releasing \
  -H "X-API-Key: am_..." -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": {"lot": "spirit", "max_age": 60}}'
Vedic (Jyotish)

POST/v1/nakshatra

The Moon's nakshatra, pada and ruler

PlanPro
Bodybirth
optionsayanamsa
cURL
curl -X POST https://api.astromansion.com/v1/nakshatra \
  -H "X-API-Key: am_..." -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": {"ayanamsa": "true_citra"}}'

POST/v1/navamsa

Divisional chart (D9 Navamsa and other vargas)

PlanPro
Bodybirth
optionsdivision, ayanamsa, node_mode
cURL
curl -X POST https://api.astromansion.com/v1/navamsa \
  -H "X-API-Key: am_..." -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": {"division": "D9"}}'

POST/v1/vedic-chart

Sidereal Vedic chart (rashi, nakshatra, lagna)

PlanPro
Bodybirth
optionsayanamsa, node_mode
cURL
curl -X POST https://api.astromansion.com/v1/vedic-chart \
  -H "X-API-Key: am_..." -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": {"ayanamsa": "true_citra", "node_mode": "true"}}'

POST/v1/vimshottari

Vimshottari dasha (120-year planetary periods)

PlanPro
Bodybirth
optionsayanamsa, levels
cURL
curl -X POST https://api.astromansion.com/v1/vimshottari \
  -H "X-API-Key: am_..." -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": {"levels": 2}}'
Advanced

POST/v1/antiscia

Antiscia and contra-antiscia

PlanPro
Bodybirth
optionsorb
cURL
curl -X POST https://api.astromansion.com/v1/antiscia \
  -H "X-API-Key: am_..." -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": {"orb": 1}}'

POST/v1/astrocartography

Astrocartography lines

PlanPro
Bodybirth
optionsplanets
cURL
curl -X POST https://api.astromansion.com/v1/astrocartography \
  -H "X-API-Key: am_..." -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": {"planets": ["Sun", "Mars"]}}'

POST/v1/custom-body

User-defined Keplerian body (osculating elements, elliptic/hyperbolic)

PlanBasic
Bodybirth
optionselements, name, heliocentric
cURL
curl -X POST https://api.astromansion.com/v1/custom-body \
  -H "X-API-Key: am_..." -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": {"name": "Vulcan", "elements": {"e": 0.02, "a": 0.39, "incl": 7.0, "node": 48.3, "peri": 29.1, "M0": 174.8, "epoch": 2451545.0}}}'

GET/v1/custom-body/list

List custom bodies owned by the API key

PlanBasic
Bodybirth

POST/v1/custom-body/save

Save a custom Keplerian body and compute it in the supplied chart

PlanBasic
Bodybirth
optionsname, elements, heliocentric, save, wheel, aspects
cURL
curl -X POST https://api.astromansion.com/v1/custom-body/save \
  -H "X-API-Key: am_..." -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"}, "name": "Vulcan", "elements": {"e": 0.02, "a": 0.39, "incl": 7.0, "node": 48.3, "peri": 29.1, "M0": 174.8, "epoch": 2451545.0}, "save": true, "wheel": false, "aspects": false}'

DELETE/v1/custom-body/{name}

Delete a saved custom body by name

PlanBasic
Bodybirth
optionsname (path)

POST/v1/custom-body/{name}

Compute a saved custom body by name in the supplied chart

PlanBasic
Bodybirth
optionsname (path), wheel, aspects

POST/v1/declinations

Declination parallels

PlanPro
Bodybirth
optionsorb
cURL
curl -X POST https://api.astromansion.com/v1/declinations \
  -H "X-API-Key: am_..." -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": {"orb": 1}}'

POST/v1/draconic

Draconic zodiac

PlanPro
Bodybirth
cURL
curl -X POST https://api.astromansion.com/v1/draconic \
  -H "X-API-Key: am_..." -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"}}'

POST/v1/fixed-stars

Fixed stars and the points on them

PlanPro
Bodybirth
optionsstars, orb
cURL
curl -X POST https://api.astromansion.com/v1/fixed-stars \
  -H "X-API-Key: am_..." -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": {"stars": ["Regulus", "Spica"], "orb": 1.0}}'

POST/v1/harmonics

Harmonic chart

PlanPro
Bodybirth
optionsnumber, orb
cURL
curl -X POST https://api.astromansion.com/v1/harmonics \
  -H "X-API-Key: am_..." -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": {"number": 5}}'

POST/v1/heliacal

Heliacal rising and setting events

PlanPro
Bodybirth
optionsbody, start, events
cURL
curl -X POST https://api.astromansion.com/v1/heliacal \
  -H "X-API-Key: am_..." -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": {"body": "Venus", "start": "2026-01-01"}}'

POST/v1/heliocentric

Heliocentric positions

PlanPro
Bodybirth
cURL
curl -X POST https://api.astromansion.com/v1/heliocentric \
  -H "X-API-Key: am_..." -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"}}'

POST/v1/midpoints

Midpoints

PlanPro
Bodybirth
optionsorb
cURL
curl -X POST https://api.astromansion.com/v1/midpoints \
  -H "X-API-Key: am_..." -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": {"orb": 1.5}}'

POST/v1/parans

Fixed-star parans

PlanPro
Bodybirth
optionsstars, tolerance_minutes
cURL
curl -X POST https://api.astromansion.com/v1/parans \
  -H "X-API-Key: am_..." -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": {"stars": ["Sirius", "Regulus"]}}'

POST/v1/patterns

Pattern detection: Jones shape, stelliums, aspect figures

PlanPro
Bodybirth
cURL
curl -X POST https://api.astromansion.com/v1/patterns \
  -H "X-API-Key: am_..." -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"}}'

POST/v1/query

MansionSQL: SELECT/WHERE/JOIN/subqueries over a chart

PlanBasic
Bodybirth
optionssql

POST/v1/rectification

Birth time rectification

PlanPro
Bodybirth
optionsevents, window_minutes, step_minutes
cURL
curl -X POST https://api.astromansion.com/v1/rectification \
  -H "X-API-Key: am_..." -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": {"events": [{"date": "2020-05-01", "kind": "marriage"}]}}'
Rendering & Export

POST/v1/export/csv

Chart data as CSV

PlanBasic
Bodybirth
optionsdelimiter, wanted, exclude, add, categories

POST/v1/export/pdf

Multi-page PDF report

PlanBasic
Bodybirth
optionstheme, title, watermark, wanted, exclude, add, categories

POST/v1/export/report

Sectioned PDF report from Basic, with white_label and logo_b64 from Pro

PlanBasic
Bodybirth
optionssections, title, author, custom_text, accent, white_label, logo_b64, watermark

Field-level plan requirements

FieldTypeValuePlanDescription
white_labelbooleantrueProAt the default false value, a report keeps AstroMansion branding. true removes that branding and is available on Pro and above.
logo_b64stringnon-emptyProAn empty value is valid on every plan. Supplying a base64 or data-URI logo requires Pro. An unauthorized value is rejected with 403 instead of being silently ignored.

The response when your plan does not cover it

HTTP
HTTP/1.1 403 Forbidden
{"error": {"code": "forbidden", "message": "This feature is not included in your plan.", "detail": "white_label and logo_b64 require the Pro plan or above"}}

POST/v1/render/astrocartography

Planetary lines over a world map, as SVG or PNG

PlanBasic
Bodybirth
optionsplace, lang, format

POST/v1/render/biwheel

BiWheel: natal inside, second chart outside

PlanBasic
Bodybirth + partner
optionswatermark

POST/v1/render/chart

Any chart as a styled wheel: natal, rising sign, transits, synastry, composite, returns, progressions and solar arc. Without a birth time the wheel draws no houses or angles, and the rising sign is refused

Design, preview and download your chart.

PlanBasic
Bodybirth
optionstype, format, partner, theme, style, label, title, scale, resolution, width, date, time, age, year, wanted, exclude, add, categories, zodiac, ayanamsa
cURL
curl -X POST https://api.astromansion.com/v1/render/chart \
  -H "X-API-Key: am_..." -H "Content-Type: application/json" \
  -d '{"type": "transits", "format": "svg", "birth": {"date": "1990-07-15", "time": "14:30", "lat": 51.5074, "lon": -0.1278, "timezone": "Europe/London", "houses": "placidus"}, "options": {"date": "2026-10-27", "time": "12:00", "theme": "light", "style": {"preset": "editorial"}}}'

POST/v1/render/png

Chart wheel PNG image

PlanBasic
Bodybirth
optionstheme, style, resolution, width, wanted, exclude, add, categories

POST/v1/render/sharecard

1080x1920 story card, natal or synastry

PlanBasic
Bodybirth + partner
optionstype, names, lang

POST/v1/render/svg

Chart wheel SVG. With interactive it returns a rotatable HTML view

PlanBasic
Bodybirth
optionstheme, style, scale, label, interactive, wanted, exclude, add, categories
Batch

The two batch endpoints deliver the same work differently

Both endpoints accept up to 20 independent techniques in one HTTP body and isolate item failures. Choose based on whether results should return on the same connection or through the queue.

ContractPOST /v1/batchPOST /v1/jobs/batch
Minimum plan and quotaEnterprise. Monthly plan quota 200,000Pro or Enterprise. Monthly quotas 20,000 / 200,000
ExecutionComputes items sequentially while the request connection remains open.Queues the items. At most 3 jobs run at the same time.
Initial response200. Each item's result or safe error envelope is returned inline.202. Each item returns a job id, queued state and a one-time webhook secret when requested.
Limits and backpressureThe body holds up to 20 items and leaves no persistent active job.The body holds up to 20 items. Queued + running is capped at 20 jobs per identity.
Result deliveryInline before the connection closes. No polling or webhook.Poll with GET /v1/jobs/{job_id} or use a signed webhook. Records remain for 24 hours.
Billing behaviorThere is no extra batch surcharge. Each answered item consumes one monthly request. A refused item, or one whose calculation fails, consumes none. The outer batch envelope does not consume another unit.

POST/v1/batch

Enterprise synchronous batch: runs items in order and returns results in the same 200 response

PlanEnterprise
Bodybirth
optionsitems[]

GET/v1/jobs

List recent async jobs owned by the API key

PlanPro
Bodybirth

POST/v1/jobs

Queue a long-running technique with polling and signed callback support

PlanPro
Bodybirth
optionstechnique, body, callback_url

POST/v1/jobs/batch

Pro asynchronous batch: splits items into independent jobs and returns job ids with 202

PlanPro
Bodybirth
optionsitems[]

GET/v1/jobs/{job_id}

Return an async job's state and its result when complete

PlanPro
Bodybirth
optionsjob_id (path)

Webhook Delivery

For Pro and higher asynchronous jobs, supplying callback_url sends the terminal result as a signed JSON POST. Polling always remains available. A failed webhook delivery does not change the calculation result.

Create the job and callback

cURL
curl -X POST https://api.astromansion.com/v1/jobs \
  -H "X-API-Key: am_..." -H "Content-Type: application/json" \
  -d '{"technique": "dignities", "body": {"birth": {"date": "1985-05-09", "time": "03:50", "lat": -23.5505, "lon": -46.6333, "timezone": "America/Sao_Paulo"}, "options": {}}, "callback_url": "https://example.com/webhooks/astromansion"}'

{"id": "job-id", "state": "queued", "technique": "dignities", "poll": "/v1/jobs/job-id", "webhook_secret": "save-this-once"}

webhook_secret is shown only in the 202 creation response. Store it securely with the job id. Polling and list responses never expose it again.

Delivery body and policy

JSON
{"id": "job-id", "state": "done", "technique": "dignities", "result": {}, "error": null, "finished_at": "2026-08-01T12:00:00+00:00"}

X-AstroMansion-Signature carries the HMAC-SHA256 signature of the exact raw body under the per-job secret, formatted as sha256=<hex>. Each attempt times out after 10 seconds. After the first attempt, delivery retries after 2, 8, 30 seconds for at most 4 total attempts. The job and delivery state remain for 24 hours. The webhook field in GET /v1/jobs/{job_id} exposes attempts, last_status and last_error.

Verify the signature and handle retries safely

Python
import hashlib
import hmac
import json

raw_body = request.get_data()
provided = request.headers.get("X-AstroMansion-Signature", "")
expected = "sha256=" + hmac.new(
    webhook_secret.encode("utf-8"), raw_body, hashlib.sha256
).hexdigest()

if not hmac.compare_digest(provided, expected):
    abort(401)

event = json.loads(raw_body)
if already_processed(event["id"]):
    return "", 200

Verify against the received raw bytes, not parsed JSON, and use a constant-time comparison. Production callbacks must use HTTPS. Redirects are not followed and private-network targets are rejected. Retries carry the same job id. Use id as the idempotency key and return 2xx again for an event already processed successfully.

Error Codes

Every error uses the same envelope: error.code is machine-readable, error.message is human-readable, and error.detail, when present, says what in the request to correct. The HTTP status gives the error class.

JSON
{"error": {"code": "rate_limited", "message": "..."}}
CodeHTTPMeaning
unauthorized401The key is invalid or unknown.
forbidden403The endpoint or an option you set is outside your plan, and error.detail names the plan that includes it.
rate_limited429Per-minute or daily rate limit exceeded.
quota_exceeded429Monthly request quota exhausted.
busy503The compute queue is full. Retry shortly.
compute_failed400The input could not be computed (an invalid date or location, for example).
validation422The body does not match the schema, and error.detail names the field that failed.
query_too_wide400The MansionSQL query asks for more bodies than one chart can hold. Narrow it with WHERE.

Product Terms

These six names mean the same thing across the site, API and pricing page. They are not interchangeable.

Calculation technique
A specific astrological calculation such as a natal chart, transit or synastry. It is not an HTTP address.
Endpoint
The combination of an HTTP method and a versioned path. One technique may be exposed through more than one endpoint.
Web tool
A site interface with an input form and result view. It may call one or more calculation techniques.
PDF report
A downloadable document generated from a calculation result. It is not itself a calculation technique or a subscription.
Celestial body
A physical astronomical object such as a planet, asteroid or star. Calculated points such as the Ascendant and Arabic lots are not celestial bodies.
Catalog entry
A record that can be found by name. Because entries include physical bodies and calculated points, this is not a celestial-body count.

Concepts

House Systems

The default is Placidus, and 20 systems are supported: placidus, koch, campanus, regiomontanus, porphyry, whole_sign, equal, equal_aries, equal_mc, vehlow, alcabitius, morinus, meridian, horizon, apc, topocentric, pullen_sd, pullen_sr, sunshine, sripati. Beyond the polar circle Placidus and Koch are undefined. Use whole or equal at those latitudes.

Aspects

Major aspects: conjunction (0°), opposition (180°), trine (120°), square (90°), sextile (60°). The Free response is limited to majors. Orb is the deviation from the exact angle, sorted tightest first.

Body Catalog

The catalog holds 1,308 named entries across 15 categories. This count combines physical bodies with calculated points such as Arabic lots and hypothetical points. It is not a unique physical-body count. Free responses are limited to the 10 classical planets. Basic opens up to 100 named-entry selections per request. Pro opens full named-catalog exports and the all_bodies operation.

Body selection (include / exclude / categories / exclusive)

Technique endpoints that support body selection take the keys inside options. On /v1/chart, include: ["Ceres","Chiron"] adds names to the default or category set. Likewise exclude: ["Pluto"] removes listed names and categories: ["asteroids","centaurs"] opens extended categories. Finally exclusive: true removes the default set. Use include with exclusive: true to calculate only the include list. Under the separate free /v1/natal contract, include is the final planet filter.

Timezone Resolution

An IANA zone is read with the rule in force on the birth's date. A London birth on 15-01-1990 computes at +0 and one on 15-07-1990 at +1, because that year's summer time applies. The rules come from the IANA time zone database, release 2026f. A time the clocks showed twice as they went back is read on its first pass. A time they skipped as they went forward is read with the offset in force before the change. To read either another way, send the offset in hours as timezone. One hour of offset error swings the Ascendant by about fifteen degrees, so pair the coordinates with the IANA zone that geo/search returns.