BaZi (Four Pillars) API
1つの生まれ時を古典的な装置全体に導入する: 四柱、各支柱が支える幹、陽陰、十二の生涯段階、八つの文字のすべてでバランスをとる要素、名前付きフレームワークの強さ判定、象徴的な星、そして幹と支の相互作用。1つのコール、JSON出力、21言語。
BaZi (Four Pillars) API
エンドポイントは、日付テーブルではなく、天文表から精確なLi Chunと節の瞬間を解決する。したがって、境界の近くに生まれた生まれは正しい年月に落ち着きます。時刻は生まれた場所の時計に従い、23:00でロールします。四柱から支柱を開きます: 一つから三つの隠れた幹、それぞれの役割と重さは伝統が与えているものです。それらは実際の図の要素のほとんどを占めます。次に、各柱の陽陰を導き出し、各支柱に対する日主の段階、3つの独立した要素の数、扶抑の強さ読み出しとその3つの古典的基準を報告し、未加重のもの、そして両方の年と日参照柱から導き出された6つの象徴的な星、そしてすべての組み合わせ、衝突、害、処罰を含む。
POST/v1/bazi/chart
curl -X POST https://api.astroway.info/v1/bazi/chart \
-H "X-Api-Key: aw_live_..." \
-H "Content-Type: application/json" \
-d '{
"date": "1990-05-15",
"time": "14:30:00",
"timezoneOffset": 8,
"language": "en"
}' {
"ok": true,
"data": {
"solarYear": 1990,
"pillars": [
{ "name": "year", "pillar": "Geng-Wu", "animalName": "Horse", "stemElementName": "Metal" },
{ "name": "month", "pillar": "Xin-Si", "animalName": "Snake", "stemElementName": "Metal" }
],
"dayMaster": { "stem": "Geng", "element": "Metal", "polarity": "Yang" },
"elementBalance": {
"weighted": { "Wood": 0.4, "Fire": 1.6, "Earth": 1.6, "Metal": 3.3, "Water": 1.1 },
"missingElements": []
},
"strength": { "verdict": "strong", "supportRatio": 0.557, "hasSeason": false, "hasRoot": true },
"symbolicStars": { "byDayPillar": [ { "english": "Canopy", "pillars": ["day"] } ] },
"interactions": [ { "english": "Six Harmony", "members": ["Wu","Wei"], "producesElement": "Earth" } ]
}
} Parameters
| name | type | Required | |
|---|---|---|---|
| date | string (YYYY-MM-DD) | yes | Birth date. |
| time | string (HH:MM:SS) | no | Local clock time at birth. Without it there is no hour pillar and the analysis runs on six characters, which every field of the response says. |
| timezoneOffset | number (hours) | no | The UTC offset the clock was actually running on. A 1988 Beijing birth ran on +9 under summer time; no arithmetic recovers that from the date. |
| longitude | number | no | Birth longitude, east positive. Inert unless trueSolarTime is set. |
| trueSolarTime | boolean | no | Cut the double-hour from the sun over the birth place. Reaches the day and hour only: the year and month turn on world instants. |
| stageSchool | string | no | classical (陽順陰逆, default) or unified (陰陽同生同死) for the twelve life stages. |
| language | string | no | Any of 21 codes. Animals, elements, polarity and stage names come back translated; stems and branches stay in pinyin. |
When to use it
7回の円形の往復の代わりに、このAPIを使用します。単一目的のエンドポイントは、1つのテーブルを取得したいときに存在します。ユーザーが生まれた場所からゾーンの経線に近い場合は、真陽時を渡してください: 中国は60度の範囲に1つのゾーンを走り、カシュガル生まれは太陽正午から3時間近く離れています。これは読みの全体の2倍時間です。
Notes
実際に差が生じる場合、両方の読みが送信され、応答は差を名付けます: 陽陰の方向を通じての十二段階、両方の陽刃の配置、庚の貴人、午未の要素のバランス、そして強さの閾値。これはAPIの慣習であり、canonicalルールではありません。四つの慣習的な答えは、すべての応答の免責事項で宣言されており、Jade Almanac CC0 プローブ セットにテストされています。結果は、慣習のページにあります。
Try the BaZi chart API
Grab a key and make your first call in under a minute.