Skip to content
RoxyAPI
Get API Key

Chinese Astrology API Reference

Chinese zodiac and BaZi astrology API: Four Pillars charts, Chinese zodiac signs and the Chinese lunisolar calendar from any birth moment: year, month, day and hour pillars with hidden stems, Na Yin and Ten God relations, luck pillars.

Product page
Base URL
https://roxyapi.com/api/v2/chinese-astrology
Remote MCP
https://roxyapi.com/mcp/chinese-astrology
Auth
X-API-Key
Languages
en, tr, de, es, hi, pt, fr, ru, zh-Hans, zh-Hant
SDKs
TypeScript, Python, PHP, C#, Go, Rust, and Dart
POST /api/v2/chinese-astrology/bazi/chart

Generate BaZi chart

Calculate a complete BaZi chart, the Four Pillars of Destiny, from a birth moment. Returns the year, month, day and hour pillars with every Heavenly Stem and Earthly Branch, the stems hidden inside each branch, the Ten God relation each one holds to the Day Master, the Na Yin sound element of each pair, the five-element balance across the chart, and the combinations and clashes running between the pillars. The day boundary, year boundary and hour clock are all selectable and the applied conventions come back on every response, so a chart is self-describing. Built for astrology apps, matchmaking services, and agents that need a Four Pillars reading they can reproduce.

MCP tool
post_chinese_astrology_bazi_chart
Renders with
Bazi chart · No-code widget

Request

date string (date), required
Birth date in YYYY-MM-DD format. Sets the year, month and day pillars. The year pillar turns at Beginning of Spring rather than on 1 January, and the month pillar turns at each of the twelve minor solar terms rather than at a calendar month boundary.
time string (time), required
Birth time in 24-hour HH:MM:SS format. Sets the hour pillar, which is one of the four and carries the whole picture of later life and offspring. Each Earthly Branch covers two hours, so a birth within a few minutes of an odd hour can land in either. All four pillars are read in the local clock of the birth, and the day boundary is applied in that same clock; only the lunisolar calendar date itself is a world constant, fixed at UTC plus 8 so one instant has one Chinese date everywhere.
timezone number or string, required
IANA name (e.g. "America/New_York", "Europe/London", "UTC"), decimal hours (e.g. -5 for EST, 1 for CET), or a fixed UTC offset (e.g. "-05:00", "+01:00"). Prefer the IANA name: it is resolved to the offset in force at the birth date and time, historical daylight-saving rules included, while a fixed offset or decimal is taken literally and will be wrong if it does not match the daylight-saving state at that moment. On a transition day a time in the repeated hour is read as its first occurrence and a time in the skipped hour is moved forward past the gap. Invalid timezones return 400 with a validation error.
Show all 6 optional fieldsShow fewer optional fields
lang query, string enum
Response language (BCP 47). Supported: en, tr, de, es, hi, pt, fr, ru, zh-Hans, zh-Hant. Defaults to en. Coverage varies by domain, and a field with no translation in the requested language returns English. One of en, tr, de, es, hi, pt, fr, ru, zh-Hans, zh-Hant. Default en.
latitude number
Birth latitude in decimal degrees. Accepted for consistency with the other birth-data endpoints and does not affect any part of a BaZi chart. Defaults to 0.
longitude number
Birth longitude in decimal degrees. Positive is East, negative is West. Required when hourClock is "local-mean" or "solar", which shift the hour branch to the sun over the birth place; omitting it in either case returns 400. Ignored when hourClock is "clock".
dayBoundary string enum
Which instant starts the sexagenary DAY, which only matters for a birth between 23:00 and 23:59. "midnight" is the classical position of the Ming compendium San Ming Tong Hui: the day turns at 00:00 and 23:00 to 23:59 is the late zi hour of the day that is ending, so the hour stem is taken from that day. "early-zi" turns the whole day at 23:00, the practice in Hong Kong, Taiwan and much of South East Asia. "split-zi" is the compromise most software implements and the default here: the day still turns at 00:00, but the hour stem is taken from the next day. The three give three different answers for a late-evening birth and identical answers for every other birth. One of split-zi, midnight, early-zi.
yearBoundary string enum
Which instant starts the sexagenary YEAR. "li-chun" is Beginning of Spring, around 4 February, and is the classical rule every BaZi text uses, so it is the default on this endpoint. "lunar-new-year" is the folk rule people mean when they say which animal they are, and it falls between late January and late February. The two disagree for any birth in the weeks between them: 14 February 2026 is a Wood Snake year under lunar-new-year and a Fire Horse year under li-chun. One of li-chun, lunar-new-year.
hourClock string enum
Which clock the day boundary and the hour branch are read from, so a correction that carries a birth across midnight moves the day pillar with the hour. "clock" is civil time exactly as a birth certificate records it, which is what most calculators use and the default here. "local-mean" shifts to the mean sun over the birth longitude, a correction of up to 59 minutes at the edge of a wide time zone. "solar" adds the equation of time on top of that, up to a further 16 minutes. Both non-civil options need "longitude" in the request and return 400 without it. One of clock, local-mean, solar.

Response

birthData object, required
Echo of the birth moment the chart was computed from.
Show all 5 fieldsShow fewer fields
date string (date), required
Birth date in YYYY-MM-DD format. Sets the year, month and day pillars. The year pillar turns at Beginning of Spring rather than on 1 January, and the month pillar turns at each of the twelve minor solar terms rather than at a calendar month boundary.
time string (time), required
Birth time in 24-hour HH:MM:SS format. Sets the hour pillar, which is one of the four and carries the whole picture of later life and offspring. Each Earthly Branch covers two hours, so a birth within a few minutes of an odd hour can land in either. All four pillars are read in the local clock of the birth, and the day boundary is applied in that same clock; only the lunisolar calendar date itself is a world constant, fixed at UTC plus 8 so one instant has one Chinese date everywhere.
timezone number, required
Decimal UTC offset the chart was computed with, resolved from whatever the request sent. An IANA name is resolved to the offset in force at the birth, so this is the literal number applied and never the name. A local time that never happened (the skipped hour of a daylight-saving change) is moved forward past the gap, and date, time and timezone then echo the clock that was running, which the day and hour pillars are read from.
latitude number
Birth latitude in decimal degrees. Accepted for consistency with the other birth-data endpoints and does not affect any part of a BaZi chart. Defaults to 0.
longitude number
Birth longitude in decimal degrees. Positive is East, negative is West. Required when hourClock is "local-mean" or "solar", which shift the hour branch to the sun over the birth place; omitting it in either case returns 400. Ignored when hourClock is "clock".
conventions object, required
The three school conventions this result was computed under. Returned on every BaZi response so a chart is self-describing: two calculators can produce different pillars for one birth and both be correct, and this object says which reading you are holding.
Show all 3 fieldsShow fewer fields
dayBoundary string enum, required
Day-boundary school actually applied. Echoes the request, or the default when it was omitted. Always English, whatever the lang parameter says, so it stays safe to compare against in code. One of split-zi, midnight, early-zi.
yearBoundary string enum, required
Year-boundary school actually applied. Echoes the request, or the default when it was omitted. One of li-chun, lunar-new-year.
hourClock string enum, required
Hour clock actually applied. Echoes the request, or the default when omitted. One of clock, local-mean, solar.
pillars array of object, required
The four pillars, year first. Each carries its stem, its branch, the hidden stems stored in the branch, the Ten God relation to the Day Master, and the Na Yin sound element of the pair.
Show all 48 fieldsShow fewer fields
position string, required
Which of the four pillars this is. One of year, month, day, hour. The year pillar reads ancestry and early life, the month career and parents, the day the self and the partner, the hour later life and children.
id string, required
Pillar identifier, the stem id and the branch id joined by a hyphen. Always English pinyin, whatever the lang parameter says.
number number, required
Position of this pillar in the sexagenary cycle, 1 to 60, where jia-zi is 1. The cycle runs stems and branches together, which is why only 60 of the 120 possible pairings occur.
stem object, required
The Heavenly Stem of this pillar.
stem.id string, required
Heavenly Stem identifier. One of jia, yi, bing, ding, wu, ji, geng, xin, ren, gui. Always English pinyin, whatever the lang parameter says, so it stays safe to compare against in code and to key a glyph table on.
stem.chinese string, required
The stem in hanzi. Data rather than display copy, so it is identical under every lang.
stem.pinyin string, required
Tone-marked pinyin for the stem. Identical under every lang.
stem.element string, required
Five-phase element of the stem. One of Wood, Fire, Earth, Metal, Water. Always English, whatever the lang parameter says. Use elementLocalized for anything a reader sees.
stem.elementLocalized string
Element name in the requested language, for display only. Present only when lang is set to a language other than English, since in English it would repeat its canonical partner field exactly. Never compare against this value, compare against the canonical field beside it.
stem.polarity string, required
Polarity of the stem, yang or yin. The five odd stems are yang and the five even ones are yin, and this is half of what decides every Ten God relation in the chart.
branch object, required
The Earthly Branch of this pillar.
branch.id string, required
Earthly Branch identifier. One of zi, chou, yin, mao, chen, si, wu, wei, shen, you, xu, hai. Always English pinyin, whatever the lang parameter says. Note that "wu" is also a stem identifier: they never share a field, so a branch id is only ever read out of a branch position.
branch.chinese string, required
The branch in hanzi. Identical under every lang.
branch.pinyin string, required
Tone-marked pinyin for the branch. Identical under every lang.
branch.animal string, required
Zodiac animal of the branch. One of rat, ox, tiger, rabbit, dragon, snake, horse, goat, monkey, rooster, dog, pig. Always English, whatever the lang parameter says. Use animalLocalized for anything a reader sees.
branch.animalLocalized string
Zodiac animal name in the requested language, for display only. Present only when lang is set to a language other than English, since in English it would repeat its canonical partner field exactly. Never compare against this value, compare against the canonical field beside it.
branch.element string, required
Five-phase element of the branch. Always English, whatever the lang parameter says. Use elementLocalized for anything a reader sees.
branch.elementLocalized string
Element name in the requested language, for display only. Present only when lang is set to a language other than English, since in English it would repeat its canonical partner field exactly. Never compare against this value, compare against the canonical field beside it.
branch.polarity string, required
Polarity of the branch, yang or yin.
tenGod object, required
Relation the pillar STEM holds to the Day Master. The day pillar carries day-master instead, because the day stem is the reference point every other position is measured from rather than a relation to itself.
tenGod.id string, required
Ten God identifier. One of friend, rob-wealth, eating-god, hurting-officer, indirect-wealth, direct-wealth, seven-killings, direct-officer, indirect-resource, direct-resource, plus day-master in the day-stem position. Always English, whatever the lang parameter says.
tenGod.name string, required
Display name of the relation. Always English, whatever the lang parameter says. Use nameLocalized for anything a reader sees.
tenGod.nameLocalized string
Ten God name in the requested language, for display only. Present only when lang is set to a language other than English, since in English it would repeat its canonical partner field exactly. Never compare against this value, compare against the canonical field beside it.
tenGod.chinese string, required
The relation in traditional hanzi. Identical under every lang.
tenGod.pinyin string, required
Tone-marked pinyin for the relation. Identical under every lang.
tenGod.category string, required
Which of the five cycle relations this belongs to. peer is the same element as the Day Master, output is what the Day Master generates, wealth is what it controls, influence is what controls it, resource is what generates it, and self marks the Day Master itself. Always English, whatever the lang parameter says.
tenGod.keynote string, required
One-line summary of what this relation contributes, for a compact rendering that has no room for the full meaning.
hiddenStems array of object, required
Stems stored inside the branch, principal first. These carry the qi a branch holds without showing it, and they are where a Day Master finds a root.
hiddenStems[].stem object, required
The stem stored in the branch.
hiddenStems[].stem.id string, required
Heavenly Stem identifier. One of jia, yi, bing, ding, wu, ji, geng, xin, ren, gui. Always English pinyin, whatever the lang parameter says, so it stays safe to compare against in code and to key a glyph table on.
hiddenStems[].stem.chinese string, required
The stem in hanzi. Data rather than display copy, so it is identical under every lang.
hiddenStems[].stem.pinyin string, required
Tone-marked pinyin for the stem. Identical under every lang.
hiddenStems[].stem.element string, required
Five-phase element of the stem. One of Wood, Fire, Earth, Metal, Water. Always English, whatever the lang parameter says. Use elementLocalized for anything a reader sees.
hiddenStems[].stem.elementLocalized string
Element name in the requested language, for display only. Present only when lang is set to a language other than English, since in English it would repeat its canonical partner field exactly. Never compare against this value, compare against the canonical field beside it.
hiddenStems[].stem.polarity string, required
Polarity of the stem, yang or yin. The five odd stems are yang and the five even ones are yin, and this is half of what decides every Ten God relation in the chart.
hiddenStems[].role string, required
Rank of this stem inside the branch, by the classical day-count that divides a thirty-day month 18, 9 and 3 days between the stems a branch holds. principal is the first-ranked stem and always matches the branch element; middle is the second-ranked; residual is the third. A branch holds one to three, always returned in rank order. What each rank CONTAINS depends on the branch family: on a storage branch the second-ranked stem is the seasonal carryover from the month before and the third is the stem that branch stores as the close of its trine, while on a growth branch the second-ranked stem is the one beginning its long-life phase there and the third is the carryover. Some schools name the same three positions by that function rather than by rank, which swaps the second and third labels on the four storage branches, so compare on rank rather than assuming a name.
hiddenStems[].tenGod object, required
Relation this hidden stem holds to the Day Master.
hiddenStems[].tenGod.id string, required
Ten God identifier. One of friend, rob-wealth, eating-god, hurting-officer, indirect-wealth, direct-wealth, seven-killings, direct-officer, indirect-resource, direct-resource, plus day-master in the day-stem position. Always English, whatever the lang parameter says.
hiddenStems[].tenGod.name string, required
Display name of the relation. Always English, whatever the lang parameter says. Use nameLocalized for anything a reader sees.
hiddenStems[].tenGod.nameLocalized string
Ten God name in the requested language, for display only. Present only when lang is set to a language other than English, since in English it would repeat its canonical partner field exactly. Never compare against this value, compare against the canonical field beside it.
hiddenStems[].tenGod.chinese string, required
The relation in traditional hanzi. Identical under every lang.
hiddenStems[].tenGod.pinyin string, required
Tone-marked pinyin for the relation. Identical under every lang.
hiddenStems[].tenGod.category string, required
Which of the five cycle relations this belongs to. peer is the same element as the Day Master, output is what the Day Master generates, wealth is what it controls, influence is what controls it, resource is what generates it, and self marks the Day Master itself. Always English, whatever the lang parameter says.
hiddenStems[].tenGod.keynote string, required
One-line summary of what this relation contributes, for a compact rendering that has no room for the full meaning.
naYin string, required
Na Yin sound element of the pillar, an older elemental reading assigned to each of the 30 stem-and-branch pairs. The hanzi name sits beside it in naYinChinese.
naYinChinese string, required
The Na Yin name in hanzi. Identical under every lang.
naYinElement string, required
Element the Na Yin resolves to. Independent of the stem element and often different from it, which is why it is reported separately rather than folded in. Always English, whatever the lang parameter says. Use naYinElementLocalized for anything a reader sees.
naYinElementLocalized string
Na Yin element name in the requested language, for display only. Present only when lang is set to a language other than English, since in English it would repeat its canonical partner field exactly. Never compare against this value, compare against the canonical field beside it.
dayMaster object, required
The day stem, which is the subject of the whole chart. Everything else in the response is named by what it does to this one.
Show all 7 fieldsShow fewer fields
stem string, required
Day stem identifier, which IS the Day Master. Always English pinyin, whatever the lang parameter says.
chinese string, required
The Day Master stem in hanzi. Identical under every lang.
pinyin string, required
Tone-marked pinyin for the Day Master stem.
element string, required
Five-phase element of the Day Master. Every Ten God in the chart is measured from this element and this polarity. Always English, whatever the lang parameter says. Use elementLocalized for anything a reader sees.
elementLocalized string
Element name in the requested language, for display only. Present only when lang is set to a language other than English, since in English it would repeat its canonical partner field exactly. Never compare against this value, compare against the canonical field beside it.
polarity string, required
Polarity of the Day Master, yang or yin.
nature string, required
What this particular stem is like as a Day Master, in the imagery the tradition uses to distinguish the two stems of each element. The yang and yin forms of one element behave very differently and this is where that difference lives.
zodiacAnimal string, required
Zodiac animal of the year branch, under the year boundary this request applied. Always English, whatever the lang parameter says. Use zodiacAnimalLocalized for anything a reader sees.
zodiacAnimalLocalized string
Zodiac animal name in the requested language, for display only. Present only when lang is set to a language other than English, since in English it would repeat its canonical partner field exactly. Never compare against this value, compare against the canonical field beside it.
fiveElements array of object, required
Element balance across the eight chart characters, one entry per phase, with the reading for how represented each one is.
Show all 5 fieldsShow fewer fields
element string, required
Five-phase element. Always English, whatever the lang parameter says. Use elementLocalized for anything a reader sees.
elementLocalized string
Element name in the requested language, for display only. Present only when lang is set to a language other than English, since in English it would repeat its canonical partner field exactly. Never compare against this value, compare against the canonical field beside it.
count number, required
How many of the eight chart characters carry this element, counting the four stems and the four branch elements one point each. Hidden stems are deliberately not counted here: a weighted total is a different quantity and mixing the two produces a number that matches no other calculator.
level string, required
How represented the element is. deficient means absent from all eight characters, excess means three or more, balanced is one or two. Always English, whatever the lang parameter says.
reading string, required
What this level of representation means for the chart.
interactions array of object, required
Combinations, clashes, harms and punishments running between the four pillars. An empty array means the four pillars stand independently of each other, which is common and is not a defect.
Show all 4 fieldsShow fewer fields
type string, required
Kind of interaction. stem-combination and six-combination bind two positions, trine binds three, and clash, harm, punishment and stem-clash break them. Always English, whatever the lang parameter says.
id string, required
Identifier of the pairing itself, the member ids joined by hyphens in canonical order.
chinese string, required
The interaction named in hanzi. Identical under every lang.
pinyin string, required
Tone-marked pinyin for the interaction. Identical under every lang.

Errors

