Chinese astrology
AvailableQi Men Dun Jia API
A Qi Men Dun Jia hour chart (rotating plate, Chai Bu or Zhi Run): Yang or Yin Dun and the structure number from the solar term, the hour pillar and its Xun Shou, the lead star and door, and the nine palaces with earth and heaven stems, star, door and deity, plus Kong Wang and the horse star.
- POST /v1/chinese/qimen
- 1 credit
curl https://api.96astroapi.com/v1/chinese/qimen \ -H "Authorization: Bearer $ASTRO_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "date": "2026-11-28", "time": "13:56", "utc_offset_hours": 0 }'
Overview
A Qi Men Dun Jia hour chart (rotating plate, Chai Bu or Zhi Run): Yang or Yin Dun and the structure number from the solar term, the hour pillar and its Xun Shou, the lead star and door, and the nine palaces with earth and heaven stems, star, door and deity, plus Kong Wang and the horse star.
Call it with POST /v1/chinese/qimen. Input: specific input. Output: JSON, as a direct response. Each successful call costs 1 credit.
- POST /v1/chinese/qimen
- 1 credit
- Specific input
Try it
Response
Ready when you are
Press Run it to see the live response here.
Example response
Fields in dataInferred from the example response: a guide to the shape, not a contract.
methodstringbasisstringconventionsobjectdatestringtimestringdunstringsolar_termstringyuanstringjunumberhour_pillarobjectday_pillarobjectxun_shouobjectzhi_fuobjectzhi_shiobjectkong_wangarray of stringkong_wang_palacesarray of numberma_xingobjectdeity_setstringpalacesarray of object
200Example response
Captured from the live engine with a sandbox key (so credits_used is 0) and trimmed: long arrays keep their first items and image data is shortened.
Loading the example…
Request schema and every field: the Chinese astrology reference.
Related endpoints
- Chinese Zodiac and Four PillarsChinese astrology
- BaZi Ten Gods and Luck PillarsChinese astrology
- Chinese Zodiac CompatibilityChinese astrology
- 22 Arcana Birth MatrixChinese astrology
- Angel NumbersChinese astrology
- Crystals and GemstonesChinese astrology
- Nine Star KiChinese astrology
- Maya Calendar (Tzolk'in)Chinese astrology
01What does the Qi Men Dun Jia API return?
A Qi Men Dun Jia hour chart (rotating plate, Chai Bu or Zhi Run): Yang or Yin Dun and the structure number from the solar term, the hour pillar and its Xun Shou, the lead star and door, and the nine palaces with earth and heaven stems, star, door and deity, plus Kong Wang and the horse star. The response's data object includes method, basis, conventions, date, time, dun, solar_term and yuan. See the reference for an example response.
02What input does Qi Men Dun Jia need?
Specific input.
03How much does a Qi Men Dun Jia call cost?
1 credit per successful call; a failed call is not charged. Plans and top-ups are on the pricing page.
04Can I try it before paying?
Yes. Every account gets sandbox keys and trial credits, so you can call it from your own code before choosing a plan.


