Natal Chart API: Birth Chart Calculations for Developers
DivineAPI's Natal Chart API generates birth charts from date, time, and place. Returns planetary positions, house cusps, aspects, and the natal wheel image as structured JSON.
DivineAPI Team
Updated: April 25, 2026
Published: April 25, 2026 Western
What does the Natal Chart API do?
You give the Natal Chart API three inputs - date, time, and place of birth - and it returns a complete birth chart. That includes planetary positions, house cusps, aspects, the Ascendant, the Midheaven, and a renderable wheel image. The output is structured JSON, ready to render in any frontend.
The API sits inside the Western astrology suite of DivineAPI. You get REST endpoints for every building block of a natal chart: planetary positions, house cusps, the aspect table, the natal wheel image, plus supplementary objects like Arabic Lots, asteroids, and fixed stars. The wheel chart adds a base64-encoded SVG so you can drop the chart straight into an <img> tag. It is built for developers integrating astrology features into web and mobile apps, white-label platforms, dashboards, and PDF report generators.
What problems does this API solve?
You have a date, a time, and a city. Turning that into a usable birth chart on your own means an ephemeris, a house-system implementation, an aspect engine with orb tuning, and historically-correct timezone handling. The Natal Chart API removes that whole stack. You POST birth data, you get back a calculated chart.
To build it yourself you would license or port an ephemeris library, validate it across edge cases like polar latitudes, build an aspect engine, and maintain timezone tables that shift every time a government changes DST rules. Six-month build for one engineer, and most teams never finish.
The API does the work. Swiss Ephemeris runs the calculation - the same engine professional astrology software has used for decades, sourced from NASA JPL data. You get arc-second precision on every planet position. Twenty-plus house systems are exposed via a single parameter (Placidus, Koch, Regiomontanus, Campanus, Equal, Whole Sign, Porphyry, Topocentric, Alcabitius, Gauquelin Sectors).
What inputs does the Natal Chart API need?
You pass birth data: full name, date components (day, month, year), time components (hour, minute, second), gender, place of birth as free text, decimal latitude and longitude, and timezone offset from UTC. Optional parameters control language, house system, aspect filtering, and orb mode. Authentication uses a Bearer token plus an api_key field in the body.
Mandatory parameters:
| Parameter | Type | What it is |
|---|---|---|
api_key |
string | Issued from your DivineAPI dashboard |
full_name |
string | Native's full name (used in reports) |
day, month, year |
string | Date components |
hour, min, sec |
string | Time components in 24-hour format |
gender |
string | male, female, or other |
place |
string | Free-text birth city + country |
lat, lon |
string | Decimal latitude + longitude of the birth place |
tzone |
string | Timezone offset from UTC (e.g. 5.5 for IST) |
Optional parameters (varies per endpoint):
| Parameter | Type | What it is |
|---|---|---|
lan |
string | Language code: en, hi, pt, fr, de, ja, tr, ru, it, es, nl, pl |
house_system |
string | Single-letter code; P (Placidus) by default |
aspects_type |
string | ALL, MAJOR_ASPECTS, MINOR_ASPECTS, or a comma-separated custom list |
orb_mode |
string | FIXED (degree-minute ranges) or PERCENTAGE (-90% to +100% of default) |
The wheel chart endpoint adds styling options: wheel_color, text_color, glyph style, and twelve graphic layout presets. Authentication carries through every request via the Bearer token.
How is the API response structured?
Every endpoint returns the same envelope: a top-level success flag (1 = OK) and a data block carrying the calculated payload. Errors return success = 0 with a descriptive message. Rate-limited requests get HTTP 429. The shape of data varies by endpoint, but the wrapper stays consistent across the whole catalog.
You can write a single response handler that unwraps every Natal endpoint. The data block is where the variation lives. Planetary Positions returns an array of celestial bodies. House Cusps returns twelve houses plus the Ascendant, Midheaven, and Vertex. The Aspect Table returns pairwise aspect objects. The Natal Wheel Chart adds an SVG string and a base64-encoded image alongside the structured chart description.
What do the core output objects look like?
You are rendering a chart. You need three object shapes from the response: a planetary body object (sixteen per chart), a house cusp object (twelve plus three derived points), and an aspect object (one per pairwise aspect). Field names stay consistent across endpoints, so you write one renderer and reuse it.
Planetary body (Planetary Positions, transit endpoints):
| Field | What it is |
|---|---|
name |
Body name (Sun, Moon, Mars, Mercury, Venus, etc.) |
full_degree |
Absolute ecliptic longitude (0-360) |
sign |
Zodiac sign at this position |
sign_no |
Zodiac sign number (1 for Aries through 12 for Pisces) |
longitude |
Sign-relative position in D:M:S format |
speed |
Daily motion (negative when retrograde) |
is_retro |
Retrograde flag |
house |
House number (1-12) |
element |
Fire, Earth, Air, or Water |
modality |
Cardinal, Fixed, or Mutable |
A full natal call returns sixteen points: Sun, Moon, the eight planets, lunar nodes (mean or true), Chiron, Midheaven, Ascendant, Part of Fortune, and Lilith.
House cusp (House Cusps endpoint):
| Field | What it is |
|---|---|
house |
House number (1-12) |
degree |
Exact cusp degree |
sign, sign_no |
Zodiac sign at the cusp |
longitude |
Sign-relative position in D:M:S format |
Aspect object (Aspect Table endpoint):
| Field | What it is |
|---|---|
planetOne, planetTwo |
The two bodies in aspect |
aspect_type |
Conjunction, Sextile, Square, Trine, Opposition, etc. |
orb |
Distance from exact aspect, in degrees |
What does a real API response look like?
Below is a trimmed response from the Planetary Positions endpoint for a sample birth (24 May 2023, 14:40:43 IST, New Delhi). The full response includes sixteen celestial points. The slice below shows the Ascendant, Sun, Moon, and Mars to keep the example readable.
{
"success": 1,
"data": [
{
"name": "Ascendant",
"full_degree": "185.7194554",
"sign": "Libra",
"sign_no": 7,
"longitude": "5:43:10",
"speed": "317.7084874",
"is_retro": "false",
"house": 1,
"element": "Air",
"modality": "Cardinal"
},
{
"name": "Sun",
"full_degree": "62.9674391",
"sign": "Gemini",
"sign_no": 3,
"longitude": "2:58:3",
"speed": "0.9614368",
"is_retro": "false",
"house": 8,
"element": "Air",
"modality": "Mutable"
},
{
"name": "Moon",
"full_degree": "117.3008709",
"sign": "Cancer",
"sign_no": 4,
"longitude": "27:18:3",
"speed": "12.0107241",
"is_retro": "false",
"house": 10,
"element": "Water",
"modality": "Cardinal"
},
{
"name": "Mars",
"full_degree": "122.1365708",
"sign": "Leo",
"sign_no": 5,
"longitude": "2:8:12",
"speed": "0.5736328",
"is_retro": "false",
"house": 10,
"element": "Fire",
"modality": "Fixed"
}
]
}
What can you build with the Natal Chart API?
You can ship astrology dashboards, white-label personality reports, compatibility tools, transit-based content engines, onboarding widgets, and esoteric calculators. The API gives you the calculation primitives. The experience layer is yours.
-
Astrology dashboards. Render the Natal Wheel Chart SVG, overlay aspect lines, and pull interpretation panels from the report endpoints.
-
White-label personality reports. Combine Planetary Positions, House Cusps, the Aspect Table, and the General Sign / General House report endpoints to generate per-user writeups in twelve languages.
-
Compatibility tools. Pair two charts via the Synastry endpoints. Composite endpoints merge two natives into a single derived chart.
-
Onboarding widgets. Natal Insights gives you element distribution, modality balance, and hemisphere dominance. A snapshot for first-touch UI, not a full chart.
-
Content engines. Store a user's natal chart once, then call Daily, Weekly, or Monthly Transit each cycle. You get personalised forecasts without recomputing the natal.
-
Esoteric tooling. Arabic Lots, Asteroid Positions, Fixed Stars Details, and Planetary Midpoints extend the chart into Hellenistic and modern advanced features.
How accurate is the calculation?
You are quoting specific degrees and signs to your users, so accuracy is non-negotiable. The Natal Chart API runs on Swiss Ephemeris, sourced from NASA JPL ephemeris data. You get arc-second precision on every planet position across the supported date range. More than twenty house systems are exposed via the house_system parameter, with Placidus as the default.
At extreme latitudes (above roughly 66 degrees), some quadrant-based house systems become unstable near the poles. Prefer Whole Sign or Equal House for those births. If the birth time is unknown, pass 12:00:00 and treat house placements and the rising sign as approximate. Planet positions stay reliable within a degree even with a missing time.
Timezone handling is per-request via the tzone parameter. You pass the offset from UTC; the API does not infer DST or historical offsets, so feed it the correct value for the birth datetime (e.g. 5.5 for IST).
How does this API fit within DivineAPI?
You are picking an entry point for Western astrology features. The Natal Chart API is that entry point. It pairs with the Synastry endpoints for relationship work, Composite endpoints for derived two-person charts, and the Transit endpoints (Daily, Weekly, Monthly, Full, Basic) for time-based predictions that overlay onto a stored natal chart.
Teams building Indian astrology features cross-reference the Indian API suite (Vimshottari Dashas, Vedic chart systems, Panchang). Frontend teams combine the wheel chart with the PDF Report API for downloadable client deliverables. A single integration pattern scales across the catalog: same auth header, same request envelope, same success plus data response shape on every endpoint.
How does this compare to alternatives?
You are evaluating astrology APIs for your product. Many providers ship them, and the comparison usually comes down to four axes: calculation engine, house-system coverage, response shape, and language support. The Natal Chart API exposes the underlying calculation parameters directly - orb mode, aspect filtering, node type, and twenty-plus house systems - so you control the chart instead of accepting whatever the API decides.
Some alternative implementations wrap thin Swiss Ephemeris bindings without exposing tuning options. Others return interpretation-only HTML, which works for an embedded widget but breaks custom UI rendering. The Natal Chart API returns structured JSON with consistent field names across the catalog, and twelve interface languages ship via the lan parameter without a separate translation pipeline.
How do you access and integrate the API?
Access is REST POST. Authentication uses a Bearer token in the Authorization header alongside an api_key field in the request body, both issued from the DivineAPI dashboard. Responses are JSON with a consistent success plus data envelope. Standard HTTP codes apply: 200 OK on success, 429 Too Many Requests when rate-limited, 4xx with descriptive messages on validation errors.
For platform integrations, DivineAPI ships a WordPress plugin, a Shopify app, a Wix integration, and embeddable JavaScript widgets. The live documentation includes code examples in cURL, Node.js, jQuery AJAX, and Python.
Summary
The Natal Chart API turns three inputs (date, time, place of birth) into a complete birth chart: planetary positions, house cusps, aspects, and a renderable wheel image. It runs on Swiss Ephemeris with NASA JPL data underneath, exposes more than twenty house systems and twelve interface languages, and returns structured JSON ready for custom rendering. You ship astrology dashboards, compatibility tools, transit-based content engines, and PDF report pipelines without owning the calculation infrastructure.
Topics in this guide
Each topic below covers one specific endpoint or concept under the Natal Chart API: Birth Chart Calculations for Developers in detail. Open whichever matches what you are building.
- Arabic Lots Calculation The Arabic Lots endpoint of the Natal Chart API returns fifteen Hellenistic lots (Fortune, Spirit, Eros, etc.) with sign, house, and modalit... Concept
- Ascendant & Rising Sign Calculation The Ascendant Report endpoint of the Natal Chart API returns the rising sign, exact ecliptic degree, and a multi-paragraph interpretive read... Concept
- Aspect Patterns Detection The Aspect Patterns endpoint detects Grand Trines, T-Squares, Yods, Kites, Cradles, Mystic Rectangles, Grand Crosses, and Stelliums with pre... Concept
- Aspect Table Generation for Natal Charts The Aspect Table endpoint returns every pairwise aspect in a natal chart, with body pair, aspect type, and orb. Reference + sample JSON for... Concept
- Asteroid Positions The Asteroid Positions endpoint of the Natal Chart API returns fourteen asteroids and dwarf planets (Chiron, Ceres, Pallas, Juno, Vesta, Eri... Concept
- Chart Shape Classification The Chart Shape endpoint classifies any birth chart by its geometric shape (Bundle, Bowl, Bucket, Locomotive, Seesaw, Splash, Splay) with a... Concept
- Declinations & Parallels The Declinations & Parallels endpoint returns each body's declination plus parallel and contra-parallel aspects between bodies. Reference +... Concept
- Dominant Planets & Elements The Dominants endpoint returns ranked dominant planets, an element distribution table, and a derived signature sign. Reference + sample JSON... Concept
- Eclipse Detection in Natal Charts The Eclipse endpoint surfaces solar and lunar eclipses around a birth date with type, variant, datetime, and orb to natal points. Reference... Concept
- Fixed Stars Detailed Positions The Fixed Stars Details endpoint returns calculated positions for any subset of the 721 supported fixed stars in a natal chart. Reference +... Concept
- Fixed Stars List The Fixed Stars List endpoint returns the catalog of 721 fixed star identifiers supported by the Natal Chart API. Reference + sample JSON fo... Concept
- General House Report Generation The General House Report endpoint returns a structured five-section interpretive reading for any planet's house placement. Reference + sampl... Concept
- General Sign Report Generation The General Sign Report endpoint returns a structured five-section interpretive reading for any planet's sign placement. Reference + sample... Concept
- House Cusps Calculation via Natal Chart API The House Cusps endpoint of the Natal Chart API returns twelve cusp boundaries plus the Ascendant, Midheaven, and Vertex. Reference + sample... Concept
- Minor Celestial Bodies The Other Minor Bodies endpoint returns 19 hypothetical and specialty points (Uranian planets, Vertex, Selena, Vulcan, and others). Referenc... Concept
- Moon Phase Calendar Data The Moon Phase Calendar endpoint returns a full month of daily lunar data plus exact phase-transition timestamps. Reference + sample JSON fo... Concept
- Moon Phases & Lunar Positions The Moon Phases endpoint returns the lunar phase at birth, the natal Moon's sign and house, plus an interpretive reading. Reference + sample... Concept
- Natal Insights & Interpretation Logic The Natal Insights endpoint returns element distribution, mode balance, and hemisphere dominance with interpretive descriptions. Reference +... Concept
- Natal Wheel Chart Data The Natal Wheel Chart endpoint returns a complete birth chart as inline SVG and base64-encoded SVG, with configurable colors, glyphs, and ho... Concept
- Planetary Midpoints The Planetary Midpoints endpoint returns 153 calculated midpoints across every pair of major chart points. Reference + sample JSON for devel... Concept
- Planetary Positions in Natal Chart API The Planetary Positions endpoint of the Natal Chart API returns sixteen celestial points with sign, house, element, and modality. Reference... Concept
Ready to integrate?
Start your free 7-day trial and get API access in under 2 minutes. No credit card required.