StatusMeaning
400Validation error. `issues[]` lists every failed field.
401Invalid or missing API key
405Method not allowed. The path exists but only responds to the methods listed in `allow[]` and the `Allow` response header.
429Monthly rate limit exceeded
500Internal server error
POST /api/v2/chinese-astrology/bazi/luck-pillars

Calculate luck pillars

Calculate the da yun luck pillars, the ten-year periods a BaZi chart walks through after birth. Returns the direction the sequence runs, the age it begins at with the day count behind that age, each ten-year pillar with the Ten God relation its stem holds to the natal Day Master, and an optional year-by-year annual overlay. Direction follows the classical rule: a male born in a yang-stem year and a female born in a yin-stem year run forward through the sexagenary cycle, the other two combinations run backward. Built for astrology apps, life-timing features, and agents that need a reproducible forecast spine.

MCP tool
post_chinese_astrology_bazi_luck_pillars

Request

date string (date), required
Birth date in YYYY-MM-DD format. Sets the year, month and day pillars. The year pillar turns at Beginning of Spring rather than on 1 January, and the month pillar turns at each of the twelve minor solar terms rather than at a calendar month boundary.
time string (time), required
Birth time in 24-hour HH:MM:SS format. Sets the hour pillar, which is one of the four and carries the whole picture of later life and offspring. Each Earthly Branch covers two hours, so a birth within a few minutes of an odd hour can land in either. All four pillars are read in the local clock of the birth, and the day boundary is applied in that same clock; only the lunisolar calendar date itself is a world constant, fixed at UTC plus 8 so one instant has one Chinese date everywhere.
timezone number or string, required
IANA name (e.g. "America/New_York", "Europe/London", "UTC"), decimal hours (e.g. -5 for EST, 1 for CET), or a fixed UTC offset (e.g. "-05:00", "+01:00"). Prefer the IANA name: it is resolved to the offset in force at the birth date and time, historical daylight-saving rules included, while a fixed offset or decimal is taken literally and will be wrong if it does not match the daylight-saving state at that moment. On a transition day a time in the repeated hour is read as its first occurrence and a time in the skipped hour is moved forward past the gap. Invalid timezones return 400 with a validation error.
gender string enum, required
Subject sex, used only to pick the luck-pillar direction: a male born in a yang-stem year and a female born in a yin-stem year run forward through the sexagenary cycle, and the other two combinations run backward. It affects nothing else in the response. One of male, female.
Show all 9 optional fieldsShow fewer optional fields
lang query, string enum
Response language (BCP 47). Supported: en, tr, de, es, hi, pt, fr, ru, zh-Hans, zh-Hant. Defaults to en. Coverage varies by domain, and a field with no translation in the requested language returns English. One of en, tr, de, es, hi, pt, fr, ru, zh-Hans, zh-Hant. Default en.
latitude number
Birth latitude in decimal degrees. Accepted for consistency with the other birth-data endpoints and does not affect any part of a BaZi chart. Defaults to 0.
longitude number
Birth longitude in decimal degrees. Positive is East, negative is West. Required when hourClock is "local-mean" or "solar", which shift the hour branch to the sun over the birth place; omitting it in either case returns 400. Ignored when hourClock is "clock".
dayBoundary string enum
Which instant starts the sexagenary DAY, which only matters for a birth between 23:00 and 23:59. "midnight" is the classical position of the Ming compendium San Ming Tong Hui: the day turns at 00:00 and 23:00 to 23:59 is the late zi hour of the day that is ending, so the hour stem is taken from that day. "early-zi" turns the whole day at 23:00, the practice in Hong Kong, Taiwan and much of South East Asia. "split-zi" is the compromise most software implements and the default here: the day still turns at 00:00, but the hour stem is taken from the next day. The three give three different answers for a late-evening birth and identical answers for every other birth. One of split-zi, midnight, early-zi.
yearBoundary string enum
Which instant starts the sexagenary YEAR. "li-chun" is Beginning of Spring, around 4 February, and is the classical rule every BaZi text uses, so it is the default on this endpoint. "lunar-new-year" is the folk rule people mean when they say which animal they are, and it falls between late January and late February. The two disagree for any birth in the weeks between them: 14 February 2026 is a Wood Snake year under lunar-new-year and a Fire Horse year under li-chun. One of li-chun, lunar-new-year.
hourClock string enum
Which clock the day boundary and the hour branch are read from, so a correction that carries a birth across midnight moves the day pillar with the hour. "clock" is civil time exactly as a birth certificate records it, which is what most calculators use and the default here. "local-mean" shifts to the mean sun over the birth longitude, a correction of up to 59 minutes at the edge of a wide time zone. "solar" adds the equation of time on top of that, up to a further 16 minutes. Both non-civil options need "longitude" in the request and return 400 without it. One of clock, local-mean, solar.
count integer
How many ten-year luck pillars to return, 1 to 12. Eight covers eighty years from the start age, which reaches past a normal lifetime for most start ages.
annualFromYear integer
First Gregorian year of the annual pillar overlay. Omit it to leave annualPillars out of the response entirely. The annual pillar is the year the chart is currently walking through, read against the ten-year luck pillar underneath it.
annualYears integer
How many consecutive years the annual overlay covers, 1 to 20. Ignored unless annualFromYear is present.

Response

birthData object, required
Echo of the birth moment the chart was computed from.
Show all 5 fieldsShow fewer fields
date string (date), required
Birth date in YYYY-MM-DD format. Sets the year, month and day pillars. The year pillar turns at Beginning of Spring rather than on 1 January, and the month pillar turns at each of the twelve minor solar terms rather than at a calendar month boundary.
time string (time), required
Birth time in 24-hour HH:MM:SS format. Sets the hour pillar, which is one of the four and carries the whole picture of later life and offspring. Each Earthly Branch covers two hours, so a birth within a few minutes of an odd hour can land in either. All four pillars are read in the local clock of the birth, and the day boundary is applied in that same clock; only the lunisolar calendar date itself is a world constant, fixed at UTC plus 8 so one instant has one Chinese date everywhere.
timezone number, required
Decimal UTC offset the chart was computed with, resolved from whatever the request sent. An IANA name is resolved to the offset in force at the birth, so this is the literal number applied and never the name. A local time that never happened (the skipped hour of a daylight-saving change) is moved forward past the gap, and date, time and timezone then echo the clock that was running, which the day and hour pillars are read from.
latitude number
Birth latitude in decimal degrees. Accepted for consistency with the other birth-data endpoints and does not affect any part of a BaZi chart. Defaults to 0.
longitude number
Birth longitude in decimal degrees. Positive is East, negative is West. Required when hourClock is "local-mean" or "solar", which shift the hour branch to the sun over the birth place; omitting it in either case returns 400. Ignored when hourClock is "clock".
conventions object, required
The three school conventions this result was computed under. Returned on every BaZi response so a chart is self-describing: two calculators can produce different pillars for one birth and both be correct, and this object says which reading you are holding.
Show all 3 fieldsShow fewer fields
dayBoundary string enum, required
Day-boundary school actually applied. Echoes the request, or the default when it was omitted. Always English, whatever the lang parameter says, so it stays safe to compare against in code. One of split-zi, midnight, early-zi.
yearBoundary string enum, required
Year-boundary school actually applied. Echoes the request, or the default when it was omitted. One of li-chun, lunar-new-year.
hourClock string enum, required
Hour clock actually applied. Echoes the request, or the default when omitted. One of clock, local-mean, solar.
gender string, required
Echo of the sex sent, which is what selected the direction below.
direction string, required
Which way the sequence walks the sexagenary cycle. A male born in a yang-stem year and a female born in a yin-stem year run forward, and the other two combinations run backward. Always English, whatever the lang parameter says.
startAge number, required
Age in whole years at which the first luck pillar begins. Counted from the birth instant to the adjacent minor solar term at three days to the year, forward for a forward direction and backward for a reverse one.
startAgeMonths number, required
Additional months past startAge, 0 to 11, from the remainder of the same count at one day to four months, rounded once to the nearest month. Calculators that round the whole count to the nearest year will differ from this by up to six months.
daysToTerm number, required
Days from the birth instant to the minor solar term the count ran to, before conversion. Published so the start age can be checked rather than taken on trust.
boundaryTerm string, required
The minor solar term the count ran to. One of the twelve that also move the month pillar. Always the pinyin identifier, whatever the lang parameter says.
boundaryTermName string, required
Display name of that same term, in the requested language. Always present, and English when lang is en. Several English renderings of a term are in circulation, so treat this as the label and boundaryTerm as the value.
luckPillars array of object, required
The ten-year periods in order, each with the relation its stem holds to the natal Day Master.
Show all 31 fieldsShow fewer fields
index number, required
Position in the sequence, starting at 1 for the first ten-year period.
id string, required
Pillar identifier, the stem id and the branch id joined by a hyphen.
number number, required
Position of this pillar in the sexagenary cycle, 1 to 60. Consecutive luck pillars always differ by exactly one step, forward or backward, because the sequence walks the cycle from the birth month pillar.
stem object, required
The Heavenly Stem of this luck pillar, with its element and polarity.
stem.id string, required
Heavenly Stem identifier. One of jia, yi, bing, ding, wu, ji, geng, xin, ren, gui. Always English pinyin, whatever the lang parameter says, so it stays safe to compare against in code and to key a glyph table on.
stem.chinese string, required
The stem in hanzi. Data rather than display copy, so it is identical under every lang.
stem.pinyin string, required
Tone-marked pinyin for the stem. Identical under every lang.
stem.element string, required
Five-phase element of the stem. One of Wood, Fire, Earth, Metal, Water. Always English, whatever the lang parameter says. Use elementLocalized for anything a reader sees.
stem.elementLocalized string
Element name in the requested language, for display only. Present only when lang is set to a language other than English, since in English it would repeat its canonical partner field exactly. Never compare against this value, compare against the canonical field beside it.
stem.polarity string, required
Polarity of the stem, yang or yin. The five odd stems are yang and the five even ones are yin, and this is half of what decides every Ten God relation in the chart.
branch object, required
The Earthly Branch of this luck pillar, with its animal, element and polarity.
branch.id string, required
Earthly Branch identifier. One of zi, chou, yin, mao, chen, si, wu, wei, shen, you, xu, hai. Always English pinyin, whatever the lang parameter says. Note that "wu" is also a stem identifier: they never share a field, so a branch id is only ever read out of a branch position.
branch.chinese string, required
The branch in hanzi. Identical under every lang.
branch.pinyin string, required
Tone-marked pinyin for the branch. Identical under every lang.
branch.animal string, required
Zodiac animal of the branch. One of rat, ox, tiger, rabbit, dragon, snake, horse, goat, monkey, rooster, dog, pig. Always English, whatever the lang parameter says. Use animalLocalized for anything a reader sees.
branch.animalLocalized string
Zodiac animal name in the requested language, for display only. Present only when lang is set to a language other than English, since in English it would repeat its canonical partner field exactly. Never compare against this value, compare against the canonical field beside it.
branch.element string, required
Five-phase element of the branch. Always English, whatever the lang parameter says. Use elementLocalized for anything a reader sees.
branch.elementLocalized string
Element name in the requested language, for display only. Present only when lang is set to a language other than English, since in English it would repeat its canonical partner field exactly. Never compare against this value, compare against the canonical field beside it.
branch.polarity string, required
Polarity of the branch, yang or yin.
tenGod object, required
Relation the luck pillar STEM holds to the natal Day Master. This is what tells you whether a decade supports the chart or spends it.
tenGod.id string, required
Ten God identifier. One of friend, rob-wealth, eating-god, hurting-officer, indirect-wealth, direct-wealth, seven-killings, direct-officer, indirect-resource, direct-resource, plus day-master in the day-stem position. Always English, whatever the lang parameter says.
tenGod.name string, required
Display name of the relation. Always English, whatever the lang parameter says. Use nameLocalized for anything a reader sees.
tenGod.nameLocalized string
Ten God name in the requested language, for display only. Present only when lang is set to a language other than English, since in English it would repeat its canonical partner field exactly. Never compare against this value, compare against the canonical field beside it.
tenGod.chinese string, required
The relation in traditional hanzi. Identical under every lang.
tenGod.pinyin string, required
Tone-marked pinyin for the relation. Identical under every lang.
tenGod.category string, required
Which of the five cycle relations this belongs to. peer is the same element as the Day Master, output is what the Day Master generates, wealth is what it controls, influence is what controls it, resource is what generates it, and self marks the Day Master itself. Always English, whatever the lang parameter says.
tenGod.keynote string, required
One-line summary of what this relation contributes, for a compact rendering that has no room for the full meaning.
startAge number, required
Age in whole years at which this ten-year period begins.
endAge number, required
Age in whole years at which this period ends and the next one begins.
startYear number, required
Gregorian year this period begins: the year of the date that falls startAge years and startAgeMonths months after the birth date, plus ten for each later period. A birth in November with a start of 4 years 7 months begins its first period in June of the birth year plus five.
endYear number, required
Gregorian year this period ends and the next one begins, startYear plus ten.
annualPillars array of object
Year-by-year overlay, present only when annualFromYear was sent. Each year names the luck pillar it falls inside.
Show all 12 fieldsShow fewer fields
year number, required
Gregorian year.
id string, required
Annual pillar identifier for that year, under the year boundary applied.
number number, required
Position of the annual pillar in the sexagenary cycle, 1 to 60.
tenGod object, required
Relation the annual pillar STEM holds to the natal Day Master.
tenGod.id string, required
Ten God identifier. One of friend, rob-wealth, eating-god, hurting-officer, indirect-wealth, direct-wealth, seven-killings, direct-officer, indirect-resource, direct-resource, plus day-master in the day-stem position. Always English, whatever the lang parameter says.
tenGod.name string, required
Display name of the relation. Always English, whatever the lang parameter says. Use nameLocalized for anything a reader sees.
tenGod.nameLocalized string
Ten God name in the requested language, for display only. Present only when lang is set to a language other than English, since in English it would repeat its canonical partner field exactly. Never compare against this value, compare against the canonical field beside it.
tenGod.chinese string, required
The relation in traditional hanzi. Identical under every lang.
tenGod.pinyin string, required
Tone-marked pinyin for the relation. Identical under every lang.
tenGod.category string, required
Which of the five cycle relations this belongs to. peer is the same element as the Day Master, output is what the Day Master generates, wealth is what it controls, influence is what controls it, resource is what generates it, and self marks the Day Master itself. Always English, whatever the lang parameter says.
tenGod.keynote string, required
One-line summary of what this relation contributes, for a compact rendering that has no room for the full meaning.
luckPillarIndex number, required
Which returned luck pillar this year falls inside, by its index. The year a period begins in counts as inside it, though the handover falls in a month of that year. 0 means the year falls before the first luck pillar begins, in the stretch still governed by the natal chart alone.
summary string, required
One-paragraph reading of the sequence direction and its start.

Errors

StatusMeaning
400Validation error. `issues[]` lists every failed field.
401Invalid or missing API key
405Method not allowed. The path exists but only responds to the methods listed in `allow[]` and the `Allow` response header.
429Monthly rate limit exceeded
500Internal server error
POST /api/v2/chinese-astrology/bazi/day-master

Calculate Day Master strength

Assess how well the Day Master is supported by the rest of a BaZi chart, and which of the five elements help it. Uses the classical three-factor method: whether the birth month season backs the Day Master element, whether any branch stores a root for it, and whether the other stems and the branches outside the month help or spend it. Returns the verdict, an auditable score with each factor contribution, the seasonal state, the root count, the element headcount, and the favorable and unfavorable element lists that follow from the verdict. Built for chart readers, remedy features, and agents that need the usable half of a Four Pillars reading.

MCP tool
post_chinese_astrology_bazi_day_master

Request

date string (date), required
Birth date in YYYY-MM-DD format. Sets the year, month and day pillars. The year pillar turns at Beginning of Spring rather than on 1 January, and the month pillar turns at each of the twelve minor solar terms rather than at a calendar month boundary.
time string (time), required
Birth time in 24-hour HH:MM:SS format. Sets the hour pillar, which is one of the four and carries the whole picture of later life and offspring. Each Earthly Branch covers two hours, so a birth within a few minutes of an odd hour can land in either. All four pillars are read in the local clock of the birth, and the day boundary is applied in that same clock; only the lunisolar calendar date itself is a world constant, fixed at UTC plus 8 so one instant has one Chinese date everywhere.
timezone number or string, required
IANA name (e.g. "America/New_York", "Europe/London", "UTC"), decimal hours (e.g. -5 for EST, 1 for CET), or a fixed UTC offset (e.g. "-05:00", "+01:00"). Prefer the IANA name: it is resolved to the offset in force at the birth date and time, historical daylight-saving rules included, while a fixed offset or decimal is taken literally and will be wrong if it does not match the daylight-saving state at that moment. On a transition day a time in the repeated hour is read as its first occurrence and a time in the skipped hour is moved forward past the gap. Invalid timezones return 400 with a validation error.
Show all 6 optional fieldsShow fewer optional fields
lang query, string enum
Response language (BCP 47). Supported: en, tr, de, es, hi, pt, fr, ru, zh-Hans, zh-Hant. Defaults to en. Coverage varies by domain, and a field with no translation in the requested language returns English. One of en, tr, de, es, hi, pt, fr, ru, zh-Hans, zh-Hant. Default en.
latitude number
Birth latitude in decimal degrees. Accepted for consistency with the other birth-data endpoints and does not affect any part of a BaZi chart. Defaults to 0.
longitude number
Birth longitude in decimal degrees. Positive is East, negative is West. Required when hourClock is "local-mean" or "solar", which shift the hour branch to the sun over the birth place; omitting it in either case returns 400. Ignored when hourClock is "clock".
dayBoundary string enum
Which instant starts the sexagenary DAY, which only matters for a birth between 23:00 and 23:59. "midnight" is the classical position of the Ming compendium San Ming Tong Hui: the day turns at 00:00 and 23:00 to 23:59 is the late zi hour of the day that is ending, so the hour stem is taken from that day. "early-zi" turns the whole day at 23:00, the practice in Hong Kong, Taiwan and much of South East Asia. "split-zi" is the compromise most software implements and the default here: the day still turns at 00:00, but the hour stem is taken from the next day. The three give three different answers for a late-evening birth and identical answers for every other birth. One of split-zi, midnight, early-zi.
yearBoundary string enum
Which instant starts the sexagenary YEAR. "li-chun" is Beginning of Spring, around 4 February, and is the classical rule every BaZi text uses, so it is the default on this endpoint. "lunar-new-year" is the folk rule people mean when they say which animal they are, and it falls between late January and late February. The two disagree for any birth in the weeks between them: 14 February 2026 is a Wood Snake year under lunar-new-year and a Fire Horse year under li-chun. One of li-chun, lunar-new-year.
hourClock string enum
Which clock the day boundary and the hour branch are read from, so a correction that carries a birth across midnight moves the day pillar with the hour. "clock" is civil time exactly as a birth certificate records it, which is what most calculators use and the default here. "local-mean" shifts to the mean sun over the birth longitude, a correction of up to 59 minutes at the edge of a wide time zone. "solar" adds the equation of time on top of that, up to a further 16 minutes. Both non-civil options need "longitude" in the request and return 400 without it. One of clock, local-mean, solar.

