Skip to content
POST/api/astro/chinese/luck-pillars/1 credit

Chinese luck pillars (da yun)

The ten-year luck cycles, BaZi's timing technique. Life is divided into ten-year pillars stepping forward or backward through the sexagenary cycle from the month pillar. Two things decide how. DIRECTION: forward for a male born in a yang year or a female born in a yin year, backward otherwise. This is why `gender` is required — without it the cycles cannot be placed at all, and guessing would give a confident reading of the wrong half of someone's life. STARTING AGE: the distance from the birth to the adjacent solar term — the next one going forward, the previous going backward — at the classical rate of three days to one year. So a birth two days after a term, running backward, begins its first pillar at about eight months old; one twenty-five days before the next, running forward, begins at about eight years. Each pillar carries the ages and dates it covers and its ten-god relation to the day master, which is how the period is actually read.

https://yogataraapi.prahlad.app/api/astro/chinese/luck-pillars/
Test Request

Authentication

Send your key in the X-API-Key header. Keys are server-side credentials — never put one in browser JavaScript or a mobile app.

X-API-Key: yt_live_a1b2c3d4_…
Content-Type: application/json

Request fields

FieldTypeRequiredNotes
date_timestring (date-time)required

The moment to calculate for, ISO 8601. ALWAYS include an offset or a trailing Z - a value with no zone is read as Asia/Kolkata (UTC+05:30), not UTC, and can return the previous day's result with a 200. '2026-09-01T06:00:00Z' and '2026-09-01 06:00:00' are different instants and give different answers.

genderstringrequired

Required: the direction of the luck cycles depends on it, together with the polarity of the year stem.

malefemale
countintegeroptional

How many ten-year pillars to return.

min 1 · max 12

day_boundarystringoptional

When the day pillar changes. 'zi_hour' is 23:00, the traditional rule; 'midnight' is what most software uses. They disagree for births between 23:00 and 24:00.

zi_hourmidnight
keysarrayoptional

Which calculations to return, as a list of names. See the key table for this endpoint; an unrecognised name rejects the whole request. One call costs one credit however many keys you ask for, so request everything you need at once rather than making several calls.

latitudenumber (double)optional

Latitude of the place, in decimal degrees. Positive is north, negative is south. Example: 26.9124 for Jaipur, 40.7128 for New York. Minutes and seconds are not accepted - convert first.

longitudenumber (double)optional

Longitude of the place, in decimal degrees. Positive is east, negative is west. Example: 75.7873 for Jaipur, -74.0060 for New York. Note the sign: a missing minus puts New York in China.

orb_factornumber (double)optional

Scale every aspect orb. 0.5 halves them, 2 doubles them.

min 0.1 · max 2

timezone_as_floatnumber (double)optional

UTC offset of the place, in hours, as a decimal. Example: 5.5 for India (UTC+05:30), -5 for New York in winter, 5.75 for Nepal. This is NOT validated against date_time - if the two disagree you get a successful response for the wrong moment, so derive both from the same source. Use the offset in force on that date, not today's: a summer birth in a country with daylight saving needs the summer offset.

min -12 · max 14

true_solar_timebooleanoptional

Correct the hour by the longitude's offset from the timezone meridian. Traditional practice uses true local solar time and it can move the hour pillar by one place.

Example request

curl -X POST https://yogataraapi.prahlad.app/api/astro/chinese/luck-pillars/ \
  -H "X-API-Key: $OCCULT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"date_time":"1984-06-15T14:30:00+08:00","latitude":39.9042,"longitude":116.4074,"timezone_as_float":8,"gender":"male","count":8}'

Response

