Skip to content
96Astro API

Tong Shu Almanac and Good Days

POSTAvailable

POSThttps://api.96astroapi.com/v1/chinese/tong-shu

The Chinese almanac day by day: stem-branch day pillar, month branch by solar term, the Twelve Day Officers (Establish to Close), the animal the day clashes with, the almanac's daily mansion of the 28, the lunar-date mansion and the Moon's astronomical mansion, and what the day is traditionally good for or should avoid; with an activity and your animal, the days that suit you.

Credits
1 credit
Input
Specific input
Output
JSON
Delivery
Direct response
Languages
English; translated term names with labels
Headers
HeaderValue and description
AuthorizationRequiredBearer YOUR_API_KEY

Your sandbox (sk_test_...) or live (sk_live_...) key. X-API-Key: <key> is accepted instead.

Content-TypeRequiredapplication/json

The body is JSON.

Idempotency-KeyOptional<unique string>

Makes retries safe: a repeated key with the same body replays the stored response and is never charged twice. (1 to 200 characters)

Body · application/json
FieldDescription
startstringRequired

First day.

Limits: format date

Example: 2026-12-01

daysintegerOptional

How many days.

Default: 30

Limits: minimum 1, maximum 366

Example: 14

utc_offset_hoursnumberOptional

Whose midnight turns the day (default 8, China).

Default: 8

Limits: minimum -14, maximum 14

activitystring | nullOptional

Plan to find good days for.

Default: null

Allowed values: burialbusiness_openingcontractdemolitionfinancemedicalmovingrenovationtravelweddingworship

Example: wedding

animalstring | nullOptional

Your Chinese zodiac animal; days that clash with it are not suggested.

Default: null

Allowed values: RatOxTigerRabbitDragonSnakeHorseGoatMonkeyRoosterDogPig

Example: Horse

labelsstringOptional

Optional. Adds `meta.labels`: translated display names for the identifiers in the answer. `data` is unchanged. Free. Any other code is refused with 422 unsupported_language.

Allowed values: asbndeesfrguhiitjaknkomlmrnenlorpaplptrusitatetrur

Response · fields in data

Inferred from the example response: a guide to the shape, not a contract.

  • from · string
  • days · number
  • tz · number
  • activity · string
  • animal · string
  • good_days · array of string
  • calendar · array of object
  • activities · array of string
  • method · string
  • basis · string
  • mansion_basis · string

Try in Playground →Capability overview

Example request

Example response

200application/json
{
  "data": {
    "from": "2026-12-01",
    "days": 14,
    "tz": 8,
    "activity": "wedding",
    "animal": "Horse",
    "good_days": [
      "2026-12-01",
      "2026-12-08",
      "2026-12-09",
      "2026-12-12",
      "2026-12-14"
    ],
    "calendar": [
      {
        "date": "2026-12-01",
        "weekday": "Tuesday",
        "day_pillar": {
          "stem": "Ji",
  …

Captured from the live engine with a sandbox key (so credits_used is 0) and trimmed: long arrays keep their first items.

Error responses

  • 400invalid_request
  • 401invalid_key, expired_key
  • 402payment_required
  • 403account_suspended, plan_upgrade_required, plan_family_not_included, key_scope_denied, ip_not_allowed, origin_not_allowed, publishable_key_not_allowed
  • 404not_found
  • 409idempotency_conflict
  • 413payload_too_large
  • 422invalid_request, unsupported_language
  • 429rate_limited, quota_exhausted, spend_cap_reached, project_budget_exceeded
  • 500computation_failed
  • 502unavailable
  • 503unavailable, maintenance, temporarily_unavailable
  • 504deadline_exceeded

Errors are never charged. What each status means and what to do: errors.

Was this page helpful?

Send us feedback

What is it about?