Response

birthData object, required
Echo of the birth moment the chart was computed from.
Show all 5 fieldsShow fewer fields
date string (date), required
Birth date in YYYY-MM-DD format. Sets the year, month and day pillars. The year pillar turns at Beginning of Spring rather than on 1 January, and the month pillar turns at each of the twelve minor solar terms rather than at a calendar month boundary.
time string (time), required
Birth time in 24-hour HH:MM:SS format. Sets the hour pillar, which is one of the four and carries the whole picture of later life and offspring. Each Earthly Branch covers two hours, so a birth within a few minutes of an odd hour can land in either. All four pillars are read in the local clock of the birth, and the day boundary is applied in that same clock; only the lunisolar calendar date itself is a world constant, fixed at UTC plus 8 so one instant has one Chinese date everywhere.
timezone number, required
Decimal UTC offset the chart was computed with, resolved from whatever the request sent. An IANA name is resolved to the offset in force at the birth, so this is the literal number applied and never the name. A local time that never happened (the skipped hour of a daylight-saving change) is moved forward past the gap, and date, time and timezone then echo the clock that was running, which the day and hour pillars are read from.
latitude number
Birth latitude in decimal degrees. Accepted for consistency with the other birth-data endpoints and does not affect any part of a BaZi chart. Defaults to 0.
longitude number
Birth longitude in decimal degrees. Positive is East, negative is West. Required when hourClock is "local-mean" or "solar", which shift the hour branch to the sun over the birth place; omitting it in either case returns 400. Ignored when hourClock is "clock".
conventions object, required
The three school conventions this result was computed under. Returned on every BaZi response so a chart is self-describing: two calculators can produce different pillars for one birth and both be correct, and this object says which reading you are holding.
Show all 3 fieldsShow fewer fields
dayBoundary string enum, required
Day-boundary school actually applied. Echoes the request, or the default when it was omitted. Always English, whatever the lang parameter says, so it stays safe to compare against in code. One of split-zi, midnight, early-zi.
yearBoundary string enum, required
Year-boundary school actually applied. Echoes the request, or the default when it was omitted. One of li-chun, lunar-new-year.
hourClock string enum, required
Hour clock actually applied. Echoes the request, or the default when omitted. One of clock, local-mean, solar.
dayMaster object, required
The day stem whose strength is being assessed.
Show all 7 fieldsShow fewer fields
stem string, required
Day stem identifier. Always English pinyin, whatever the lang parameter says.
chinese string, required
The Day Master stem in hanzi.
pinyin string, required
Tone-marked pinyin for the Day Master stem.
element string, required
Five-phase element of the Day Master, the element whose support is being weighed. Always English, whatever the lang parameter says. Use elementLocalized for anything a reader sees.
elementLocalized string
Element name in the requested language, for display only. Present only when lang is set to a language other than English, since in English it would repeat its canonical partner field exactly. Never compare against this value, compare against the canonical field beside it.
polarity string, required
Polarity of the Day Master, yang or yin.
nature string, required
What this particular stem is like as a Day Master.
verdict string, required
Strength verdict. One of very-weak, weak, balanced, strong, very-strong, banded on the composite score below: under -3 is very-weak, -3 to under -1 is weak, -1 to under 1 is balanced, 1 to under 3 is strong, 3 and above is very-strong. Always English, whatever the lang parameter says.
score number, required
Composite support score, negative for an under-supported Day Master and positive for a well-supported one. A RoxyAPI weighting of the three classical factors rather than a figure from any text, published so the verdict can be audited: the three factor contributions sum to exactly this number.
seasonalState string, required
State of the Day Master element in the birth month, the strongest single input. One of prosperous, supported, resting, imprisoned, dead, which render the classical five wang xiang xiu qiu si. Always English, whatever the lang parameter says; the translated reading is seasonalStateMeaning.
seasonalStateChinese string, required
The seasonal state in hanzi. Identical under every lang.
seasonalStateMeaning string, required
What this seasonal state means for the chart.
rootCount number, required
How many of the four branches store a stem of the Day Master element. Zero means the day stem is rootless, which is the single most decisive finding a strength reading can return.
factors array of object, required
The three classical factors behind the verdict, each with what it found and what it contributed. These are the citable part of the reading; the score is our arithmetic over them.
Show all 6 fieldsShow fewer fields
id string, required
Which classical factor this is. month-command is de ling, whether the birth month season backs the Day Master element. rooting is de di, whether any branch stores a stem of that element. party is de shi, whether the other three stems, and the principal stems of the three branches outside the month, help or spend it. Always English, whatever the lang parameter says.
name string, required
Display name of the factor. Always English, whatever the lang parameter says. Use nameLocalized for anything a reader sees.
chinese string, required
The factor named in hanzi. Identical under every lang.
pinyin string, required
Tone-marked pinyin for the factor. Identical under every lang.
contribution number, required
Points this factor contributed to the composite score, positive for support and negative for drain. The three contributions sum to score, so a caller who weights the factors differently can rebuild its own total from the same findings.
detail string, required
What the factor actually found in this chart, in one clause.
favorableElements array of string, required
Elements that help this chart. A weak Day Master wants its own element and the one that generates it; a strong one wants the three that drain, spend, or restrain it. Empty when the verdict is balanced, because a centred chart has no categorically favourable element and the incoming luck pillar decides. Always English, whatever the lang parameter says.
unfavorableElements array of string, required
Elements that burden this chart, the complement of favorableElements. Also empty when the verdict is balanced.
fiveElements array of object, required
Element headcount across the eight characters, the plain distribution behind the weighted verdict.
Show all 5 fieldsShow fewer fields
element string, required
Five-phase element. Always English, whatever the lang parameter says.
elementLocalized string
Element name in the requested language, for display only. Present only when lang is set to a language other than English, since in English it would repeat its canonical partner field exactly. Never compare against this value, compare against the canonical field beside it.
count number, required
How many of the eight chart characters carry this element, four stems and four branch elements at one point each.
level string, required
How represented the element is. deficient is absent, excess is three or more, balanced is one or two.
reading string, required
What this level of representation means for the chart.
summary string, required
One-paragraph reading composed from the verdict, the seasonal state, and the rooting finding.

Errors

StatusMeaning
400Validation error. `issues[]` lists every failed field.
401Invalid or missing API key
405Method not allowed. The path exists but only responds to the methods listed in `allow[]` and the `Allow` response header.
429Monthly rate limit exceeded
500Internal server error
POST /api/v2/chinese-astrology/bazi/compatibility

Calculate BaZi compatibility

Compare two BaZi charts pillar by pillar, the Chinese astrology reading of how two people match. Returns both resolved charts, how the two Day Masters stand to each other on the five-phase cycle, and every combination, clash, harm and punishment that crosses between them, each naming the two positions it joins. A tallied score summarises the balance and the interaction list behind it is returned in full, so a caller that disagrees with the weighting can recompute its own. Built for matchmaking products, relationship features, and agents that need a defensible two-chart reading.

MCP tool
post_chinese_astrology_bazi_compatibility

Request

personA object, required
Birth moment of the first person. Each subject carries its own school switches, so two charts built under different conventions can still be compared.
personA.date string (date), required
Birth date in YYYY-MM-DD format. Sets the year, month and day pillars. The year pillar turns at Beginning of Spring rather than on 1 January, and the month pillar turns at each of the twelve minor solar terms rather than at a calendar month boundary.
personA.time string (time), required
Birth time in 24-hour HH:MM:SS format. Sets the hour pillar, which is one of the four and carries the whole picture of later life and offspring. Each Earthly Branch covers two hours, so a birth within a few minutes of an odd hour can land in either. All four pillars are read in the local clock of the birth, and the day boundary is applied in that same clock; only the lunisolar calendar date itself is a world constant, fixed at UTC plus 8 so one instant has one Chinese date everywhere.
personA.timezone number or string, required
IANA name (e.g. "America/New_York", "Europe/London", "UTC"), decimal hours (e.g. -5 for EST, 1 for CET), or a fixed UTC offset (e.g. "-05:00", "+01:00"). Prefer the IANA name: it is resolved to the offset in force at the birth date and time, historical daylight-saving rules included, while a fixed offset or decimal is taken literally and will be wrong if it does not match the daylight-saving state at that moment. On a transition day a time in the repeated hour is read as its first occurrence and a time in the skipped hour is moved forward past the gap. Invalid timezones return 400 with a validation error.
personB object, required
Birth moment of the second person.
personB.date string (date), required
Birth date in YYYY-MM-DD format. Sets the year, month and day pillars. The year pillar turns at Beginning of Spring rather than on 1 January, and the month pillar turns at each of the twelve minor solar terms rather than at a calendar month boundary.
personB.time string (time), required
Birth time in 24-hour HH:MM:SS format. Sets the hour pillar, which is one of the four and carries the whole picture of later life and offspring. Each Earthly Branch covers two hours, so a birth within a few minutes of an odd hour can land in either. All four pillars are read in the local clock of the birth, and the day boundary is applied in that same clock; only the lunisolar calendar date itself is a world constant, fixed at UTC plus 8 so one instant has one Chinese date everywhere.
personB.timezone number or string, required
IANA name (e.g. "America/New_York", "Europe/London", "UTC"), decimal hours (e.g. -5 for EST, 1 for CET), or a fixed UTC offset (e.g. "-05:00", "+01:00"). Prefer the IANA name: it is resolved to the offset in force at the birth date and time, historical daylight-saving rules included, while a fixed offset or decimal is taken literally and will be wrong if it does not match the daylight-saving state at that moment. On a transition day a time in the repeated hour is read as its first occurrence and a time in the skipped hour is moved forward past the gap. Invalid timezones return 400 with a validation error.
Show all 11 optional fieldsShow fewer optional fields
lang query, string enum
Response language (BCP 47). Supported: en, tr, de, es, hi, pt, fr, ru, zh-Hans, zh-Hant. Defaults to en. Coverage varies by domain, and a field with no translation in the requested language returns English. One of en, tr, de, es, hi, pt, fr, ru, zh-Hans, zh-Hant. Default en.
personA.latitude number
Birth latitude in decimal degrees. Accepted for consistency with the other birth-data endpoints and does not affect any part of a BaZi chart. Defaults to 0.
personA.longitude number
Birth longitude in decimal degrees. Positive is East, negative is West. Required when hourClock is "local-mean" or "solar", which shift the hour branch to the sun over the birth place; omitting it in either case returns 400. Ignored when hourClock is "clock".
personA.dayBoundary string enum
Which instant starts the sexagenary DAY, which only matters for a birth between 23:00 and 23:59. "midnight" is the classical position of the Ming compendium San Ming Tong Hui: the day turns at 00:00 and 23:00 to 23:59 is the late zi hour of the day that is ending, so the hour stem is taken from that day. "early-zi" turns the whole day at 23:00, the practice in Hong Kong, Taiwan and much of South East Asia. "split-zi" is the compromise most software implements and the default here: the day still turns at 00:00, but the hour stem is taken from the next day. The three give three different answers for a late-evening birth and identical answers for every other birth. One of split-zi, midnight, early-zi.
personA.yearBoundary string enum
Which instant starts the sexagenary YEAR. "li-chun" is Beginning of Spring, around 4 February, and is the classical rule every BaZi text uses, so it is the default on this endpoint. "lunar-new-year" is the folk rule people mean when they say which animal they are, and it falls between late January and late February. The two disagree for any birth in the weeks between them: 14 February 2026 is a Wood Snake year under lunar-new-year and a Fire Horse year under li-chun. One of li-chun, lunar-new-year.
personA.hourClock string enum
Which clock the day boundary and the hour branch are read from, so a correction that carries a birth across midnight moves the day pillar with the hour. "clock" is civil time exactly as a birth certificate records it, which is what most calculators use and the default here. "local-mean" shifts to the mean sun over the birth longitude, a correction of up to 59 minutes at the edge of a wide time zone. "solar" adds the equation of time on top of that, up to a further 16 minutes. Both non-civil options need "longitude" in the request and return 400 without it. One of clock, local-mean, solar.
personB.latitude number
Birth latitude in decimal degrees. Accepted for consistency with the other birth-data endpoints and does not affect any part of a BaZi chart. Defaults to 0.
personB.longitude number
Birth longitude in decimal degrees. Positive is East, negative is West. Required when hourClock is "local-mean" or "solar", which shift the hour branch to the sun over the birth place; omitting it in either case returns 400. Ignored when hourClock is "clock".
personB.dayBoundary string enum
Which instant starts the sexagenary DAY, which only matters for a birth between 23:00 and 23:59. "midnight" is the classical position of the Ming compendium San Ming Tong Hui: the day turns at 00:00 and 23:00 to 23:59 is the late zi hour of the day that is ending, so the hour stem is taken from that day. "early-zi" turns the whole day at 23:00, the practice in Hong Kong, Taiwan and much of South East Asia. "split-zi" is the compromise most software implements and the default here: the day still turns at 00:00, but the hour stem is taken from the next day. The three give three different answers for a late-evening birth and identical answers for every other birth. One of split-zi, midnight, early-zi.
personB.yearBoundary string enum
Which instant starts the sexagenary YEAR. "li-chun" is Beginning of Spring, around 4 February, and is the classical rule every BaZi text uses, so it is the default on this endpoint. "lunar-new-year" is the folk rule people mean when they say which animal they are, and it falls between late January and late February. The two disagree for any birth in the weeks between them: 14 February 2026 is a Wood Snake year under lunar-new-year and a Fire Horse year under li-chun. One of li-chun, lunar-new-year.
personB.hourClock string enum
Which clock the day boundary and the hour branch are read from, so a correction that carries a birth across midnight moves the day pillar with the hour. "clock" is civil time exactly as a birth certificate records it, which is what most calculators use and the default here. "local-mean" shifts to the mean sun over the birth longitude, a correction of up to 59 minutes at the edge of a wide time zone. "solar" adds the equation of time on top of that, up to a further 16 minutes. Both non-civil options need "longitude" in the request and return 400 without it. One of clock, local-mean, solar.

Response

