Skip to content
96Astro API

Chinese astrology

Available

Zi Wei Dou Shu (Purple Star) API

A Zi Wei Dou Shu natal chart (San He school): the lunar birth date with leap months, Ming and Shen palaces, the Five Element Bureau, the twelve palaces with stems, the 14 major and 14 minor stars, the four transformations of the birth year (with the Geng and Ren variants listed) and the 10-year limits.

  • POST /v1/chinese/zi-wei
  • 1 credit
Request
curl https://api.96astroapi.com/v1/chinese/zi-wei \  -H "Authorization: Bearer $ASTRO_API_KEY" \  -H "Content-Type: application/json" \  -d '{
      "birth": {
        "datetime": "1990-10-18T14:30:00",
        "timezone": "Asia/Kolkata",
        "latitude": 28.6139,
        "longitude": 77.209
      },
      "gender": "female"
    }'

Overview

A Zi Wei Dou Shu natal chart (San He school): the lunar birth date with leap months, Ming and Shen palaces, the Five Element Bureau, the twelve palaces with stems, the 14 major and 14 minor stars, the four transformations of the birth year (with the Geng and Ren variants listed) and the 10-year limits.

Call it with POST /v1/chinese/zi-wei. Input: specific input. Output: JSON, as a direct response. Each successful call costs 1 credit.

  • POST /v1/chinese/zi-wei
  • 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.

  • inputobject
  • lunarobject
  • year_pillarobject
  • mingobject
  • shenobject
  • bureauobject
  • zi_wei_branchstring
  • tian_fu_branchstring
  • palacesarray of object
  • decadesarray of object
  • decade_directionstring
  • four_transformationsarray of object
  • four_transformation_variantsarray of object
  • brightnessstring
  • methodstring
  • basisstring
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

Zi Wei Dou Shu (Purple Star) API: common questions

4answers

Ask the team
01What does the Zi Wei Dou Shu (Purple Star) API return?

A Zi Wei Dou Shu natal chart (San He school): the lunar birth date with leap months, Ming and Shen palaces, the Five Element Bureau, the twelve palaces with stems, the 14 major and 14 minor stars, the four transformations of the birth year (with the Geng and Ren variants listed) and the 10-year limits. The response's data object includes input, lunar, year_pillar, ming, shen, bureau, zi_wei_branch and tian_fu_branch. See the reference for an example response.

02What input does Zi Wei Dou Shu (Purple Star) need?

Specific input.

03How much does a Zi Wei Dou Shu (Purple Star) 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?