# 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.

- Endpoint: `POST https://api.96astroapi.com/v1/chinese/zi-wei`
- Family: [Chinese astrology](https://96astroapi.com/apis/chinese.md)
- Input: Specific input
- Cost: 1 credit per successful call (sandbox keys are free)
- Status: available
- Delivery: Direct response
- Output languages: en
- Web page: https://96astroapi.com/apis/chinese/zi-wei

## Example request

```bash
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"}'
```

## Response

Every response is `{ "data": …, "meta": { "request_id", "credits_used", "warnings", "language" } }`.
The full request and response schema, with a captured example, is in the OpenAPI document: https://api.96astroapi.com/v1/openapi.json (path `/v1/chinese/zi-wei`).