personA object, required
Resolved chart of the first person.
Show all 49 fieldsShow fewer fields
pillars array of object, required
The four pillars of this person, year first.
pillars[].position string, required
Which of the four pillars this is. One of year, month, day, hour. The year pillar reads ancestry and early life, the month career and parents, the day the self and the partner, the hour later life and children.
pillars[].id string, required
Pillar identifier, the stem id and the branch id joined by a hyphen. Always English pinyin, whatever the lang parameter says.
pillars[].number number, required
Position of this pillar in the sexagenary cycle, 1 to 60, where jia-zi is 1. The cycle runs stems and branches together, which is why only 60 of the 120 possible pairings occur.
pillars[].stem object, required
The Heavenly Stem of this pillar.
pillars[].stem.id string, required
Heavenly Stem identifier. One of jia, yi, bing, ding, wu, ji, geng, xin, ren, gui. Always English pinyin, whatever the lang parameter says, so it stays safe to compare against in code and to key a glyph table on.
pillars[].stem.chinese string, required
The stem in hanzi. Data rather than display copy, so it is identical under every lang.
pillars[].stem.pinyin string, required
Tone-marked pinyin for the stem. Identical under every lang.
pillars[].stem.element string, required
Five-phase element of the stem. One of Wood, Fire, Earth, Metal, Water. Always English, whatever the lang parameter says. Use elementLocalized for anything a reader sees.
pillars[].stem.elementLocalized string
Element name in the requested language, for display only. Present only when lang is set to a language other than English, since in English it would repeat its canonical partner field exactly. Never compare against this value, compare against the canonical field beside it.
pillars[].stem.polarity string, required
Polarity of the stem, yang or yin. The five odd stems are yang and the five even ones are yin, and this is half of what decides every Ten God relation in the chart.
pillars[].branch object, required
The Earthly Branch of this pillar.
pillars[].branch.id string, required
Earthly Branch identifier. One of zi, chou, yin, mao, chen, si, wu, wei, shen, you, xu, hai. Always English pinyin, whatever the lang parameter says. Note that "wu" is also a stem identifier: they never share a field, so a branch id is only ever read out of a branch position.
pillars[].branch.chinese string, required
The branch in hanzi. Identical under every lang.
pillars[].branch.pinyin string, required
Tone-marked pinyin for the branch. Identical under every lang.
pillars[].branch.animal string, required
Zodiac animal of the branch. One of rat, ox, tiger, rabbit, dragon, snake, horse, goat, monkey, rooster, dog, pig. Always English, whatever the lang parameter says. Use animalLocalized for anything a reader sees.
pillars[].branch.animalLocalized string
Zodiac animal name in the requested language, for display only. Present only when lang is set to a language other than English, since in English it would repeat its canonical partner field exactly. Never compare against this value, compare against the canonical field beside it.
pillars[].branch.element string, required
Five-phase element of the branch. Always English, whatever the lang parameter says. Use elementLocalized for anything a reader sees.
pillars[].branch.elementLocalized string
Element name in the requested language, for display only. Present only when lang is set to a language other than English, since in English it would repeat its canonical partner field exactly. Never compare against this value, compare against the canonical field beside it.
pillars[].branch.polarity string, required
Polarity of the branch, yang or yin.
pillars[].tenGod object, required
Relation the pillar STEM holds to the Day Master. The day pillar carries day-master instead, because the day stem is the reference point every other position is measured from rather than a relation to itself.
pillars[].tenGod.id string, required
Ten God identifier. One of friend, rob-wealth, eating-god, hurting-officer, indirect-wealth, direct-wealth, seven-killings, direct-officer, indirect-resource, direct-resource, plus day-master in the day-stem position. Always English, whatever the lang parameter says.
pillars[].tenGod.name string, required
Display name of the relation. Always English, whatever the lang parameter says. Use nameLocalized for anything a reader sees.
pillars[].tenGod.nameLocalized string
Ten God name in the requested language, for display only. Present only when lang is set to a language other than English, since in English it would repeat its canonical partner field exactly. Never compare against this value, compare against the canonical field beside it.
pillars[].tenGod.chinese string, required
The relation in traditional hanzi. Identical under every lang.
pillars[].tenGod.pinyin string, required
Tone-marked pinyin for the relation. Identical under every lang.
pillars[].tenGod.category string, required
Which of the five cycle relations this belongs to. peer is the same element as the Day Master, output is what the Day Master generates, wealth is what it controls, influence is what controls it, resource is what generates it, and self marks the Day Master itself. Always English, whatever the lang parameter says.
pillars[].tenGod.keynote string, required
One-line summary of what this relation contributes, for a compact rendering that has no room for the full meaning.
pillars[].hiddenStems array of object, required
Stems stored inside the branch, principal first. These carry the qi a branch holds without showing it, and they are where a Day Master finds a root.
pillars[].hiddenStems[].stem object, required
The stem stored in the branch.
pillars[].hiddenStems[].role string, required
Rank of this stem inside the branch, by the classical day-count that divides a thirty-day month 18, 9 and 3 days between the stems a branch holds. principal is the first-ranked stem and always matches the branch element; middle is the second-ranked; residual is the third. A branch holds one to three, always returned in rank order. What each rank CONTAINS depends on the branch family: on a storage branch the second-ranked stem is the seasonal carryover from the month before and the third is the stem that branch stores as the close of its trine, while on a growth branch the second-ranked stem is the one beginning its long-life phase there and the third is the carryover. Some schools name the same three positions by that function rather than by rank, which swaps the second and third labels on the four storage branches, so compare on rank rather than assuming a name.
pillars[].hiddenStems[].tenGod object, required
Relation this hidden stem holds to the Day Master.
pillars[].naYin string, required
Na Yin sound element of the pillar, an older elemental reading assigned to each of the 30 stem-and-branch pairs. The hanzi name sits beside it in naYinChinese.
pillars[].naYinChinese string, required
The Na Yin name in hanzi. Identical under every lang.
pillars[].naYinElement string, required
Element the Na Yin resolves to. Independent of the stem element and often different from it, which is why it is reported separately rather than folded in. Always English, whatever the lang parameter says. Use naYinElementLocalized for anything a reader sees.
pillars[].naYinElementLocalized string
Na Yin element name in the requested language, for display only. Present only when lang is set to a language other than English, since in English it would repeat its canonical partner field exactly. Never compare against this value, compare against the canonical field beside it.
dayMaster object, required
The day stem of this person.
dayMaster.stem string, required
Day stem identifier for this person.
dayMaster.chinese string, required
The Day Master stem in hanzi.
dayMaster.pinyin string, required
Tone-marked pinyin for the Day Master stem.
dayMaster.element string, required
Five-phase element of this Day Master. Always English, whatever the lang parameter says.
dayMaster.elementLocalized string
Display copy of the element in the requested language. Absent for English, so an English response is unchanged.
dayMaster.polarity string, required
Polarity, yang or yin.
dayMaster.nature string, required
What this stem is like as a Day Master.
strength string, required
Day Master strength verdict for this person, so a reader can see which of the two chart carries more capacity. One of very-weak, weak, balanced, strong, very-strong.
conventions object, required
The three school conventions this result was computed under. Returned on every BaZi response so a chart is self-describing: two calculators can produce different pillars for one birth and both be correct, and this object says which reading you are holding.
conventions.dayBoundary string enum, required
Day-boundary school actually applied. Echoes the request, or the default when it was omitted. Always English, whatever the lang parameter says, so it stays safe to compare against in code. One of split-zi, midnight, early-zi.
conventions.yearBoundary string enum, required
Year-boundary school actually applied. Echoes the request, or the default when it was omitted. One of li-chun, lunar-new-year.
conventions.hourClock string enum, required
Hour clock actually applied. Echoes the request, or the default when omitted. One of clock, local-mean, solar.
personB object, required
Resolved chart of the second person.
Show all 29 fieldsShow fewer fields
pillars array of object, required
The four pillars of this person, year first.
pillars[].position string, required
Which of the four pillars this is. One of year, month, day, hour. The year pillar reads ancestry and early life, the month career and parents, the day the self and the partner, the hour later life and children.
pillars[].id string, required
Pillar identifier, the stem id and the branch id joined by a hyphen. Always English pinyin, whatever the lang parameter says.
pillars[].number number, required
Position of this pillar in the sexagenary cycle, 1 to 60, where jia-zi is 1. The cycle runs stems and branches together, which is why only 60 of the 120 possible pairings occur.
pillars[].stem object, required
The Heavenly Stem of this pillar.
pillars[].stem.id string, required
Heavenly Stem identifier. One of jia, yi, bing, ding, wu, ji, geng, xin, ren, gui. Always English pinyin, whatever the lang parameter says, so it stays safe to compare against in code and to key a glyph table on.
pillars[].stem.chinese string, required
The stem in hanzi. Data rather than display copy, so it is identical under every lang.
pillars[].stem.pinyin string, required
Tone-marked pinyin for the stem. Identical under every lang.
pillars[].stem.element string, required
Five-phase element of the stem. One of Wood, Fire, Earth, Metal, Water. Always English, whatever the lang parameter says. Use elementLocalized for anything a reader sees.
pillars[].stem.elementLocalized string
Element name in the requested language, for display only. Present only when lang is set to a language other than English, since in English it would repeat its canonical partner field exactly. Never compare against this value, compare against the canonical field beside it.
pillars[].stem.polarity string, required
Polarity of the stem, yang or yin. The five odd stems are yang and the five even ones are yin, and this is half of what decides every Ten God relation in the chart.
pillars[].branch object, required
The Earthly Branch of this pillar.
pillars[].branch.id string, required
Earthly Branch identifier. One of zi, chou, yin, mao, chen, si, wu, wei, shen, you, xu, hai. Always English pinyin, whatever the lang parameter says. Note that "wu" is also a stem identifier: they never share a field, so a branch id is only ever read out of a branch position.
pillars[].branch.chinese string, required
The branch in hanzi. Identical under every lang.
pillars[].branch.pinyin string, required
Tone-marked pinyin for the branch. Identical under every lang.
pillars[].branch.animal string, required
Zodiac animal of the branch. One of rat, ox, tiger, rabbit, dragon, snake, horse, goat, monkey, rooster, dog, pig. Always English, whatever the lang parameter says. Use animalLocalized for anything a reader sees.
pillars[].branch.animalLocalized string
Zodiac animal name in the requested language, for display only. Present only when lang is set to a language other than English, since in English it would repeat its canonical partner field exactly. Never compare against this value, compare against the canonical field beside it.
pillars[].branch.element string, required
Five-phase element of the branch. Always English, whatever the lang parameter says. Use elementLocalized for anything a reader sees.
pillars[].branch.elementLocalized string
Element name in the requested language, for display only. Present only when lang is set to a language other than English, since in English it would repeat its canonical partner field exactly. Never compare against this value, compare against the canonical field beside it.
pillars[].branch.polarity string, required
Polarity of the branch, yang or yin.
pillars[].tenGod object, required
Relation the pillar STEM holds to the Day Master. The day pillar carries day-master instead, because the day stem is the reference point every other position is measured from rather than a relation to itself.
pillars[].tenGod.id string, required
Ten God identifier. One of friend, rob-wealth, eating-god, hurting-officer, indirect-wealth, direct-wealth, seven-killings, direct-officer, indirect-resource, direct-resource, plus day-master in the day-stem position. Always English, whatever the lang parameter says.
pillars[].tenGod.name string, required
Display name of the relation. Always English, whatever the lang parameter says. Use nameLocalized for anything a reader sees.
pillars[].tenGod.nameLocalized string
Ten God name in the requested language, for display only. Present only when lang is set to a language other than English, since in English it would repeat its canonical partner field exactly. Never compare against this value, compare against the canonical field beside it.
pillars[].tenGod.chinese string, required
The relation in traditional hanzi. Identical under every lang.
pillars[].tenGod.pinyin string, required
Tone-marked pinyin for the relation. Identical under every lang.
pillars[].tenGod.category string, required
Which of the five cycle relations this belongs to. peer is the same element as the Day Master, output is what the Day Master generates, wealth is what it controls, influence is what controls it, resource is what generates it, and self marks the Day Master itself. Always English, whatever the lang parameter says.
pillars[].tenGod.keynote string, required
One-line summary of what this relation contributes, for a compact rendering that has no room for the full meaning.
pillars[].hiddenStems array of object, required
Stems stored inside the branch, principal first. These carry the qi a branch holds without showing it, and they are where a Day Master finds a root.

Errors

StatusMeaning
400Validation error. `issues[]` lists every failed field.
401Invalid or missing API key
405Method not allowed. The path exists but only responds to the methods listed in `allow[]` and the `Allow` response header.
429Monthly rate limit exceeded
500Internal server error
POST /api/v2/chinese-astrology/bazi/annual-forecast

Calculate BaZi annual forecast

Read one Gregorian year against a natal BaZi chart. Returns the annual pillar for that year, the Ten God relation its stem holds to the natal Day Master, the same reading for the hidden stem of its branch, how the annual branch stands to the natal year branch including the ben ming nian return of the birth animal, and every combination, clash, harm and punishment the annual pillar forms with each of the four natal pillars. Built for yearly horoscope features, timing tools, and agents that need a year read against a specific chart rather than against an animal sign.

MCP tool
post_chinese_astrology_bazi_annual_forecast

Request

date string (date), required
Birth date in YYYY-MM-DD format. Sets the year, month and day pillars. The year pillar turns at Beginning of Spring rather than on 1 January, and the month pillar turns at each of the twelve minor solar terms rather than at a calendar month boundary.
time string (time), required
Birth time in 24-hour HH:MM:SS format. Sets the hour pillar, which is one of the four and carries the whole picture of later life and offspring. Each Earthly Branch covers two hours, so a birth within a few minutes of an odd hour can land in either. All four pillars are read in the local clock of the birth, and the day boundary is applied in that same clock; only the lunisolar calendar date itself is a world constant, fixed at UTC plus 8 so one instant has one Chinese date everywhere.
timezone number or string, required
IANA name (e.g. "America/New_York", "Europe/London", "UTC"), decimal hours (e.g. -5 for EST, 1 for CET), or a fixed UTC offset (e.g. "-05:00", "+01:00"). Prefer the IANA name: it is resolved to the offset in force at the birth date and time, historical daylight-saving rules included, while a fixed offset or decimal is taken literally and will be wrong if it does not match the daylight-saving state at that moment. On a transition day a time in the repeated hour is read as its first occurrence and a time in the skipped hour is moved forward past the gap. Invalid timezones return 400 with a validation error.
year integer, required
Gregorian year to read against the natal chart. The annual pillar for that year is resolved under the same year boundary the request selected, so a li-chun reading and a lunar-new-year reading of the same calendar year can differ.
Show all 6 optional fieldsShow fewer optional fields
lang query, string enum
Response language (BCP 47). Supported: en, tr, de, es, hi, pt, fr, ru, zh-Hans, zh-Hant. Defaults to en. Coverage varies by domain, and a field with no translation in the requested language returns English. One of en, tr, de, es, hi, pt, fr, ru, zh-Hans, zh-Hant. Default en.
latitude number
Birth latitude in decimal degrees. Accepted for consistency with the other birth-data endpoints and does not affect any part of a BaZi chart. Defaults to 0.
longitude number
Birth longitude in decimal degrees. Positive is East, negative is West. Required when hourClock is "local-mean" or "solar", which shift the hour branch to the sun over the birth place; omitting it in either case returns 400. Ignored when hourClock is "clock".
dayBoundary string enum
Which instant starts the sexagenary DAY, which only matters for a birth between 23:00 and 23:59. "midnight" is the classical position of the Ming compendium San Ming Tong Hui: the day turns at 00:00 and 23:00 to 23:59 is the late zi hour of the day that is ending, so the hour stem is taken from that day. "early-zi" turns the whole day at 23:00, the practice in Hong Kong, Taiwan and much of South East Asia. "split-zi" is the compromise most software implements and the default here: the day still turns at 00:00, but the hour stem is taken from the next day. The three give three different answers for a late-evening birth and identical answers for every other birth. One of split-zi, midnight, early-zi.
yearBoundary string enum
Which instant starts the sexagenary YEAR. "li-chun" is Beginning of Spring, around 4 February, and is the classical rule every BaZi text uses, so it is the default on this endpoint. "lunar-new-year" is the folk rule people mean when they say which animal they are, and it falls between late January and late February. The two disagree for any birth in the weeks between them: 14 February 2026 is a Wood Snake year under lunar-new-year and a Fire Horse year under li-chun. One of li-chun, lunar-new-year.
hourClock string enum
Which clock the day boundary and the hour branch are read from, so a correction that carries a birth across midnight moves the day pillar with the hour. "clock" is civil time exactly as a birth certificate records it, which is what most calculators use and the default here. "local-mean" shifts to the mean sun over the birth longitude, a correction of up to 59 minutes at the edge of a wide time zone. "solar" adds the equation of time on top of that, up to a further 16 minutes. Both non-civil options need "longitude" in the request and return 400 without it. One of clock, local-mean, solar.

Response

birthData object, required
Echo of the birth moment the chart was computed from.
Show all 5 fieldsShow fewer fields
date string (date), required
Birth date in YYYY-MM-DD format. Sets the year, month and day pillars. The year pillar turns at Beginning of Spring rather than on 1 January, and the month pillar turns at each of the twelve minor solar terms rather than at a calendar month boundary.
time string (time), required
Birth time in 24-hour HH:MM:SS format. Sets the hour pillar, which is one of the four and carries the whole picture of later life and offspring. Each Earthly Branch covers two hours, so a birth within a few minutes of an odd hour can land in either. All four pillars are read in the local clock of the birth, and the day boundary is applied in that same clock; only the lunisolar calendar date itself is a world constant, fixed at UTC plus 8 so one instant has one Chinese date everywhere.
timezone number, required
Decimal UTC offset the chart was computed with, resolved from whatever the request sent. An IANA name is resolved to the offset in force at the birth, so this is the literal number applied and never the name. A local time that never happened (the skipped hour of a daylight-saving change) is moved forward past the gap, and date, time and timezone then echo the clock that was running, which the day and hour pillars are read from.
latitude number
Birth latitude in decimal degrees. Accepted for consistency with the other birth-data endpoints and does not affect any part of a BaZi chart. Defaults to 0.
longitude number
Birth longitude in decimal degrees. Positive is East, negative is West. Required when hourClock is "local-mean" or "solar", which shift the hour branch to the sun over the birth place; omitting it in either case returns 400. Ignored when hourClock is "clock".
conventions object, required
The three school conventions this result was computed under. Returned on every BaZi response so a chart is self-describing: two calculators can produce different pillars for one birth and both be correct, and this object says which reading you are holding.
Show all 3 fieldsShow fewer fields
dayBoundary string enum, required
Day-boundary school actually applied. Echoes the request, or the default when it was omitted. Always English, whatever the lang parameter says, so it stays safe to compare against in code. One of split-zi, midnight, early-zi.
yearBoundary string enum, required
Year-boundary school actually applied. Echoes the request, or the default when it was omitted. One of li-chun, lunar-new-year.
hourClock string enum, required
Hour clock actually applied. Echoes the request, or the default when omitted. One of clock, local-mean, solar.
year number, required
Echo of the year requested, which the annual pillar below was resolved for.
annualPillar object, required
The sexagenary pillar of the year being read.
Show all 20 fieldsShow fewer fields
id string, required
Annual pillar identifier, the stem id and the branch id joined by a hyphen.
number number, required
Position of the annual pillar in the sexagenary cycle, 1 to 60.
stem object, required
Heavenly Stem of the year.
stem.id string, required
Heavenly Stem identifier. One of jia, yi, bing, ding, wu, ji, geng, xin, ren, gui. Always English pinyin, whatever the lang parameter says, so it stays safe to compare against in code and to key a glyph table on.
stem.chinese string, required
The stem in hanzi. Data rather than display copy, so it is identical under every lang.
stem.pinyin string, required
Tone-marked pinyin for the stem. Identical under every lang.
stem.element string, required
Five-phase element of the stem. One of Wood, Fire, Earth, Metal, Water. Always English, whatever the lang parameter says. Use elementLocalized for anything a reader sees.
stem.elementLocalized string
Element name in the requested language, for display only. Present only when lang is set to a language other than English, since in English it would repeat its canonical partner field exactly. Never compare against this value, compare against the canonical field beside it.
stem.polarity string, required
Polarity of the stem, yang or yin. The five odd stems are yang and the five even ones are yin, and this is half of what decides every Ten God relation in the chart.
branch object, required
Earthly Branch of the year.
branch.id string, required
Earthly Branch identifier. One of zi, chou, yin, mao, chen, si, wu, wei, shen, you, xu, hai. Always English pinyin, whatever the lang parameter says. Note that "wu" is also a stem identifier: they never share a field, so a branch id is only ever read out of a branch position.
branch.chinese string, required
The branch in hanzi. Identical under every lang.
branch.pinyin string, required
Tone-marked pinyin for the branch. Identical under every lang.
branch.animal string, required
Zodiac animal of the branch. One of rat, ox, tiger, rabbit, dragon, snake, horse, goat, monkey, rooster, dog, pig. Always English, whatever the lang parameter says. Use animalLocalized for anything a reader sees.
branch.animalLocalized string
Zodiac animal name in the requested language, for display only. Present only when lang is set to a language other than English, since in English it would repeat its canonical partner field exactly. Never compare against this value, compare against the canonical field beside it.
branch.element string, required
Five-phase element of the branch. Always English, whatever the lang parameter says. Use elementLocalized for anything a reader sees.
branch.elementLocalized string
Element name in the requested language, for display only. Present only when lang is set to a language other than English, since in English it would repeat its canonical partner field exactly. Never compare against this value, compare against the canonical field beside it.
branch.polarity string, required
Polarity of the branch, yang or yin.
naYin string, required
Na Yin sound element of the annual pillar.
naYinChinese string, required
The Na Yin name in hanzi. Identical under every lang.
animal string, required
Zodiac animal of the year branch. Always English, whatever the lang parameter says. Use animalLocalized for anything a reader sees.
animalLocalized string
Display copy of the animal name in the requested language. Absent for English, so an English response is unchanged.
tenGod object, required
Relation the ANNUAL STEM holds to the natal Day Master. This is the single most useful line of an annual reading: it says what the year asks of the chart.
Show all 7 fieldsShow fewer fields
id string, required
Ten God identifier. One of friend, rob-wealth, eating-god, hurting-officer, indirect-wealth, direct-wealth, seven-killings, direct-officer, indirect-resource, direct-resource, plus day-master in the day-stem position. Always English, whatever the lang parameter says.
name string, required
Display name of the relation. Always English, whatever the lang parameter says. Use nameLocalized for anything a reader sees.
nameLocalized string
Ten God name in the requested language, for display only. Present only when lang is set to a language other than English, since in English it would repeat its canonical partner field exactly. Never compare against this value, compare against the canonical field beside it.
chinese string, required
The relation in traditional hanzi. Identical under every lang.
pinyin string, required
Tone-marked pinyin for the relation. Identical under every lang.
category string, required
Which of the five cycle relations this belongs to. peer is the same element as the Day Master, output is what the Day Master generates, wealth is what it controls, influence is what controls it, resource is what generates it, and self marks the Day Master itself. Always English, whatever the lang parameter says.
keynote string, required
One-line summary of what this relation contributes, for a compact rendering that has no room for the full meaning.
branchTenGod object, required
Relation the principal hidden stem of the annual branch holds to the natal Day Master, the slower half of the same reading.
Show all 7 fieldsShow fewer fields
id string, required
Ten God identifier. One of friend, rob-wealth, eating-god, hurting-officer, indirect-wealth, direct-wealth, seven-killings, direct-officer, indirect-resource, direct-resource, plus day-master in the day-stem position. Always English, whatever the lang parameter says.
name string, required
Display name of the relation. Always English, whatever the lang parameter says. Use nameLocalized for anything a reader sees.
nameLocalized string
Ten God name in the requested language, for display only. Present only when lang is set to a language other than English, since in English it would repeat its canonical partner field exactly. Never compare against this value, compare against the canonical field beside it.
chinese string, required
The relation in traditional hanzi. Identical under every lang.
pinyin string, required
Tone-marked pinyin for the relation. Identical under every lang.
category string, required
Which of the five cycle relations this belongs to. peer is the same element as the Day Master, output is what the Day Master generates, wealth is what it controls, influence is what controls it, resource is what generates it, and self marks the Day Master itself. Always English, whatever the lang parameter says.
keynote string, required
One-line summary of what this relation contributes, for a compact rendering that has no room for the full meaning.
yearBranchRelation string, required
How the annual branch stands to the NATAL YEAR branch. same is the twelve-yearly return of the birth animal, the year commonly called ben ming nian. clash, harm and punishment are the three breaking relations, and none means the two branches form no structural relation at all. Always English, whatever the lang parameter says.
benMingNian boolean, required
True when the year returns the birth animal, which is exactly the case where yearBranchRelation is same. Surfaced as its own boolean because it is the one relation most consumers render on its own.
yearBranchRelationMeaning string, required
What this relation between the annual branch and the natal year branch means.
interactions array of object, required
Every combination, clash, harm and punishment the annual pillar forms with each of the four natal pillars. Positions are named natal.year through natal.hour against annual.
Show all 11 fieldsShow fewer fields
type string, required
Kind of interaction. stem-combination and six-combination bind two positions, trine binds three, and clash, harm, punishment and stem-clash break them. Always English, whatever the lang parameter says.
id string, required
Identifier of the pairing itself, the member ids joined by hyphens in canonical order.
chinese string, required
The interaction named in hanzi. Identical under every lang.
pinyin string, required
Tone-marked pinyin for the interaction. Identical under every lang.
quality string, required
Whether the interaction binds or breaks. harmonious for combinations and trines, challenging for clashes, harms and punishments. Always English, whatever the lang parameter says.
positions array of string, required
The chart positions taking part, in the same order as members. On a two-person reading these are prefixed with the subject, for example personA.day.
members array of string, required
The stem or branch ids taking part, in the same order as positions.
transformsTo string
Element the formation resolves to. Present on stem combinations and on complete trines, absent on everything else. Branch six combinations deliberately carry none: the classical sources assign transformed elements to the stem pairs and not to these, and one of the six is contested between schools.
variety string
Class of a punishment, present on punishments only. ungrateful is the tiger, snake and monkey group, bullying the ox, dog and goat group, discourteous the rat and rabbit pair, and self a branch doubled against itself.
complete boolean
Punishments only. True when the third branch of the group is also present in the chart, which is what a complete three-punishment means. False marks the partial case, where only two of the three are in play.
meaning string, required
What this kind of interaction does between the positions it joins.
summary string, required
One-paragraph reading of what the year asks of this chart.

