Sage Destiny Chinese metaphysics · JSON

Three instruments, one endpoint

Cast a life, a pairing, or a moment.

Zi Wei Dou Shu, two-chart synastry and Da Liu Ren — the three instruments of Chinese classical calculation, on a single page and behind a single JSON API. Computed in the same request that serves this page: no third-party astrology service, no key needed to try.

Edition
1900 — 2100
Format
Pure JSON
Where
Cloudflare edge
Access
Open, then keyed
I

Zi Wei Dou Shu

Purple Star Astrology · Twelve Palaces

A birth moment becomes twelve palaces. Majors and minors are placed, the four transformations hung on them, and the decade ranges that follow a life laid end to end.

Birth moment

Hours are the twelve double-hours of local solar time. Lunar input accepts the Chinese calendar directly; the engine converts before casting.

Casting from the current defaults…

Swipe sideways to pan the plate

II

Synastry

Two charts · Five dimensions

Two natal charts compared on element phase, soul-palace majors, spouse-palace contact, the three-way triangles and transformation placement — then scored, explained and turned into advice you can act on.

Two people

Person A
Person B

Scores run 0–100 and are read as relative fit, not verdict. Every point is itemised below with the palace contact that produced it.

Comparing the current defaults…

III

Da Liu Ren

Heaven & earth plates · Four lessons, three transmissions

A moment and a question. Solar terms, the monthly general and the day/hour stems and branches are derived inside the engine: four lessons above, three transmissions below, twelve generals on the plate.

The moment asked

Month generals follow the solar terms, not the calendar month. Void branches are carried from the day's sexagenary cycle.

Casting the current moment…

Swipe sideways to pan the plate

IV

The API

Three endpoints · One discipline

Everything on this page is a POST away. Responses are plain JSON with an ok flag, a data body and a meta block carrying engine version and remaining quota.

Access & quota

DefaultOpen while checkout is being connected — no key, no quota, so every instrument can be tried first.
API_KEYSOptional. Once set, every request must carry X-Api-Key or Authorization: Bearer <key>.
RATE_KVOptional KV binding. Counts casts per key: free keys get FREE_QUOTA (default 3), then 429. Paid keys are unmetered.
CORSOpen. Browser clients call the endpoints directly, with no proxy.
Paid keysIssued by hand or by checkout; carry a balance and are never metered.

Language: lang accepts zh-CN (default), zh-TW and en-US — palace names, star names and reading text follow it.

Chart · twelve palaces

POST /api/chart
{ "date": "1990-1-1", "hour": 12, "gender": "male", "lang": "en-US" }

Synastry · two charts

POST /api/heming
{ "a": { "date": "1990-1-1", "hour": 12, "gender": "male" },
  "b": { "date": "1992-5-20", "hour": 8, "gender": "female" },
  "lang": "en-US" }

Liu Ren · plate and reading

POST /api/liuren
{ "year": 2025, "month": 3, "day": 8, "hour": 10, "minute": 30,
  "question": "Will this deal close?", "lang": "en-US" }

Response shape

{ "ok": true,
  "data": { … },
  "meta": { "engine": "iztro", "version": "2.6.5", "mode": "open",
            "remaining": null } }
V

What it costs

Three casts free · Then by the cast

No subscription, no seats, no monthly bill. A cast is one call to any of the three instruments. Buy them in blocks; blocks do not expire.

01 — Free
$0
Three casts

Enough to see whether the plates are right. No card, no account.

Try it now
02 — Single
$0.99
One cast

Any instrument — a life chart, a pairing, or a moment.

Order by mail
03 — Ten
$8.8
Ten casts

$0.88 a cast. Switch instruments between calls; nothing locks to one endpoint.

Order by mail
04 — Lifetime
$66
Unmetered

All three instruments, no ceiling, for as long as the service runs.

Order by mail

Casts are counted per key, and a key is a string you pass in X-Api-Key. One key is one client. Blocks stack, and the free three are counted once per key — not reset daily.

This is a knowledge product: the reading is computed and delivered instantly, so all sales are final and no refunds are issued — the same as a paid consultation. The only exceptions are a technical failure that prevented delivery, or a duplicate charge; both are corrected. Full wording on the Refund page.

Checkout is being wired through a merchant of record. Until it clears, orders are taken by mail and a key is issued by hand, usually within one business day — write to [email protected].