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
Zi Wei Dou Shu
Purple Star Astrology · Twelve PalacesA 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
Synastry
Two charts · Five dimensionsTwo 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
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…
Da Liu Ren
Heaven & earth plates · Four lessons, three transmissionsA 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
Four lessons
| Lesson | I | II | III | IV |
|---|
Three transmissions
| Transmission | Branch | General | Hidden stem |
|---|
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
| Default | Open while checkout is being connected — no key, no quota, so every instrument can be tried first. |
|---|---|
| API_KEYS | Optional. Once set, every request must carry X-Api-Key or Authorization: Bearer <key>. |
| RATE_KV | Optional KV binding. Counts casts per key: free keys get FREE_QUOTA (default 3), then 429. Paid keys are unmetered. |
| CORS | Open. Browser clients call the endpoints directly, with no proxy. |
| Paid keys | Issued 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
{ "date": "1990-1-1", "hour": 12, "gender": "male", "lang": "en-US" }
Synastry · two charts
{ "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
{ "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 } }
What it costs
Three casts free · Then by the castNo 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.
Enough to see whether the plates are right. No card, no account.
Try it now$0.88 a cast. Switch instruments between calls; nothing locks to one endpoint.
Order by mailAll 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].