Errors

StatusMeaning
400Validation error. `issues[]` lists every failed field.
401Invalid or missing API key
405Method not allowed. The path exists but only responds to the methods listed in `allow[]` and the `Allow` response header.
429Monthly rate limit exceeded
500Internal server error
GET /api/v2/chinese-astrology/elements

List the five elements

Return the five phases of Wu Xing with the Chinese character, the season and direction each governs, the Heavenly Stems and Earthly Branches that carry it, and both of the cycles that connect them. The generating cycle and the controlling cycle are returned as ordered rings as well as on each phase, so a caller can render either without deriving it. This is the one place the five phase vocabulary is defined: BaZi charts, Na Yin, zodiac element variants and every feng shui star reuse these identifiers rather than restating them.

MCP tool
get_chinese_astrology_elements

Request

Show all 3 optional fieldsShow fewer optional fields
lang query, string enum
Response language (BCP 47). Supported: en, tr, de, es, hi, pt, fr, ru, zh-Hans, zh-Hant. Defaults to en. Coverage varies by domain, and a field with no translation in the requested language returns English. One of en, tr, de, es, hi, pt, fr, ru, zh-Hans, zh-Hant. Default en.
limit query, integer
Maximum items to return per page. Range: 1-5, default 5. Default 5.
offset query, integer
Number of items to skip for pagination. Default 0. Default 0.

Response

total number, required
Total number of phases, which is always five.
limit number, required
Maximum phases returned in this page.
offset number, required
Number of phases skipped before this page.
generatingCycle array of string, required
The producing ring in order. Each phase generates the next and the last generates the first, so the list wraps.
controllingCycle array of string, required
The restraining ring in order. Each phase controls the next and the last controls the first, so this list wraps too. It is the same five phases walked two steps at a time.
elements array of object, required
The phases for this page, in generating cycle order.
Show all 13 fieldsShow fewer fields
id string, required
Five phase identifier. Always English, whatever the lang parameter says, so it stays safe to compare against in code. The same five values appear on stems, branches, pillars, Na Yin and every feng shui star.
nameLocalized string
Display name of the phase in the requested language. Absent when lang is en, so an English response is unchanged.
chinese string, required
Chinese character for the phase. A data field, identical in every language.
pinyin string, required
Tone marked pinyin for the character. A data field, identical in every language.
season string, required
Season the phase governs. Earth governs the transitions rather than a season of its own, and is reported as Late Summer.
direction string, required
Compass direction of the phase. Earth returns Center, because it sits at the middle of the arrangement rather than on the ring.
generates string, required
The phase this one produces in the generating cycle. Wood feeds Fire, Fire makes Earth, Earth bears Metal, Metal condenses Water, Water grows Wood.
generatedBy string, required
The phase that produces this one. The inverse of the generates field.
controls string, required
The phase this one restrains in the controlling cycle. Wood breaks Earth, Earth dams Water, Water quenches Fire, Fire melts Metal, Metal cuts Wood.
controlledBy string, required
The phase that restrains this one. The inverse of the controls field.
stems array of string, required
The two Heavenly Stems that carry this phase, yang first. Every phase has exactly two, which is why ten stems cover five phases.
branches array of string, required
The Earthly Branches that carry this phase. Wood, Fire, Metal and Water take two each and Earth takes four, the branches that sit between the seasons.
meaning string, required
What the phase is and how it behaves, in the terms a reading uses it in. Translated in place.

Errors

StatusMeaning
400Validation error. `issues[]` lists every failed field.
401Invalid or missing API key
405Method not allowed. The path exists but only responds to the methods listed in `allow[]` and the `Allow` response header.
429Monthly rate limit exceeded
500Internal server error
POST /api/v2/chinese-astrology/zodiac/sign

Find the Chinese zodiac animal for a birth date

Resolve a birth date to its Chinese zodiac animal, the sexagenary year pillar behind it, and the Five Element phase of that year, so a 1990 birth returns Horse as a Metal Horse rather than merely a Horse. The year boundary is a request parameter because the two schools genuinely disagree for dates in January and early February, and the resolved convention is echoed back so the answer is self-describing. Built for sign lookups, onboarding forms and birthday features.

MCP tool
post_chinese_astrology_zodiac_sign

Request

date string (date), required
Birth date in YYYY-MM-DD format. Only the date is needed: the zodiac animal is a property of the year, so no time, timezone or place changes the answer.
Show all 2 optional fieldsShow fewer optional fields
lang query, string enum
Response language (BCP 47). Supported: en, tr, de, es, hi, pt, fr, ru, zh-Hans, zh-Hant. Defaults to en. Coverage varies by domain, and a field with no translation in the requested language returns English. One of en, tr, de, es, hi, pt, fr, ru, zh-Hans, zh-Hant. Default en.
yearBoundary string enum
Which instant starts the zodiac year. lunar-new-year is the folk rule and the default on this route, because it is the rule people mean when they say what animal they are: the sign turns on Chinese New Year, between late January and late February. li-chun is the classical rule every Four Pillars text uses, turning the year at the solar term Beginning of Spring around 4 February. The two agree for roughly eleven months of every year and disagree for the weeks between them, so a 14 February 2026 birth is a Snake under lunar-new-year and a Horse under li-chun. The BaZi routes default to li-chun instead, because a chart and a folk sign are answering different questions. One of lunar-new-year, li-chun.

Response

date string, required
Echo of the birth date the answer was resolved from.
animal object, required
The zodiac animal for this date. The element on this block is the animal own fixed branch phase, which for a Horse is always Fire. The year phase is the sibling element field below.
Show all 9 fieldsShow fewer fields
id string, required
Stable machine identifier for the animal. Always English and lowercase, whatever the lang parameter says, so it stays safe to compare against in code. Use nameLocalized for anything a reader sees. The twelve ids are rat, ox, tiger, rabbit, dragon, snake, horse, goat, monkey, rooster, dog, pig.
name string, required
Display name of the animal in English. Always English, whatever the lang parameter says, so it stays safe to compare against in code. Use nameLocalized for anything a reader sees.
nameLocalized string
Animal name in the requested language, for display only. Present only when lang is set to a language other than English, since in English it would repeat its canonical partner field exactly. Never compare against this value, compare against the canonical field beside it.
chinese string, required
Traditional hanzi character for the animal itself, not for its Earthly Branch. Data rather than a translation, so it is identical under every lang.
pinyin string, required
Tone-marked Hanyu Pinyin for the animal name. Data rather than a translation, so it is identical under every lang.
branch string, required
Earthly Branch this animal names, as its pinyin identifier. The twelve branches are zi, chou, yin, mao, chen, si, wu, wei, shen, you, xu, hai, and they run in the same order as the animals. Every animal element, polarity and double-hour is a property of this branch.
element string, required
Fixed Five Element (Wu Xing) phase of the animal own branch: Wood, Fire, Earth, Metal or Water. This never changes for a sign. It is NOT the year phase that makes a Metal Rat differ from a Water Rat, which comes from the year Heavenly Stem. Always English so it stays safe to compare against and to key colours off.
elementLocalized string
Five Element phase name in the requested language, for display only. Present only when lang is set to a language other than English, since in English it would repeat its canonical partner field exactly. Never compare against this value, compare against the canonical field beside it.
polarity string, required
Yin or yang polarity of the branch. The twelve branches alternate, starting yang at zi, so the six odd-numbered animals are yang and the six even-numbered are yin.
yearPillar object, required
The sexagenary year the date falls in, under the resolved boundary. Stem and branch together repeat once every sixty years.
Show all 4 fieldsShow fewer fields
id string, required
Sexagenary year pillar id, Heavenly Stem then Earthly Branch. Always English pinyin.
number number, required
Position of this pillar in the sixty-year sexagenary cycle, 1 to 60, where jia-zi is 1.
stem string, required
Heavenly Stem of the year, as its pinyin identifier.
branch string, required
Earthly Branch of the year, as its pinyin identifier. This is the branch the animal names.
element string, required
Five Element phase of the year Heavenly Stem. This is what distinguishes a Metal Horse from a Fire Horse and it changes every two years. It is NOT the animal own fixed phase, which sits on the animal block above. Always English so it stays safe to compare against.
elementLocalized string
Five Element phase name in the requested language, for display only. Present only when lang is set to a language other than English, since in English it would repeat its canonical partner field exactly. Never compare against this value, compare against the canonical field beside it.
polarity string, required
Yin or yang polarity of the branch. The twelve branches alternate, starting yang at zi, so the six odd-numbered animals are yang and the six even-numbered are yin.
interpretation string, required
Composed reading of the sign under its year phase. The sign contributes the temperament and the phase contributes the register.
conventions object, required
The school parameters this answer was computed under, echoed so the result is self-describing.
Show all 1 fieldsShow fewer fields
yearBoundary string, required
The year boundary actually applied, whether it was requested or defaulted. Store this beside any sign you persist: the same date resolves to two different animals under the two schools, and a sign with no convention recorded cannot be reproduced.

Errors

StatusMeaning
400Validation error. `issues[]` lists every failed field.
401Invalid or missing API key
405Method not allowed. The path exists but only responds to the methods listed in `allow[]` and the `Allow` response header.
429Monthly rate limit exceeded
500Internal server error
GET /api/v2/chinese-astrology/zodiac/compatibility/{sign1}/{sign2}

Chinese zodiac compatibility

Score and explain the relationship between two Chinese zodiac animals from the classical branch relations rather than from a lookup table of opinions. Returns which of the six relations the pair stands in, a score out of 100, the phase the two branches combine into where they combine at all, and a composed reading with strengths, frictions and advice. The six relations are mutually exclusive by construction, so exactly one applies to any pair. Built for matchmaking features, relationship reports and compatibility widgets.

MCP tool
get_chinese_astrology_zodiac_compatibility_sign1_sign2

Request

sign1 path, string enum, required
First animal id, case-insensitive. One of rat, ox, tiger, rabbit, dragon, snake, horse, goat, monkey, rooster, dog, pig. One of rat, ox, tiger, rabbit, dragon, snake, horse, goat, monkey, rooster, dog, pig.
sign2 path, string enum, required
Second animal id, case-insensitive. The relation is symmetric, so swapping the two returns the same relationship and the same score, with the reading written from the first sign point of view. One of rat, ox, tiger, rabbit, dragon, snake, horse, goat, monkey, rooster, dog, pig.
Show all 1 optional fieldsShow fewer optional fields
lang query, string enum
Response language (BCP 47). Supported: en, tr, de, es, hi, pt, fr, ru, zh-Hans, zh-Hant. Defaults to en. Coverage varies by domain, and a field with no translation in the requested language returns English. One of en, tr, de, es, hi, pt, fr, ru, zh-Hans, zh-Hant. Default en.

Response

signs object, required
The two signs compared, in the order they were requested. Always one object, never an array.
Show all 20 fieldsShow fewer fields
first object, required
first.id string, required
Stable machine identifier for the animal. Always English and lowercase, whatever the lang parameter says, so it stays safe to compare against in code. Use nameLocalized for anything a reader sees. The twelve ids are rat, ox, tiger, rabbit, dragon, snake, horse, goat, monkey, rooster, dog, pig.
first.name string, required
Display name of the animal in English. Always English, whatever the lang parameter says, so it stays safe to compare against in code. Use nameLocalized for anything a reader sees.
first.nameLocalized string
Animal name in the requested language, for display only. Present only when lang is set to a language other than English, since in English it would repeat its canonical partner field exactly. Never compare against this value, compare against the canonical field beside it.
first.chinese string, required
Traditional hanzi character for the animal itself, not for its Earthly Branch. Data rather than a translation, so it is identical under every lang.
first.pinyin string, required
Tone-marked Hanyu Pinyin for the animal name. Data rather than a translation, so it is identical under every lang.
first.branch string, required
Earthly Branch this animal names, as its pinyin identifier. The twelve branches are zi, chou, yin, mao, chen, si, wu, wei, shen, you, xu, hai, and they run in the same order as the animals. Every animal element, polarity and double-hour is a property of this branch.
first.element string, required
Fixed Five Element (Wu Xing) phase of the animal own branch: Wood, Fire, Earth, Metal or Water. This never changes for a sign. It is NOT the year phase that makes a Metal Rat differ from a Water Rat, which comes from the year Heavenly Stem. Always English so it stays safe to compare against and to key colours off.
first.elementLocalized string
Five Element phase name in the requested language, for display only. Present only when lang is set to a language other than English, since in English it would repeat its canonical partner field exactly. Never compare against this value, compare against the canonical field beside it.
first.polarity string, required
Yin or yang polarity of the branch. The twelve branches alternate, starting yang at zi, so the six odd-numbered animals are yang and the six even-numbered are yin.
second object, required
second.id string, required
Stable machine identifier for the animal. Always English and lowercase, whatever the lang parameter says, so it stays safe to compare against in code. Use nameLocalized for anything a reader sees. The twelve ids are rat, ox, tiger, rabbit, dragon, snake, horse, goat, monkey, rooster, dog, pig.
second.name string, required
Display name of the animal in English. Always English, whatever the lang parameter says, so it stays safe to compare against in code. Use nameLocalized for anything a reader sees.
second.nameLocalized string
Animal name in the requested language, for display only. Present only when lang is set to a language other than English, since in English it would repeat its canonical partner field exactly. Never compare against this value, compare against the canonical field beside it.
second.chinese string, required
Traditional hanzi character for the animal itself, not for its Earthly Branch. Data rather than a translation, so it is identical under every lang.
second.pinyin string, required
Tone-marked Hanyu Pinyin for the animal name. Data rather than a translation, so it is identical under every lang.
second.branch string, required
Earthly Branch this animal names, as its pinyin identifier. The twelve branches are zi, chou, yin, mao, chen, si, wu, wei, shen, you, xu, hai, and they run in the same order as the animals. Every animal element, polarity and double-hour is a property of this branch.
second.element string, required
Fixed Five Element (Wu Xing) phase of the animal own branch: Wood, Fire, Earth, Metal or Water. This never changes for a sign. It is NOT the year phase that makes a Metal Rat differ from a Water Rat, which comes from the year Heavenly Stem. Always English so it stays safe to compare against and to key colours off.
second.elementLocalized string
Five Element phase name in the requested language, for display only. Present only when lang is set to a language other than English, since in English it would repeat its canonical partner field exactly. Never compare against this value, compare against the canonical field beside it.
second.polarity string, required
Yin or yang polarity of the branch. The twelve branches alternate, starting yang at zi, so the six odd-numbered animals are yang and the six even-numbered are yin.
relationship string, required
Which of the six classical branch relations the pair stands in. One of secret-friend (Liu He, the six harmonies), trine (San He, the three harmonies), same (both signs share a branch), neutral (no formal relation), harm (Liu Hai) or clash (Liu Chong, branches six apart). Exactly one applies to any pair, because no two of the conditions can hold at once. Always English so it stays safe to switch on.
relationshipName string, required
Display name of the relation in English. Always English; use relationshipNameLocalized for anything a reader sees.
relationshipNameLocalized string
Branch relation name in the requested language, for display only. Present only when lang is set to a language other than English, since in English it would repeat its canonical partner field exactly. Never compare against this value, compare against the canonical field beside it.
relationshipChinese string, required
Classical name of the relation in traditional hanzi. Identical under every lang.
relationshipPinyin string, required
Tone-marked pinyin of the classical relation name.
score number, required
Compatibility score out of 100 for this relation. Fixed per relation rather than per pair, because the branch relation is what the tradition actually rates: 92 for a six-harmony pair, 85 for a trine, 65 for two of the same sign, 60 for no relation, 40 for a harm and 30 for a clash.
verdict string, required
Coarse band the score falls in: excellent, strong, workable, challenging or difficult. Built for badges and filters that should not hard-code score thresholds.
sharedElement string
The Five Element phase the two branches combine into. Present only for a trine or a six-harmony pair, which are the two relations that combine; absent otherwise. This is generally neither animal own phase, which is the point of the combination.
sharedElementLocalized string
Five Element phase name in the requested language, for display only. Present only when lang is set to a language other than English, since in English it would repeat its canonical partner field exactly. Never compare against this value, compare against the canonical field beside it.
summary string, required
Composed reading of the pair. The branch relation supplies the shape and the two temperaments supply the substance, so the reading is specific to this pair without being authored for it.
strengths array of string, required
What the pair has going for it, drawn from what each sign does well. Favourable relations contribute from both signs; the rest from the first.
frictions array of string, required
Where the pair is most likely to grind, drawn from each sign own weaknesses. Difficult relations contribute from both signs; the rest from the first.
advice string, required
The one thing worth doing differently, specific to this relation rather than generic relationship guidance.

