Skip to content
96Astro API

Chinese astrology

Available

Qi 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
Request
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

Runs the real calculation, free and without a key, a few times a minute. For more, and for AI readings, get a free sandbox key.

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.

  • methodstring
  • basisstring
  • conventionsobject
  • datestring
  • timestring
  • dunstring
  • solar_termstring
  • yuanstring
  • junumber
  • hour_pillarobject
  • day_pillarobject
  • xun_shouobject
  • zhi_fuobject
  • zhi_shiobject
  • kong_wangarray of string
  • kong_wang_palacesarray of number
  • ma_xingobject
  • deity_setstring
  • palacesarray 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.

FAQ

Qi Men Dun Jia API: common questions

4answers

Ask the team
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.

Send us feedback

What is it about?