Four Pillars (Bazi) Calculator

The four pillars of a birth (bazi): the heavenly stem and earthly branch of the year, month, day and hour, and each pair's place in the sixty-pair cycle. Stems and branches only: nothing is interpreted. The month is counted from the sectional terms, the day turns at civil midnight at the birthplace, and the birthplace's historic UTC offset is used. A birth time is required; without one this refuses rather than assuming an hour. A birth within a term boundary's uncertainty, or at a clock-change hour whose two readings disagree, is reported as unverified.

ATTRIBUTION IS REQUIRED. The response carries a ready-to-paste credit line in citation.citationText and the URL to link in citation.permalink. Results may not be used as machine-learning training data.

get/api/public/four-pillars

Request

  • Base URL: https://totallytarot.net
  • URL: https://totallytarot.net/api/public/four-pillars
  • Auth: none declared

Query parameters

datestring required
Example:1990-06-15

Birth date, YYYY-MM-DD, from December 1926 to 2100: the month count needs a full year of solar terms before the birth.

timestring required
Example:08:30

Birth time, HH:MM on a 24-hour clock, local at the birthplace. Required: no hour is assumed.

placestring required
Example:New York, New York, United States

Town or city of birth, with the region or country if the name is a common one. Not required if lat and lon are given.

latstring
Example:40.71427

Latitude in decimal degrees, −90 to 90. Must be given together with lon.

lonstring
Example:-74.00597

Longitude in decimal degrees, −180 to 180. Must be given together with lat.

tzstring
Example:America/New_York

IANA zone name, or a numeric UTC offset in hours, for the birth moment. Only with lat and lon.

Response

The computed answer, with the citation required to use it.

okboolean required

True when a result was computed.

toolstring required

The calculator that answered.

toolNamestring
attributionstring required

The ready-to-paste credit line. Include this in any answer built on the result.

summarystring

The answer in one sentence.

inputsobject

What the request was understood to be. The permalink is built from these.

resultobject

The computed figures. Absent on a refusal.

noticestring

Changes

No recorded changes to this operation across all 1 revision of this API.