Errors

StatusMeaning
400Validation error. `issues[]` lists every failed field.
401Invalid or missing API key
405Method not allowed. The path exists but only responds to the methods listed in `allow[]` and the `Allow` response header.
429Monthly rate limit exceeded
500Internal server error
GET /api/v2/chinese-astrology/zodiac/{id}/daily

Daily Chinese zodiac reading

Get the daily reading for one Chinese zodiac animal, built from the sexagenary day pillar rather than from a rotation of stock text. The day carries its own Earthly Branch, that branch stands in exactly one of six classical relations to the requested sign, and the reading is that relation applied to the sign temperament. Returns the day pillar, the relation, an energy rating, overview, love and career guidance, advice, and the sexagenary year in force with its Ben Ming Nian flag. Content is fixed for a given date and rolls over at midnight, by default UTC.

MCP tool
get_chinese_astrology_zodiac_id_daily

Request

id path, string enum, required
Animal id, case-insensitive. One of rat, ox, tiger, rabbit, dragon, snake, horse, goat, monkey, rooster, dog, pig. One of rat, ox, tiger, rabbit, dragon, snake, horse, goat, monkey, rooster, dog, pig.
Show all 3 optional fieldsShow fewer optional fields
lang query, string enum
Response language (BCP 47). Supported: en, tr, de, es, hi, pt, fr, ru, zh-Hans, zh-Hant. Defaults to en. Coverage varies by domain, and a field with no translation in the requested language returns English. One of en, tr, de, es, hi, pt, fr, ru, zh-Hans, zh-Hant. Default en.
date query, string (date)
Reading date in YYYY-MM-DD format. Past and future dates are both supported, for editorial scheduling and backfill. Defaults to the current day in the timezone parameter.
timezone query, string
Selects which day counts as current when date is omitted. Defaults to UTC, so the reading rolls over at 00:00 UTC each day. Pass the timezone of the end user to roll over on their local clock instead. Ignored when date is set. Accepts an IANA name (e.g. "America/New_York"), decimal hours (e.g. 5.5 for IST), or a fixed UTC offset (e.g. "-05:00").

Response

animal object, required
The sign this reading was requested for.
Show all 9 fieldsShow fewer fields
id string, required
Machine identifier of the sign this reading is for. Always English and lowercase, so it stays safe to compare against in code.
name string, required
Display name of the sign in English. Always English; use nameLocalized for anything a reader sees.
nameLocalized string
Animal name in the requested language, for display only. Present only when lang is set to a language other than English, since in English it would repeat its canonical partner field exactly. Never compare against this value, compare against the canonical field beside it.
chinese string, required
Traditional hanzi character for the animal. Identical under every lang.
pinyin string, required
Tone-marked pinyin for the animal name.
branch string, required
Earthly Branch this animal names, as its pinyin identifier.
element string, required
Fixed Five Element phase of the sign own branch. Always English so it stays safe to compare against.
elementLocalized string
Five Element phase name in the requested language, for display only. Present only when lang is set to a language other than English, since in English it would repeat its canonical partner field exactly. Never compare against this value, compare against the canonical field beside it.
polarity string, required
Yin or yang polarity of the branch.
date string, required
Date of this reading in YYYY-MM-DD format. Echoes the date requested, or the current day in the timezone parameter when it was omitted.
dayPillar object, required
The sexagenary pillar of this calendar day, evaluated at the reference meridian for the Chinese calendar.
Show all 6 fieldsShow fewer fields
id string, required
Sexagenary day pillar id, Heavenly Stem then Earthly Branch. Always English pinyin.
number number, required
Position of this pillar in the sixty-day sexagenary cycle, 1 to 60, where jia-zi is 1. The day cycle runs unbroken and is independent of the lunar and solar calendars.
stem string, required
Heavenly Stem of the day, as its pinyin identifier.
branch string, required
Earthly Branch of the day, as its pinyin identifier.
animal string, required
The animal the day branch carries, which the tradition calls the day animal. This is what the requested sign is being read against.
element string, required
Five Element phase of the day Heavenly Stem. Together with the sign own phase this sets the energy rating, through the classical generating and controlling cycles.
relationship string, required
How the day branch stands to the sign branch. One of secret-friend, trine, same, neutral, harm or clash. Exactly one applies, because no two of the conditions can hold at once. Always English so it stays safe to switch on, and the same vocabulary /zodiac/compatibility returns.
energyRating number, required
Overall energy for this sign on this day, 1 to 10. Derived from the branch relation plus how the day phase treats the sign phase on the generating and controlling cycles, so a favourable relation in a draining phase lands lower than a favourable relation in a supporting one. Built for content widgets and visual indicators.
overview string, required
What the day does to this sign, from the branch relation and the phase of the day stem.
love string, required
Relationship guidance for the day, specific to the branch relation.
career string, required
Work guidance for the day. Clash and harm days carry the traditional cautions about signings and launches.
advice string, required
The one thing worth doing differently today, drawn from the relation and from this sign own habitual weak point.
year object, required
The sexagenary year this date falls in, resolved on the LUNAR NEW YEAR rule to match the folk zodiac this route family answers. The Four Pillars routes use the classical Li Chun rule and can name a different year for dates in early February.
Show all 5 fieldsShow fewer fields
pillar string, required
Sexagenary year pillar in force on this date, resolved on the lunar new year rule.
animal string, required
Animal of the year in force. Always English so it stays safe to compare against.
animalLocalized string
Animal name in the requested language, for display only. Present only when lang is set to a language other than English, since in English it would repeat its canonical partner field exactly. Never compare against this value, compare against the canonical field beside it.
relationship string, required
How the year branch stands to the requested sign, from the same six-value vocabulary as the daily relationship. This is the slower background the day sits inside.
note string, required
One line on the year relationship, or on the Ben Ming Nian year when the year animal matches the sign.
benMingNian boolean, required
True when the year animal is the same as the requested sign, the return of your own branch that comes round every twelve years. The tradition treats a Ben Ming Nian as a year to be deliberate in rather than one to fear, because the sign own qualities run at full strength and that cuts both ways.

Errors

StatusMeaning
400Validation error. `issues[]` lists every failed field.
401Invalid or missing API key
405Method not allowed. The path exists but only responds to the methods listed in `allow[]` and the `Allow` response header.
429Monthly rate limit exceeded
500Internal server error
GET /api/v2/chinese-astrology/zodiac/animals

List the 12 Chinese zodiac animals

Retrieve all twelve Chinese zodiac animals in cycle order, from Rat through Pig. Each entry returns the machine id, the Chinese character and tone-marked pinyin for the animal, its Earthly Branch, the fixed Five Element phase and yin or yang polarity of that branch, and a set of trait keywords. Built for sign pickers, zodiac cards and compatibility widgets that need the whole set in one call.

MCP tool
get_chinese_astrology_zodiac_animals

Request

Show all 3 optional fieldsShow fewer optional fields
lang query, string enum
Response language (BCP 47). Supported: en, tr, de, es, hi, pt, fr, ru, zh-Hans, zh-Hant. Defaults to en. Coverage varies by domain, and a field with no translation in the requested language returns English. One of en, tr, de, es, hi, pt, fr, ru, zh-Hans, zh-Hant. Default en.
limit query, integer
Maximum items to return per page. Range: 1-12, default 12. Default 12.
offset query, integer
Number of items to skip for pagination. Default 0. Default 0.

Response

total number, required
Total animals in the cycle. Always 12; the zodiac is a closed set.
limit number, required
Maximum items returned for this page.
offset number, required
Number of items skipped before this page.
animals array of object, required
Animals for the current page, in cycle order. Use /zodiac/animals/{id} for the full record with strengths, weaknesses, element variants and relationship partners.
Show all 10 fieldsShow fewer fields
id string, required
Stable machine identifier for the animal. Always English and lowercase, whatever the lang parameter says, so it stays safe to compare against in code. Use nameLocalized for anything a reader sees. The twelve ids are rat, ox, tiger, rabbit, dragon, snake, horse, goat, monkey, rooster, dog, pig.
name string, required
Display name of the animal in English. Always English, whatever the lang parameter says, so it stays safe to compare against in code. Use nameLocalized for anything a reader sees.
nameLocalized string
Animal name in the requested language, for display only. Present only when lang is set to a language other than English, since in English it would repeat its canonical partner field exactly. Never compare against this value, compare against the canonical field beside it.
chinese string, required
Traditional hanzi character for the animal itself, not for its Earthly Branch. Data rather than a translation, so it is identical under every lang.
pinyin string, required
Tone-marked Hanyu Pinyin for the animal name. Data rather than a translation, so it is identical under every lang.
branch string, required
Earthly Branch this animal names, as its pinyin identifier. The twelve branches are zi, chou, yin, mao, chen, si, wu, wei, shen, you, xu, hai, and they run in the same order as the animals. Every animal element, polarity and double-hour is a property of this branch.
element string, required
Fixed Five Element (Wu Xing) phase of the animal own branch: Wood, Fire, Earth, Metal or Water. This never changes for a sign. It is NOT the year phase that makes a Metal Rat differ from a Water Rat, which comes from the year Heavenly Stem. Always English so it stays safe to compare against and to key colours off.
elementLocalized string
Five Element phase name in the requested language, for display only. Present only when lang is set to a language other than English, since in English it would repeat its canonical partner field exactly. Never compare against this value, compare against the canonical field beside it.
polarity string, required
Yin or yang polarity of the branch. The twelve branches alternate, starting yang at zi, so the six odd-numbered animals are yang and the six even-numbered are yin.
traits array of string, required
Short trait keywords for the sign, lowercase in English. Built for tag clouds, sign cards and compatibility widgets that need a glanceable character sketch rather than a paragraph.

Errors

StatusMeaning
400Validation error. `issues[]` lists every failed field.
401Invalid or missing API key
405Method not allowed. The path exists but only responds to the methods listed in `allow[]` and the `Allow` response header.
429Monthly rate limit exceeded
500Internal server error
GET /api/v2/chinese-astrology/zodiac/animals/{id}

Get one Chinese zodiac animal

Retrieve the complete profile of one Chinese zodiac animal: character summary, strengths, weaknesses, trait keywords, the double-hour its Earthly Branch governs, and its five element variants with the Gregorian years that carry each one. Also returns the four classical branch relationships, the three-harmony trine it belongs to, its six-harmony secret friend, its clashing opposite and its harming partner. Built for sign detail pages and compatibility features.

MCP tool
get_chinese_astrology_zodiac_animals_id

Request

id path, string enum, required
Animal id, case-insensitive and punctuation-insensitive. One of rat, ox, tiger, rabbit, dragon, snake, horse, goat, monkey, rooster, dog, pig. The sheep and the ram are the same animal as the goat and resolve to goat. One of rat, ox, tiger, rabbit, dragon, snake, horse, goat, monkey, rooster, dog, pig.
Show all 1 optional fieldsShow fewer optional fields
lang query, string enum
Response language (BCP 47). Supported: en, tr, de, es, hi, pt, fr, ru, zh-Hans, zh-Hant. Defaults to en. Coverage varies by domain, and a field with no translation in the requested language returns English. One of en, tr, de, es, hi, pt, fr, ru, zh-Hans, zh-Hant. Default en.

Response

id string, required
Stable machine identifier for the animal. Always English and lowercase, whatever the lang parameter says, so it stays safe to compare against in code. Use nameLocalized for anything a reader sees. The twelve ids are rat, ox, tiger, rabbit, dragon, snake, horse, goat, monkey, rooster, dog, pig.
name string, required
Display name of the animal in English. Always English, whatever the lang parameter says, so it stays safe to compare against in code. Use nameLocalized for anything a reader sees.
nameLocalized string
Animal name in the requested language, for display only. Present only when lang is set to a language other than English, since in English it would repeat its canonical partner field exactly. Never compare against this value, compare against the canonical field beside it.
chinese string, required
Traditional hanzi character for the animal itself, not for its Earthly Branch. Data rather than a translation, so it is identical under every lang.
pinyin string, required
Tone-marked Hanyu Pinyin for the animal name. Data rather than a translation, so it is identical under every lang.
branch string, required
Earthly Branch this animal names, as its pinyin identifier. The twelve branches are zi, chou, yin, mao, chen, si, wu, wei, shen, you, xu, hai, and they run in the same order as the animals. Every animal element, polarity and double-hour is a property of this branch.
element string, required
Fixed Five Element (Wu Xing) phase of the animal own branch: Wood, Fire, Earth, Metal or Water. This never changes for a sign. It is NOT the year phase that makes a Metal Rat differ from a Water Rat, which comes from the year Heavenly Stem. Always English so it stays safe to compare against and to key colours off.
elementLocalized string
Five Element phase name in the requested language, for display only. Present only when lang is set to a language other than English, since in English it would repeat its canonical partner field exactly. Never compare against this value, compare against the canonical field beside it.
polarity string, required
Yin or yang polarity of the branch. The twelve branches alternate, starting yang at zi, so the six odd-numbered animals are yang and the six even-numbered are yin.
traits array of string, required
Short trait keywords for the sign, lowercase in English. Built for tag clouds, sign cards and compatibility widgets that need a glanceable character sketch rather than a paragraph.
summary string, required
Character sketch of the sign, drawn from the season, the double-hour and the phase its branch occupies.
strengths array of string, required
What the sign does well, as full sentences rather than keywords.
weaknesses array of string, required
Where the same temperament costs the sign something. Each one is the shadow of a strength above rather than an unrelated flaw.
compatibilitySummary string, required
How the sign behaves toward the other eleven in general. For a specific pair, call /zodiac/compatibility/{sign1}/{sign2}.
hours object, required
The two-hour period of the day this animal branch governs. Used for the hour pillar in a Four Pillars chart, which is always read on local time.
Show all 2 fieldsShow fewer fields
start number, required
First hour of the double-hour this branch governs, on a 24-hour local clock. The zi branch starts at 23, so the cycle begins the evening before midnight.
end number, required
Hour the double-hour ends, exclusive, on a 24-hour local clock. Each branch governs exactly two hours.
trine object, required
The three-harmony group (San He) this animal belongs to. Every animal belongs to exactly one.
Show all 8 fieldsShow fewer fields
id string, required
Machine id of the trine: first, second, third or fourth. Always English.
number number, required
Position of the trine in the order the tradition lists them, 1 to 4. Not a ranking.
element string, required
Fixed Five Element (Wu Xing) phase of the animal own branch: Wood, Fire, Earth, Metal or Water. This never changes for a sign. It is NOT the year phase that makes a Metal Rat differ from a Water Rat, which comes from the year Heavenly Stem. Always English so it stays safe to compare against and to key colours off.
elementLocalized string
Five Element phase name in the requested language, for display only. Present only when lang is set to a language other than English, since in English it would repeat its canonical partner field exactly. Never compare against this value, compare against the canonical field beside it.
chinese string, required
The three Earthly Branches of the trine in classical notation, in the order the texts give them.
pinyin string, required
Tone-marked pinyin of the three branches.
members array of string, required
The three animal ids in this trine, including the one requested. Members sit four branches apart, so the four trines partition all twelve animals with none shared and none left over.
theme string, required
What the alliance is traditionally said to produce. The three branches combine into the element above, which is not any one member own phase.
secretFriend object, required
The six-harmony partner (Liu He), traditionally called the secret friend because the support it gives arrives unasked. The element is the phase the two branches combine into, which is generally neither animal own phase.
Show all 7 fieldsShow fewer fields
id string, required
Stable machine identifier for the animal. Always English and lowercase, whatever the lang parameter says, so it stays safe to compare against in code. Use nameLocalized for anything a reader sees. The twelve ids are rat, ox, tiger, rabbit, dragon, snake, horse, goat, monkey, rooster, dog, pig.
name string, required
Display name of the related animal in English. Always English; use nameLocalized for display.
nameLocalized string
Animal name in the requested language, for display only. Present only when lang is set to a language other than English, since in English it would repeat its canonical partner field exactly. Never compare against this value, compare against the canonical field beside it.
chinese string, required
Traditional hanzi character for the related animal.
pinyin string, required
Tone-marked pinyin for the related animal.
element string, required
Fixed Five Element (Wu Xing) phase of the animal own branch: Wood, Fire, Earth, Metal or Water. This never changes for a sign. It is NOT the year phase that makes a Metal Rat differ from a Water Rat, which comes from the year Heavenly Stem. Always English so it stays safe to compare against and to key colours off.
elementLocalized string
Five Element phase name in the requested language, for display only. Present only when lang is set to a language other than English, since in English it would repeat its canonical partner field exactly. Never compare against this value, compare against the canonical field beside it.
clashPartner object, required
The clashing animal (Liu Chong): the branch directly opposite, six positions away. The tradition reads this as the most charged pairing in the cycle and the least restful.
Show all 5 fieldsShow fewer fields
id string, required
Stable machine identifier for the animal. Always English and lowercase, whatever the lang parameter says, so it stays safe to compare against in code. Use nameLocalized for anything a reader sees. The twelve ids are rat, ox, tiger, rabbit, dragon, snake, horse, goat, monkey, rooster, dog, pig.
name string, required
Display name of the related animal in English. Always English; use nameLocalized for display.
nameLocalized string
Animal name in the requested language, for display only. Present only when lang is set to a language other than English, since in English it would repeat its canonical partner field exactly. Never compare against this value, compare against the canonical field beside it.
chinese string, required
Traditional hanzi character for the related animal.
pinyin string, required
Tone-marked pinyin for the related animal.
harmPartner object, required
The harming animal (Liu Hai). Treated as less violent than a clash and harder to spot, because it works through accumulation rather than confrontation.
Show all 5 fieldsShow fewer fields
id string, required
Stable machine identifier for the animal. Always English and lowercase, whatever the lang parameter says, so it stays safe to compare against in code. Use nameLocalized for anything a reader sees. The twelve ids are rat, ox, tiger, rabbit, dragon, snake, horse, goat, monkey, rooster, dog, pig.
name string, required
Display name of the related animal in English. Always English; use nameLocalized for display.
nameLocalized string
Animal name in the requested language, for display only. Present only when lang is set to a language other than English, since in English it would repeat its canonical partner field exactly. Never compare against this value, compare against the canonical field beside it.
chinese string, required
Traditional hanzi character for the related animal.
pinyin string, required
Tone-marked pinyin for the related animal.
elementVariants array of object, required
The five phase variants of this sign across the sixty-year cycle, listed over 1924 to 2043. Exactly five, always, because a branch pairs only with the five Heavenly Stems of its own polarity and those five carry one phase each. A year number here names the sexagenary year, not a calendar range: a birth in January or early February may still belong to the previous year, which is what /zodiac/sign resolves.
Show all 6 fieldsShow fewer fields
element string, required
Fixed Five Element (Wu Xing) phase of the animal own branch: Wood, Fire, Earth, Metal or Water. This never changes for a sign. It is NOT the year phase that makes a Metal Rat differ from a Water Rat, which comes from the year Heavenly Stem. Always English so it stays safe to compare against and to key colours off.
elementLocalized string
Five Element phase name in the requested language, for display only. Present only when lang is set to a language other than English, since in English it would repeat its canonical partner field exactly. Never compare against this value, compare against the canonical field beside it.
polarity string, required
Yin or yang polarity of the branch. The twelve branches alternate, starting yang at zi, so the six odd-numbered animals are yang and the six even-numbered are yin.
stem string, required
Heavenly Stem of the year, as its pinyin identifier. The ten stems are jia, yi, bing, ding, wu, ji, geng, xin, ren, gui.
pillar string, required
Sexagenary pillar id for this variant, stem then branch. This pair returns once every sixty years.
years array of number, required
Gregorian years in the published window that carry this variant. Two per variant, sixty years apart.