{
  "_truncated": true,
  "_note": "Response shortened for the catalogue.",
  "preview": "{\"data\": {\"system\": \"Chinese luck pillars (da yun)\", \"gender\": \"male\", \"year_polarity\": \"yang\", \"direction\": \"forward\", \"direction_rule\": \"Forward for a male in a yang year or a female in a yin year; backward otherwise.\", \"starting_age\": 7.222, \"days_to_boundary_term\": 21.666, \"boundary_term\": \"1984-07-06T22:29:07+00:00\", \"rate\": \"Three days of solar-term distance stands for one year.\", \"day_master\": {\"index\": 7, \"name\": \"Geng\", \"pinyin\": \"geng\", \"element\": \"metal\", \"polarity\": \"yang\"}, \"month_pillar\": \"Geng-Wu\", \"luck_pillars\": [{\"pillar\": \"luck\", \"stem\": {\"index\": 8, \"name\": \"Xin\", \"pinyin\": \"xin\", \"element\": \"metal\", \"polarity\": \"yin\"}, \"branch\": {\"index\": 8, \"name\": \"Wei\", \"animal\": \"Goat\", \"element\": \"earth\", \"polarity\": \"yin\"}, \"name\": \"Xin-Wei\", \"animal\": \"Goat\", \"hidden_stems\": [{\"index\": 6, \"name\": \"Ji\", \"pinyin\": \"ji\", \"element\": \"earth\", \"polarity\": \"yin\"}, {\"index\": 4, \"name\": \"Ding\", \"pinyin\": \"ding\", \"element\": \"fire\", \"polarity\": \"yin\"}, {\"index\": 2, \"name\": \"Yi\", \"pinyin\": \"yi\", \"element\": \"wood\", \"polarity\": \"yin\"}], \"sequence\": 1, \"from_age\": 7.22, \"to_age\": 17.22, \"ten_god\": \"Rob Wealth\"}, {\"pillar\": \"luck\", \"stem\": {\"index\": 9, \"name\": \"Ren\", \"pinyin\": \"ren\", \"element\": \"water\", \"polarity\": \"yang\"}, \"branch\": {\"index\": 9, \"name\": \"Shen\", \"animal\": \"Monkey\", \"element\": \"metal\", \"polarity\": \"yang\"}, \"name\": \"Ren-Shen\", \"animal\": \"Monkey\", \"hidden_stems\": [{\"index\": 7, \"name\": \"Geng\", \"pinyin\": \"geng\", \"element\": \"metal\", \"polarity\": \"yang\"}, {\"index\": 9, \"name\": \"Ren\", \"pinyin\": \"ren\", \"element\": \"water\", \"polarity\": \"yang\"}, {\"index\": 5, \"name\": \"Wu\", \"pinyin\": \"wu\", \"element\": \"earth\", \"polarity\": \"yang\"}], \"sequence\": 2, \"from_age\": 17.22, \"to_age\": 27.22, \"ten_god\": \"Eating God\"}, {\"pillar\": \"luck\", \"stem\": {\"index\": 10, \"name\": \"Gui\", \"pinyin\": \"gui\", \"element\": \"water\", \"polarity\": \"yin\"}, \"branch\": {\"index\": 10, \"name\": \"You\", \"animal\": \"Rooster\", \"element\": \"metal\", \"polarity\": \"yin\"}, \"name\": \"Gui-You\", \"animal\": \"Rooster\", \"hidden_stems\": [{\"index\": 8, \"name\": \"Xin\", \"pinyin\": \"xin\", \"element\": \"metal\", \"polarity\": \"yin\"}], \"sequence\": 3, \"from_age\": 27.22, \"to_age\": 37.22, \"ten_god\": \"Hurting Officer\"}, {\"pillar\": \"luck\", \"stem\": {\"index\": 1, \"name\": \"Jia\", \"pinyin\": \"jia\", \"element\": \"wood\", \"polarity\": \"yang\"}, \"branch\": {\"index\": 11, \"name\": \"Xu\", \"animal\": \"Dog\", \"element\": \"earth\", \"polarity\": \"yang\"}, \"name\": \"Jia-Xu\", \"animal\": \"Dog\", \"hidden_stems\": [{\"index\": 5, \"name\": \"Wu\", \"pinyin\": \"wu\", \"element\": \"earth\", \"polarity\": \"yang\"}, {\"index\": 8, \"name\": \"Xin\", \"pinyin\": \"xin\", \"element\": \"metal\", \"polarity\": \"yin\"}, {\"index\": 4, \"name\": \"Ding\", \"pinyin\": \"ding\", \"element\": \"fire\", \"polarity\": \"yin\"}], \"sequence\": 4, \"from_age\": 37.22, \"to_age\": 47.22, \"ten_god\": \"Indirect Wealth\"}, {\"pillar\": \"luck\", \"stem\": {\"index\": 2, \"name\": \"Yi\", \"pinyin\": \"yi\", \"element\": \"wood\", \"polarity\": \"yin\"}, \"branch\": {\"index\": 12, \"name\": \"Hai\", \"animal\": \"Pig\", \"element\": \"water\", \"polarity\": \"yin\"}, \"name\": \"Yi-Hai\", \"animal\": \"Pig\", \"hidden_stems\": [{\"index\": 9, \"name\": \"Ren\", \"pinyin\": \"ren\", \"element\": \"water\", \"polarity\": \"yang\"}, {\"index\": 1, \"name\": \"Jia\", \"pinyin\": \"jia\", \"element\": \"wood\", \"polarity\": \"yang\"}], \"sequence\": 5, \"from_age\": 47.22, \"to_age\": 57.22, \"ten_god\": \"Direct Wealth\"}, {\"pillar\": \"luck\", \"stem\": {\"index\": 3, \"name\": \"Bing\", \"pinyin\": \"bing\", \"element\": \"fire\", \"polarity\": \"yang\"}, \"branch\": {\"index\": 1, \"name\": \"Zi\", \"animal\": \"Rat\", \"element\": \"water\", \"polarity\": \"yang\"}, \"name\": \"Bing-Zi\", \"animal\": \"Rat\", \"hidden_stems\": [{\"index\": 10, \"name\": \"Gui\", \"pinyin\": \"gui\", \"element\": \"water\", \"polarity\": \"yin\"}], \"sequence\": 6, \"from_age\": 57.22, \"to_age\": 67.22, \"ten_god\": \"Seven Killings\"}, {\"pillar\": \"luck\", \"stem\": {\"index\": 4, \"name\": \"Ding\", \"pinyin\": \"ding\", \"element\": \"fire\", \"polarity\": \"yin\"}, \"branch\": {\"index\": 2, \"name\": \"Chou\", \"animal\": \"Ox\", \"element\": \"earth\", \"polarity\": \"yin\"}, \"name\": \"Ding-Chou\", \"animal\": \"Ox\", \"hidden_stems\": [{\"index\": 6, \"name\": \"Ji\", \"pin"
}

Captured from a real call using the exact request above. Results sit under data.

Errors

Metering errors return { "error": "…", "message": "<code>", "is_error": true }. Show error to people and branch on message. See the error reference.