---
title: "Tong Shu day: officer and mansion"
method: POST
path: "/chinese/tong-shu"
tags: ["Chinese: Zodiac & Feng Shui"]
---

# Tong Shu day: officer and mansion

`POST /chinese/tong-shu`

## Request

- Base URL: `https://api.astroway.info/v1`
- URL: `https://api.astroway.info/v1/chinese/tong-shu`
- Auth: API key in header `X-Api-Key`

The almanac reading of one day: day pillar, the day officer (建除十二神) with what the register endorses and forbids, the 28 mansion with its quadrant and planet, and the animal the day clashes.

## Query parameters

- `fields` string
- `precision` integer

## Request body

- ChineseTongShuInput
  - `date` string, required
  - `time` string
  - `timezoneOffset` number, nullable: Hours from UTC at the given moment, not minutes. Fractional zones are hours too: 5.5 for India, 5.75 for Nepal, -3.5 for Newfoundland. Defaults to 0, meaning UTC. Ignored when timezone is sent.
  - `timezone` string: IANA zone name such as Europe/Kyiv, or auto to look the zone up from latitude and longitude. The server takes the offset that zone kept at this local date and time, summer time included, and uses it in place of timezoneOffset. A clock time that happened twice takes the first occurrence; one skipped when clocks went forward takes the offset from before the change. Abbreviations such as EST are refused. Before 1970 the tz database is not reliable for every place, so send timezoneOffset when the local clock is known.
  - `language` string

## Response `200`

Successful calculation

- object
  - `ok` boolean
  - `data` object
    - `date` string, nullable
    - `dayPillar` object, nullable
      - `stem` string, nullable
      - `branch` string, nullable
      - `pillar` string, nullable
      - `animal` string, nullable
    - `monthBranch` string, nullable
    - `solarYear` number, nullable
    - `officer` object, nullable
      - `index` number, nullable
      - `chinese` string, nullable
      - `pinyin` string, nullable
      - `name` string, nullable
      - `summary` string, nullable
      - `suitable` string[], nullable
      - `unsuitable` string[], nullable
    - `mansion` object, nullable
      - `index` number, nullable
      - `chinese` string, nullable
      - `pinyin` string, nullable
      - `name` string, nullable
      - `quadrant` string, nullable
      - `planet` string, nullable
      - `weekday` number, nullable
    - `clash` object, nullable
      - `branch` string, nullable
      - `animal` string, nullable
      - `note` string, nullable
    - `notes` string[], nullable

## Other responses

- `400`: Validation error
- `401`: Missing or invalid API key

## Changes

- **2026-09-21** `b64222844186`: 2 info
  - added the new optional `query` request parameter `fields`
  - added the new optional `query` request parameter `precision`
- **2026-09-18** `fd2cd799fc5e`: 1 info
  - added the new optional request property `timezone`
- **2026-09-09** `c90e7fc7e2fa`: 1 info
  - added the new optional request property `language`
- **2026-08-24** `8ab5a768b521`: 2 breaking, 5 info
  - the response property `data/officer/unsuitable/items/` became nullable for the status `200`
  - the `data/officer/unsuitable/items/` response's property type changed from no type to `string` for status `200`
  - added the optional property `data/clash/note` to the response with the `200` status
  - added the optional property `data/mansion/weekday` to the response with the `200` status
  - …3 more
- **2026-08-22** `5a17388652f3`: 1 breaking, 2 info
  - added the new required request property `date`
  - added the new optional request property `time`
  - added the new optional request property `timezoneOffset`

[Operation history](https://skmtc.dev/astroway/apis/astroway-calculation-api/changes/chinese/tong-shu/post.md)

---

[API](https://skmtc.dev/astroway/apis/astroway-calculation-api.md) · [All operations](https://skmtc.dev/astroway/apis/astroway-calculation-api/llms.txt) · [OpenAPI document](https://skmtc.dev/astroway/apis/astroway-calculation-api/revisions/593d763ba9a5?raw)