Errors

StatusMeaning
400Validation error. `issues[]` lists every failed field.
401Invalid or missing API key
405Method not allowed. The path exists but only responds to the methods listed in `allow[]` and the `Allow` response header.
429Monthly rate limit exceeded
500Internal server error
POST /api/v2/chinese-astrology/calendar/lunar-date

Convert lunar and Gregorian dates

Convert a Gregorian date to the Chinese lunisolar calendar or convert a lunar date back, in one endpoint. The calendar is computed at the UTC+8 reference meridian with the month containing the winter solstice fixed as month 11 and the leap month placed as the first month of the cycle carrying no major solar term, so a lunar date is the same worldwide rather than shifting with the caller timezone. The response reports the length of the lunar month, whether the date sits in a leap month, and which month the year doubles if any. Built for festival calendars, birthday features that follow the lunar date, and any app that has to survive a leap month without shifting every date after it.

MCP tool
post_chinese_astrology_calendar_lunar_date

Request

Show all 6 optional fieldsShow fewer optional fields
lang query, string enum
Response language (BCP 47). Supported: en, tr, de, es, hi, pt, fr, ru, zh-Hans, zh-Hant. Defaults to en. Coverage varies by domain, and a field with no translation in the requested language returns English. One of en, tr, de, es, hi, pt, fr, ru, zh-Hans, zh-Hant. Default en.
date string (date)
Gregorian date to convert to the lunisolar calendar. Send this OR the lunar fields, never both. Converts from the first day of lunar year 1551 to the last day of lunar year 2648, a little inside the supported date span, because numbering a lunar month needs the winter solstice on each side of it and placing a leap month needs the year before; a date outside that answers 400 date_out_of_range.
lunarYear integer
Lunisolar year to convert back to a Gregorian date. Requires lunarMonth and lunarDay.
lunarMonth integer
Lunar month, 1 to 12. Requires lunarYear and lunarDay.
lunarDay integer
Day of the lunar month, 1 to 30. Requires lunarYear and lunarMonth.
isLeapMonth boolean
Set true to address the leap repetition of lunarMonth rather than the first pass. Requesting a leap month a year does not have returns 400.

Response

gregorianDate string, required
The Gregorian date, echoed when one was sent and computed when the lunar fields were. Echoes the request, or the current UTC date when neither side was supplied.
lunar object, required
Show all 6 fieldsShow fewer fields
year number, required
Lunisolar year. It advances on the first day of month 1, not at Li Chun, so it can lag the Gregorian year by up to seven weeks.
month number, required
Lunar month, 1 to 12. A leap month repeats the number of the month it follows.
day number, required
Day of the lunar month, 1 to 30. A lunar month never has 31 days.
isLeapMonth boolean, required
True when this is the leap repetition of the month number rather than the first pass through it.
monthLength number, required
Days in this lunar month, 29 for a short month or 30 for a long one. It is the interval between two new moons, so it varies month to month.
date string, required
The Gregorian date this lunar day covers, evaluated at the reference meridian.
leapMonthOfYear number
The month this lunisolar year repeats, when it has thirteen months. Absent in a twelve month year, so a caller can branch on presence rather than on a sentinel.
referenceOffset number, required
Decimal UTC offset the calendar was evaluated at. Fixed at 8, which is what makes a Chinese lunar date a world constant.

Errors

StatusMeaning
400Validation error. `issues[]` lists every failed field.
401Invalid or missing API key
405Method not allowed. The path exists but only responds to the methods listed in `allow[]` and the `Allow` response header.
429Monthly rate limit exceeded
500Internal server error
GET /api/v2/chinese-astrology/calendar/solar-terms/{year}

List the 24 solar terms

Return all 24 solar terms of a year as astronomical instants rather than dates, each computed from the moment the sun reaches its exact apparent longitude at 15 degree steps. The year is the SOLAR year, which opens at Li Chun in early February, so Minor Cold and Major Cold, the last two terms, are dated in the January of the following Gregorian year. Every instant is returned twice, once in UTC and once at the UTC+8 reference meridian the Chinese calendar is defined on. Built for calendar apps, festival scheduling, and any BaZi feature that has to place a birth on the correct side of a term boundary.

MCP tool
get_chinese_astrology_calendar_solar_terms_year

Request

year path, integer, required
Solar year, 1900 to 2100. The year opens at Li Chun rather than on 1 January, so its last two terms fall in the following January.
Show all 1 optional fieldsShow fewer optional fields
lang query, string enum
Response language (BCP 47). Supported: en, tr, de, es, hi, pt, fr, ru, zh-Hans, zh-Hant. Defaults to en. Coverage varies by domain, and a field with no translation in the requested language returns English. One of en, tr, de, es, hi, pt, fr, ru, zh-Hans, zh-Hant. Default en.

Response

year number, required
Echo of the solar year requested.
referenceOffset number, required
Decimal UTC offset of the reference meridian the local fields are given at. Fixed at 8 for the Chinese calendar.
total number, required
Number of terms returned, which is always 24.
terms array of object, required
Show all 9 fieldsShow fewer fields
id string, required
Solar term identifier in kebab case pinyin. Always English pinyin, whatever the lang parameter says, because the English names are not standardised and would not be safe to compare against.
name string, required
Display name of the term. Several English renderings are in circulation, so treat this as a label and the id as the value.
chinese string, required
The term in Chinese. A data field, identical in every language.
pinyin string, required
Tone marked pinyin for the characters.
longitude number, required
Apparent solar longitude in degrees that defines the term. A multiple of 15, and the only thing about a term that is not a convention.
type string, required
Either minor or major. The month pillar changes at the twelve MINOR terms, and a lunar month containing no MAJOR term is the leap month.
instantUtc string, required
The instant the sun reaches the longitude, in UTC.
localDate string, required
Calendar date of the instant at the reference meridian. This is the date printed in an almanac.
localTime string, required
Time of day of the instant at the reference meridian.

Errors

StatusMeaning
400Validation error. `issues[]` lists every failed field.
401Invalid or missing API key
405Method not allowed. The path exists but only responds to the methods listed in `allow[]` and the `Allow` response header.
429Monthly rate limit exceeded
500Internal server error
GET /api/v2/chinese-astrology/calendar/day/{date}

Get the almanac for a day

Return the full almanac reading of one day: its lunisolar date, the year, month and day pillars with their Na Yin, the day officer from the twelve jian chu sequence, the lunar mansion on duty, the zodiac animal the day clashes with, and the activities the officer favours or opposes. The day officer is the layer a printed almanac reaches its verdict from first, and the response says exactly what it rules on rather than reducing the day to a single score. The year and month pillars here are attributed by whole days, which is what an almanac prints: the day a solar term falls on belongs to the new period for its whole length, however late in the day the term arrives. Built for date pickers, daily calendar widgets, and wedding or opening date tools.

MCP tool
get_chinese_astrology_calendar_day_date

Request

date path, string (date), required
Gregorian date in YYYY-MM-DD format, evaluated at the reference meridian. Years 1900 to 2100.
Show all 1 optional fieldsShow fewer optional fields
lang query, string enum
Response language (BCP 47). Supported: en, tr, de, es, hi, pt, fr, ru, zh-Hans, zh-Hant. Defaults to en. Coverage varies by domain, and a field with no translation in the requested language returns English. One of en, tr, de, es, hi, pt, fr, ru, zh-Hans, zh-Hant. Default en.

Response

date string, required
The Gregorian date of the day, at the reference meridian.
lunar object, required
Show all 6 fieldsShow fewer fields
year number, required
Lunisolar year. It advances on the first day of month 1, not at Li Chun, so it can lag the Gregorian year by up to seven weeks.
month number, required
Lunar month, 1 to 12. A leap month repeats the number of the month it follows.
day number, required
Day of the lunar month, 1 to 30. A lunar month never has 31 days.
isLeapMonth boolean, required
True when this is the leap repetition of the month number rather than the first pass through it.
monthLength number, required
Days in this lunar month, 29 for a short month or 30 for a long one. It is the interval between two new moons, so it varies month to month.
date string, required
The Gregorian date this lunar day covers, evaluated at the reference meridian.
yearPillar object, required
Sexagenary year pillar of the day. Attributed by whole days, so the day Li Chun falls on belongs to the new year for its whole length. A BaZi chart built from a birth TIME uses the term instant instead, so a birth in the hours before the term on that same day carries the previous year pillar.
Show all 7 fieldsShow fewer fields
id string, required
Pillar identifier as stem-branch, e.g. jia-zi. Always English pinyin, whatever the lang parameter says, so it stays safe to compare against in code.
number number, required
Position in the sixty year cycle, 1 to 60. jia-zi is 1 and gui-hai is 60.
stem string, required
Heavenly Stem of the pillar, one of jia yi bing ding wu ji geng xin ren gui.
branch string, required
Earthly Branch of the pillar, one of zi chou yin mao chen si wu wei shen you xu hai.
chinese string, required
The pillar in Chinese characters. A data field, identical in every language.
naYin string, required
Na Yin sound element of the pillar. It is a property of the pair, not of the stem, so it often names a different phase from the stem itself.
naYinElement string, required
Five phase the Na Yin resolves to. Always English, so it stays safe to compare against in code.
monthPillar object, required
Sexagenary month pillar of the day, and the pillar the day officer is counted from. Attributed by whole days like the year pillar, so the day a minor solar term falls on belongs to the new month even when the term arrives late in the evening. This is what an almanac prints, and it is not the same as the month pillar of a birth moment inside that day.
Show all 7 fieldsShow fewer fields
id string, required
Pillar identifier as stem-branch, e.g. jia-zi. Always English pinyin, whatever the lang parameter says, so it stays safe to compare against in code.
number number, required
Position in the sixty year cycle, 1 to 60. jia-zi is 1 and gui-hai is 60.
stem string, required
Heavenly Stem of the pillar, one of jia yi bing ding wu ji geng xin ren gui.
branch string, required
Earthly Branch of the pillar, one of zi chou yin mao chen si wu wei shen you xu hai.
chinese string, required
The pillar in Chinese characters. A data field, identical in every language.
naYin string, required
Na Yin sound element of the pillar. It is a property of the pair, not of the stem, so it often names a different phase from the stem itself.
naYinElement string, required
Five phase the Na Yin resolves to. Always English, so it stays safe to compare against in code.
dayPillar object, required
Show all 7 fieldsShow fewer fields
id string, required
Pillar identifier as stem-branch, e.g. jia-zi. Always English pinyin, whatever the lang parameter says, so it stays safe to compare against in code.
number number, required
Position in the sixty year cycle, 1 to 60. jia-zi is 1 and gui-hai is 60.
stem string, required
Heavenly Stem of the pillar, one of jia yi bing ding wu ji geng xin ren gui.
branch string, required
Earthly Branch of the pillar, one of zi chou yin mao chen si wu wei shen you xu hai.
chinese string, required
The pillar in Chinese characters. A data field, identical in every language.
naYin string, required
Na Yin sound element of the pillar. It is a property of the pair, not of the stem, so it often names a different phase from the stem itself.
naYinElement string, required
Five phase the Na Yin resolves to. Always English, so it stays safe to compare against in code.
dayOfficer object, required
Show all 7 fieldsShow fewer fields
id string, required
Day officer identifier, one of jian chu man ping ding zhi po wei cheng shou kai bi. Always English pinyin, so it stays safe to compare against in code.
nameLocalized string
Display name of the officer in the requested language. Absent when lang is en, so an English response is unchanged.
name string, required
English display name of the officer. Canonical, identical in every language, so it stays safe to compare against in code. The translation is in nameLocalized.
chinese string, required
The officer in Chinese. A data field, identical in every language.
pinyin string, required
Tone marked pinyin for the character.
quality string, required
Whether the officer falls on the auspicious or the inauspicious side of the coarse yellow and black split. Read favours and avoids for what the day actually rules on.
meaning string, required
What the officer means, in the terms a date choice uses it in.
mansion object, required
Show all 9 fieldsShow fewer fields
number number, required
Mansion number, 1 to 28, counted from the Horn. This is the identifier: three mansions share the pinyin wei and two share bi, so there is no unique pinyin key.
name string, required
English display name of the mansion. Canonical, identical in every language. The translation is in nameLocalized. Note the mansion has no string id: number is the stable 1 to 28 key, because five of the 28 share a pinyin spelling.
nameLocalized string
Display name of the mansion in the requested language. Absent when lang is en, and absent when a language has no entry for this mansion, so a caller falls back to name rather than rendering a blank.
chinese string, required
The mansion in Chinese. A data field, identical in every language.
pinyin string, required
Tone marked pinyin for the character.
palace string, required
One of the four palaces, seven mansions each: azure-dragon, black-tortoise, white-tiger, vermilion-bird. Always English, so it stays safe to compare against in code.
planet string, required
The luminary the mansion belongs to, one of Wood Metal Earth Sun Moon Fire Water. Twenty eight mansions over seven luminaries is four weeks exactly, which is why a mansion always falls on the same weekday.
animal string, required
Animal emblem of the mansion, the third character of its full Chinese name. English and canonical, identical in every language, matching how clashAnimal behaves on the same response. The translation is in animalLocalized.
animalLocalized string
Animal emblem in the requested language. Absent when lang is en, and absent when a language has no entry, so a caller falls back to animal.
clashAnimal string, required
The zodiac animal the day clashes with, which is the animal six branches away from the day branch. Anyone born in that animal year traditionally avoids the day for anything important.
clashAnimalLocalized string
Display name of the clashing animal in the requested language. Absent when lang is en, so an English response is unchanged.
favours array of string, required
Activity identifiers, always English kebab case so they stay safe to compare against in code. Use the /calendar/auspicious-days endpoint to search a date range for one of them.
avoids array of string, required
Activity identifiers, always English kebab case so they stay safe to compare against in code. Use the /calendar/auspicious-days endpoint to search a date range for one of them.

Errors

StatusMeaning
400Validation error. `issues[]` lists every failed field.
401Invalid or missing API key
404The date is outside the supported range.
405Method not allowed. The path exists but only responds to the methods listed in `allow[]` and the `Allow` response header.
429Monthly rate limit exceeded
500Internal server error
GET /api/v2/chinese-astrology/calendar/monthly

Get a month of almanac days

