Chinese astrology
AvailableZi 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
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
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.
inputobjectlunarobjectyear_pillarobjectmingobjectshenobjectbureauobjectzi_wei_branchstringtian_fu_branchstringpalacesarray of objectdecadesarray of objectdecade_directionstringfour_transformationsarray of objectfour_transformation_variantsarray of objectbrightnessstringmethodstringbasisstring
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
- Qi Men Dun JiaChinese astrology
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.


