AstroWay/api v2.173.1 · hi
सभी सिस्टम सामान्य हैं
// astrology api · POST /v1/ziwei/chart

Zi Wei Dou Shu (बैंगनी तारा) API

एक जन्म तिथि, समय और लिंग पूरी चार्ट बनाते हैं: बारह महलों के साथ उनके स्तंभ, सभी चौदह मुख्य तारे, सहायक, इकतीस छोटे तारे, बारह जीवन चरण, दशकीय सीमाएँ और चार रूपांतरण जो उन तारों पर चिह्नित होते हैं जो उन्हें ले जाते हैं।

Endpoint
POST /v1/ziwei/chart
Cost
20 credits
Latency
~130 ms
Tier
Tier 2
// 01 / What it computes

Zi Wei Dou Shu (बैंगनी तारा) API

जन्म को चंद्र तिथि में बदला जाता है, क्योंकि Zi Wei पूरी तरह चंद्र प्रणाली है और BaZi के विपरीत यह सौर अवधि में नहीं बदलता। चंद्र महीने और दो घंटे से एंडपॉइंट आत्मा महल और शरीर महल रखता है, फिर पाँच-टाइगर नियम से हर महल को स्तंभित करता है, फिर आत्मा महल के स्तंभ से पाँच-तत्व वर्ग पढ़ता है। वह वर्ग और चंद्र दिन 紫微 को क्लासिकल उधार-और-विभाजन नियम से रखता है, उसकी श्रृंखला के छह तारे निश्चित ऑफसेट से अनुसरण करते हैं, 天府 इसे 寅-申 अक्ष के पार प्रतिबिंबित करता है और अपने आठ तारे ले जाता है। इस ढाँचे के ऊपर छह भाग्यशाली और छह दुर्भाग्यपूर्ण तारे, वेतन भंडार और स्वर्गीय घोड़ा, इकतीस छोटे तारे जो विभिन्न रूप से वर्ष के स्तंभ, वर्ष शाखा, माह, दिन और घंटे से जुड़े हैं, बारह जीवन चरण, विद्वान चक्र, जनरल चक्र और वर्ष चक्र, वर्ग संख्या पर खुलने वाली दस-वर्षीय सीमाएँ, और यदि आप आयु पूछते हैं तो वार्षिक सीमा। चार रूपांतरण वर्ष के स्तंभ से निकाले जाते हैं और तारों से जुड़े होते हैं न कि अलग सूची के रूप में लौटाए जाते हैं।

// 02 / Live request

POST/v1/ziwei/chart

curl -X POST https://api.astroway.info/v1/ziwei/chart \
  -H "X-Api-Key: aw_live_..." \
  -H "Content-Type: application/json" \
  -d '{
    "date": "2000-08-16",
    "time": "04:00:00",
    "gender": "male",
    "age": 25
  }'
Response (excerpt)
{
  "ok": true,
  "data": {
    "fiveElementClass": { "key": "wood3", "chinese": "木三局", "name": "Wood 3", "value": 3 },
    "soulPalace": { "index": 4, "branch": "Wu" },
    "bodyPalace": { "index": 8, "branch": "Xu" },
    "ziwei": { "index": 4, "branch": "Wu" },
    "annualLimit": { "age": 25, "index": 8, "branch": "Xu" },
    "palaces": [
      {
        "branch": "Wu",
        "pillar": "Ren-Wu",
        "palace": "destiny",
        "isSoul": true,
        "majorStars": [{ "chinese": "紫微", "name": "Purple Star", "pinyin": "Zi Wei" }],
        "lifeStage": { "chinese": "死", "name": "Death" },
        "decade": { "index": 0, "fromAge": 3, "toAge": 12 }
      }
    ]
  }
}
// 03 / Parameters

Parameters

nametypeRequired
date string (YYYY-MM-DD) yes Birth date. It is converted to a lunar date, because Zi Wei is a lunar system.
time string (HH:MM:SS) yes Local clock time. Required: the soul palace is placed from the double-hour, so a chart without it would be twelve palaces of confident nonsense rather than a partial answer.
gender string yes male or female. It sets the direction of the twelve life stages, the scholar cycle and the decade limits, so the chart cannot be built without it.
age number no Return the annual-limit palace for this age. Omit and the field comes back null.
yearDivide string no lunar (default: the year opens on day one of the first lunar month) or lichun (the BaZi boundary, for reconciling against a calculator that imported it).
fixLeap boolean no Split a leap month at day 15 (default) or count the whole of it as the month it follows.
dayDivide string no forward (default: 23:00 belongs to the next day) or current (keep the date and mark the hour as the late Zi).
school string no The 四化 table: zhongzhou (default), quanji, quanshu or beipai. The four disagree on three of the ten year stems.
language string no Any of 21 codes. Palace names and life-stage names come back translated; star names stay as characters with an English gloss.
// 04 / When to use it

When to use it

जब तू एक चीनी-ज्योतिष उत्पाद बना रहा है जो चीनी के अलावा किसी भी भाषा में पढ़ा जाता है: एक ऐप, रीडिंग सेवा, चार्ट रेंडरर, या ऐसा एजेंट जिसे व्याख्या से पहले संरचना चाहिए। प्रतिक्रिया शुद्ध संरचना है, बिना किसी prose के, इसलिए यह बारह-महल ग्रिड, रिपोर्ट जेनरेटर या LLM प्रॉम्प्ट में आसानी से फिट हो जाता है। उसी परिवार के रेफ़रेंस एंडपॉइंट सस्ते हैं और शब्दकोश व टूलटिप्स के लिए उपयोगी हैं, लेकिन वे हर जन्म के लिए वही तालिका लौटाते हैं और इसे एक फ़ील्ड में बताते हैं, इसलिए उनका उपयोग करके चार्ट मत बनाओ।

// 05 / Notes

Notes

इसे जानबूझकर एक लाइब्रेरी की बजाय तीन प्रकाशित चार्टों से जोड़ा गया है: लगभग पूरा ओपन-सोर्स Zi Wei इकोसिस्टम एक ही प्रोजेक्ट से निकला है, इसलिए कईयों से सहमत होना एक से सहमत होना है। दो पूर्ण चार्ट बिल्कुल वही दोहराते हैं, और तीसरा एक असंबंधित शिक्षण पाठ से आता है। चार स्कूल स्विच अनुरोध बॉडी में रहते हैं, कोड में नहीं, क्योंकि प्रत्येक जन्म के लिए पूरी चार्ट को बदलते हैं: वर्ष सीमा, लीप माह, 23:00 रोलओवर और रूपांतरण तालिका। जब कोई दूसरा कैलकुलेटर असहमत हो, तो गणना से पहले उन चार को जाँच।

Try the Zi Wei Dou Shu API

Grab a key and make your first call in under a minute.

99.9% SLA · पेड प्लान · 30 दिन स्थिति →