Return every day of one Gregorian month of the Chinese almanac with its lunisolar date, its three pillars, its day officer, its lunar mansion and its clash animal, plus the solar terms that fall inside the month. This is the month view a calendar widget renders in one call rather than thirty one. Omit the year and month to get the month in progress. Built for calendar UIs, almanac pages, and planning tools that show a whole month at a glance.

MCP tool
get_chinese_astrology_calendar_monthly

Request

Show all 3 optional fieldsShow fewer optional fields
lang query, string enum
Response language (BCP 47). Supported: en, tr, de, es, hi, pt, fr, ru, zh-Hans, zh-Hant. Defaults to en. Coverage varies by domain, and a field with no translation in the requested language returns English. One of en, tr, de, es, hi, pt, fr, ru, zh-Hans, zh-Hant. Default en.
year query, integer
Gregorian year, 1900 to 2100. Defaults to the current UTC year when omitted, together with month.
month query, integer
Gregorian month, 1 to 12. Defaults to the current UTC month when omitted, together with year.

Response

year number, required
Year of the month returned. Echoes the year requested, or the current UTC year when it was omitted.
month number, required
Month returned, 1 to 12. Echoes the month requested, or the current UTC month when it was omitted.
total number, required
Number of days in the month.
solarTerms array of object, required
Show all 5 fieldsShow fewer fields
id string, required
Solar term identifier in kebab case pinyin.
name string, required
Display name of the term.
type string, required
Either minor or major. A minor term inside the month is where the month pillar changes and where the day officer repeats for a day.
date string, required
Date the term falls on at the reference meridian.
instantUtc string, required
The exact instant of the term, in UTC.
days array of object, required
Every day of the month, in order.
Show all 54 fieldsShow fewer fields
date string, required
The Gregorian date of the day, at the reference meridian.
lunar object, required
lunar.year number, required
Lunisolar year. It advances on the first day of month 1, not at Li Chun, so it can lag the Gregorian year by up to seven weeks.
lunar.month number, required
Lunar month, 1 to 12. A leap month repeats the number of the month it follows.
lunar.day number, required
Day of the lunar month, 1 to 30. A lunar month never has 31 days.
lunar.isLeapMonth boolean, required
True when this is the leap repetition of the month number rather than the first pass through it.
lunar.monthLength number, required
Days in this lunar month, 29 for a short month or 30 for a long one. It is the interval between two new moons, so it varies month to month.
lunar.date string, required
The Gregorian date this lunar day covers, evaluated at the reference meridian.
yearPillar object, required
Sexagenary year pillar of the day. Attributed by whole days, so the day Li Chun falls on belongs to the new year for its whole length. A BaZi chart built from a birth TIME uses the term instant instead, so a birth in the hours before the term on that same day carries the previous year pillar.
yearPillar.id string, required
Pillar identifier as stem-branch, e.g. jia-zi. Always English pinyin, whatever the lang parameter says, so it stays safe to compare against in code.
yearPillar.number number, required
Position in the sixty year cycle, 1 to 60. jia-zi is 1 and gui-hai is 60.
yearPillar.stem string, required
Heavenly Stem of the pillar, one of jia yi bing ding wu ji geng xin ren gui.
yearPillar.branch string, required
Earthly Branch of the pillar, one of zi chou yin mao chen si wu wei shen you xu hai.
yearPillar.chinese string, required
The pillar in Chinese characters. A data field, identical in every language.
yearPillar.naYin string, required
Na Yin sound element of the pillar. It is a property of the pair, not of the stem, so it often names a different phase from the stem itself.
yearPillar.naYinElement string, required
Five phase the Na Yin resolves to. Always English, so it stays safe to compare against in code.
monthPillar object, required
Sexagenary month pillar of the day, and the pillar the day officer is counted from. Attributed by whole days like the year pillar, so the day a minor solar term falls on belongs to the new month even when the term arrives late in the evening. This is what an almanac prints, and it is not the same as the month pillar of a birth moment inside that day.
monthPillar.id string, required
Pillar identifier as stem-branch, e.g. jia-zi. Always English pinyin, whatever the lang parameter says, so it stays safe to compare against in code.
monthPillar.number number, required
Position in the sixty year cycle, 1 to 60. jia-zi is 1 and gui-hai is 60.
monthPillar.stem string, required
Heavenly Stem of the pillar, one of jia yi bing ding wu ji geng xin ren gui.
monthPillar.branch string, required
Earthly Branch of the pillar, one of zi chou yin mao chen si wu wei shen you xu hai.
monthPillar.chinese string, required
The pillar in Chinese characters. A data field, identical in every language.
monthPillar.naYin string, required
Na Yin sound element of the pillar. It is a property of the pair, not of the stem, so it often names a different phase from the stem itself.
monthPillar.naYinElement string, required
Five phase the Na Yin resolves to. Always English, so it stays safe to compare against in code.
dayPillar object, required
dayPillar.id string, required
Pillar identifier as stem-branch, e.g. jia-zi. Always English pinyin, whatever the lang parameter says, so it stays safe to compare against in code.
dayPillar.number number, required
Position in the sixty year cycle, 1 to 60. jia-zi is 1 and gui-hai is 60.
dayPillar.stem string, required
Heavenly Stem of the pillar, one of jia yi bing ding wu ji geng xin ren gui.
dayPillar.branch string, required
Earthly Branch of the pillar, one of zi chou yin mao chen si wu wei shen you xu hai.
dayPillar.chinese string, required
The pillar in Chinese characters. A data field, identical in every language.
dayPillar.naYin string, required
Na Yin sound element of the pillar. It is a property of the pair, not of the stem, so it often names a different phase from the stem itself.
dayPillar.naYinElement string, required
Five phase the Na Yin resolves to. Always English, so it stays safe to compare against in code.
dayOfficer object, required
dayOfficer.id string, required
Day officer identifier, one of jian chu man ping ding zhi po wei cheng shou kai bi. Always English pinyin, so it stays safe to compare against in code.
dayOfficer.nameLocalized string
Display name of the officer in the requested language. Absent when lang is en, so an English response is unchanged.
dayOfficer.name string, required
English display name of the officer. Canonical, identical in every language, so it stays safe to compare against in code. The translation is in nameLocalized.
dayOfficer.chinese string, required
The officer in Chinese. A data field, identical in every language.
dayOfficer.pinyin string, required
Tone marked pinyin for the character.
dayOfficer.quality string, required
Whether the officer falls on the auspicious or the inauspicious side of the coarse yellow and black split. Read favours and avoids for what the day actually rules on.
dayOfficer.meaning string, required
What the officer means, in the terms a date choice uses it in.
mansion object, required
mansion.number number, required
Mansion number, 1 to 28, counted from the Horn. This is the identifier: three mansions share the pinyin wei and two share bi, so there is no unique pinyin key.
mansion.name string, required
English display name of the mansion. Canonical, identical in every language. The translation is in nameLocalized. Note the mansion has no string id: number is the stable 1 to 28 key, because five of the 28 share a pinyin spelling.
mansion.nameLocalized string
Display name of the mansion in the requested language. Absent when lang is en, and absent when a language has no entry for this mansion, so a caller falls back to name rather than rendering a blank.
mansion.chinese string, required
The mansion in Chinese. A data field, identical in every language.
mansion.pinyin string, required
Tone marked pinyin for the character.
mansion.palace string, required
One of the four palaces, seven mansions each: azure-dragon, black-tortoise, white-tiger, vermilion-bird. Always English, so it stays safe to compare against in code.
mansion.planet string, required
The luminary the mansion belongs to, one of Wood Metal Earth Sun Moon Fire Water. Twenty eight mansions over seven luminaries is four weeks exactly, which is why a mansion always falls on the same weekday.
mansion.animal string, required
Animal emblem of the mansion, the third character of its full Chinese name. English and canonical, identical in every language, matching how clashAnimal behaves on the same response. The translation is in animalLocalized.
mansion.animalLocalized string
Animal emblem in the requested language. Absent when lang is en, and absent when a language has no entry, so a caller falls back to animal.
clashAnimal string, required
The zodiac animal the day clashes with, which is the animal six branches away from the day branch. Anyone born in that animal year traditionally avoids the day for anything important.
clashAnimalLocalized string
Display name of the clashing animal in the requested language. Absent when lang is en, so an English response is unchanged.
favours array of string, required
Activity identifiers, always English kebab case so they stay safe to compare against in code. Use the /calendar/auspicious-days endpoint to search a date range for one of them.
avoids array of string, required
Activity identifiers, always English kebab case so they stay safe to compare against in code. Use the /calendar/auspicious-days endpoint to search a date range for one of them.

Errors

StatusMeaning
400Validation error. `issues[]` lists every failed field.
401Invalid or missing API key
405Method not allowed. The path exists but only responds to the methods listed in `allow[]` and the `Allow` response header.
429Monthly rate limit exceeded
500Internal server error
POST /api/v2/chinese-astrology/calendar/auspicious-days

Find auspicious days

Search a date range for the days a chosen activity is favoured on, ranked by the jian chu day officer and filtered against a zodiac animal to protect. Every candidate day comes back with its officer, its pillars, its lunar date and the animal it clashes with, so a caller can show the reasoning rather than a bare verdict. The range is capped at 93 days, which is a quarter, because date selection is done inside a planning window rather than across a lifetime. Built for wedding planners, business opening tools, and moving and travel date pickers.

MCP tool
post_chinese_astrology_calendar_auspicious_days

Request

activity string enum, required
Activity to choose a date for. One of wedding, travel, moving-house, opening-business, signing-contracts, construction, groundbreaking, burial, medical-treatment, praying. Matching folds case and punctuation, so moving-house and MOVING_HOUSE both resolve. One of wedding, travel, moving-house, opening-business, signing-contracts, construction, groundbreaking, burial, medical-treatment, praying.
startDate string (date), required
First date of the range to search, inclusive.
endDate string (date), required
Last date of the range to search, inclusive. The range may not exceed 93 days.
Show all 2 optional fieldsShow fewer optional fields
lang query, string enum
Response language (BCP 47). Supported: en, tr, de, es, hi, pt, fr, ru, zh-Hans, zh-Hant. Defaults to en. Coverage varies by domain, and a field with no translation in the requested language returns English. One of en, tr, de, es, hi, pt, fr, ru, zh-Hans, zh-Hant. Default en.
avoidAnimal string enum
Zodiac animal to protect. Days that clash with this animal are dropped from the results, which is how a date is chosen around the people attending rather than in the abstract. One of rat, ox, tiger, rabbit, dragon, snake, horse, goat, monkey, rooster, dog, pig. One of rat, ox, tiger, rabbit, dragon, snake, horse, goat, monkey, rooster, dog, pig.

Response

activity string, required
Echo of the activity searched for, folded to its canonical identifier.
activityLabel string, required
Display label for the activity in the requested language.
startDate string, required
Echo of the first date of the range.
endDate string, required
Echo of the last date of the range.
daysSearched number, required
Number of days in the range, counting both ends.
avoidAnimal string
Echo of the animal protected. Absent when none was sent, rather than null.
avoidAnimalLocalized string
Display name of the protected animal in the requested language, beside the avoidAnimal identifier. Absent when no animal was sent and absent when lang is en, so an English response is unchanged.
total number, required
Number of favoured days found. This is the count after the clash filter, not the number of days searched.
days array of object, required
The favoured days, in date order.
Show all 54 fieldsShow fewer fields
date string, required
The Gregorian date of the day, at the reference meridian.
lunar object, required
lunar.year number, required
Lunisolar year. It advances on the first day of month 1, not at Li Chun, so it can lag the Gregorian year by up to seven weeks.
lunar.month number, required
Lunar month, 1 to 12. A leap month repeats the number of the month it follows.
lunar.day number, required
Day of the lunar month, 1 to 30. A lunar month never has 31 days.
lunar.isLeapMonth boolean, required
True when this is the leap repetition of the month number rather than the first pass through it.
lunar.monthLength number, required
Days in this lunar month, 29 for a short month or 30 for a long one. It is the interval between two new moons, so it varies month to month.
lunar.date string, required
The Gregorian date this lunar day covers, evaluated at the reference meridian.
yearPillar object, required
Sexagenary year pillar of the day. Attributed by whole days, so the day Li Chun falls on belongs to the new year for its whole length. A BaZi chart built from a birth TIME uses the term instant instead, so a birth in the hours before the term on that same day carries the previous year pillar.
yearPillar.id string, required
Pillar identifier as stem-branch, e.g. jia-zi. Always English pinyin, whatever the lang parameter says, so it stays safe to compare against in code.
yearPillar.number number, required
Position in the sixty year cycle, 1 to 60. jia-zi is 1 and gui-hai is 60.
yearPillar.stem string, required
Heavenly Stem of the pillar, one of jia yi bing ding wu ji geng xin ren gui.
yearPillar.branch string, required
Earthly Branch of the pillar, one of zi chou yin mao chen si wu wei shen you xu hai.
yearPillar.chinese string, required
The pillar in Chinese characters. A data field, identical in every language.
yearPillar.naYin string, required
Na Yin sound element of the pillar. It is a property of the pair, not of the stem, so it often names a different phase from the stem itself.
yearPillar.naYinElement string, required
Five phase the Na Yin resolves to. Always English, so it stays safe to compare against in code.
monthPillar object, required
Sexagenary month pillar of the day, and the pillar the day officer is counted from. Attributed by whole days like the year pillar, so the day a minor solar term falls on belongs to the new month even when the term arrives late in the evening. This is what an almanac prints, and it is not the same as the month pillar of a birth moment inside that day.
monthPillar.id string, required
Pillar identifier as stem-branch, e.g. jia-zi. Always English pinyin, whatever the lang parameter says, so it stays safe to compare against in code.
monthPillar.number number, required
Position in the sixty year cycle, 1 to 60. jia-zi is 1 and gui-hai is 60.
monthPillar.stem string, required
Heavenly Stem of the pillar, one of jia yi bing ding wu ji geng xin ren gui.
monthPillar.branch string, required
Earthly Branch of the pillar, one of zi chou yin mao chen si wu wei shen you xu hai.
monthPillar.chinese string, required
The pillar in Chinese characters. A data field, identical in every language.
monthPillar.naYin string, required
Na Yin sound element of the pillar. It is a property of the pair, not of the stem, so it often names a different phase from the stem itself.
monthPillar.naYinElement string, required
Five phase the Na Yin resolves to. Always English, so it stays safe to compare against in code.
dayPillar object, required
dayPillar.id string, required
Pillar identifier as stem-branch, e.g. jia-zi. Always English pinyin, whatever the lang parameter says, so it stays safe to compare against in code.
dayPillar.number number, required
Position in the sixty year cycle, 1 to 60. jia-zi is 1 and gui-hai is 60.
dayPillar.stem string, required
Heavenly Stem of the pillar, one of jia yi bing ding wu ji geng xin ren gui.
dayPillar.branch string, required
Earthly Branch of the pillar, one of zi chou yin mao chen si wu wei shen you xu hai.
dayPillar.chinese string, required
The pillar in Chinese characters. A data field, identical in every language.
dayPillar.naYin string, required
Na Yin sound element of the pillar. It is a property of the pair, not of the stem, so it often names a different phase from the stem itself.
dayPillar.naYinElement string, required
Five phase the Na Yin resolves to. Always English, so it stays safe to compare against in code.
dayOfficer object, required
dayOfficer.id string, required
Day officer identifier, one of jian chu man ping ding zhi po wei cheng shou kai bi. Always English pinyin, so it stays safe to compare against in code.
dayOfficer.nameLocalized string
Display name of the officer in the requested language. Absent when lang is en, so an English response is unchanged.
dayOfficer.name string, required
English display name of the officer. Canonical, identical in every language, so it stays safe to compare against in code. The translation is in nameLocalized.
dayOfficer.chinese string, required
The officer in Chinese. A data field, identical in every language.
dayOfficer.pinyin string, required
Tone marked pinyin for the character.
dayOfficer.quality string, required
Whether the officer falls on the auspicious or the inauspicious side of the coarse yellow and black split. Read favours and avoids for what the day actually rules on.
dayOfficer.meaning string, required
What the officer means, in the terms a date choice uses it in.
mansion object, required
mansion.number number, required
Mansion number, 1 to 28, counted from the Horn. This is the identifier: three mansions share the pinyin wei and two share bi, so there is no unique pinyin key.
mansion.name string, required
English display name of the mansion. Canonical, identical in every language. The translation is in nameLocalized. Note the mansion has no string id: number is the stable 1 to 28 key, because five of the 28 share a pinyin spelling.
mansion.nameLocalized string
Display name of the mansion in the requested language. Absent when lang is en, and absent when a language has no entry for this mansion, so a caller falls back to name rather than rendering a blank.
mansion.chinese string, required
The mansion in Chinese. A data field, identical in every language.
mansion.pinyin string, required
Tone marked pinyin for the character.
mansion.palace string, required
One of the four palaces, seven mansions each: azure-dragon, black-tortoise, white-tiger, vermilion-bird. Always English, so it stays safe to compare against in code.
mansion.planet string, required
The luminary the mansion belongs to, one of Wood Metal Earth Sun Moon Fire Water. Twenty eight mansions over seven luminaries is four weeks exactly, which is why a mansion always falls on the same weekday.
mansion.animal string, required
Animal emblem of the mansion, the third character of its full Chinese name. English and canonical, identical in every language, matching how clashAnimal behaves on the same response. The translation is in animalLocalized.
mansion.animalLocalized string
Animal emblem in the requested language. Absent when lang is en, and absent when a language has no entry, so a caller falls back to animal.
clashAnimal string, required
The zodiac animal the day clashes with, which is the animal six branches away from the day branch. Anyone born in that animal year traditionally avoids the day for anything important.
clashAnimalLocalized string
Display name of the clashing animal in the requested language. Absent when lang is en, so an English response is unchanged.
favours array of string, required
Activity identifiers, always English kebab case so they stay safe to compare against in code. Use the /calendar/auspicious-days endpoint to search a date range for one of them.
avoids array of string, required
Activity identifiers, always English kebab case so they stay safe to compare against in code. Use the /calendar/auspicious-days endpoint to search a date range for one of them.

Errors

StatusMeaning
400Validation error. `issues[]` lists every failed field.
401Invalid or missing API key
405Method not allowed. The path exists but only responds to the methods listed in `allow[]` and the `Allow` response header.
429Monthly rate limit exceeded
500Internal server error