SERVICE & TOOLS
BaZi
Traditional Chinese BaZi astrology chart and basic interpretation
10 available tools
build_ bazi_ from_ lunar_ datetime
Get Bazi information based on lunar datetime and gender.
buildBaziFromLunarDatetime
Builds a BaZi chart from a lunar date and time plus gender.
build_ bazi_ from_ solar_ datetime
Get Bazi information based on solar datetime and gender.
buildBaziFromSolarDatetime
Builds a BaZi chart from a Gregorian (solar) datetime and gender.
get_ bazi_ detail
Get Bazi information based on datetime (solar or lunar) and gender. Either solarDatetime or lunarDatetime must be provided, but not both.
getBaziDetail
Get BaZi (Four Pillars) details from a birth date and gender, using either a Gregorian or lunar date. You must pass exactly one of solarDatetime or lunarDatetime, never both.
get_ chinese_ calendar
Get almanac information for the specified solar datetime (default today).
getChineseCalendar
Returns Chinese calendar (huangli) information for a given Gregorian date and time, defaulting to today.
get_ solar_ times
Get Gregorian date list based on the Eight Characters (Bazi). The time format is: YYYY-MM-DD hh:mm:ss. For example, July 31, 1998 at 2 PM is represented as: 1998-07-31 14:00:00
getSolarTimes
Returns the list of Gregorian dates and times that correspond to a given BaZi, formatted as YYYY-MM-DD hh:mm:ss.