---
title: "I Ching Hexagram (DEPRECATED: use /iching/throw-coins)"
method: POST
path: "/iching"
tags: ["Esoteric"]
deprecated: true
---

# I Ching Hexagram (DEPRECATED: use /iching/throw-coins)

`POST /iching`

> **Deprecated.**

DEPRECATED: legacy un-namespaced random hexagram cast. Superseded by the /iching/* namespace: `/iching/throw-coins` (seeded + reproducible), `/iching/by-question`, `/iching/with-changing-lines`, `/iching/daily`, `/iching/lookup/{n}`, all on the Wilhelm-Baynes hexagram set. Still works until its 2027-06-16 sunset, then removed. Casts a single I Ching hexagram (input ignored).

## Request body

- EmptyBody — This endpoint reads nothing from the request body. Send {} (or any object, which is ignored).

## Response `200`

Successful calculation

- object
  - `ok` boolean
  - `data` object
    - `number` number, nullable
    - `name` string, nullable
    - `lines` object[], nullable
      - `value` number, nullable
      - `isChanging` boolean, nullable
    - `upper` string, nullable
    - `lower` string, nullable

## Other responses

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

---

[API](https://skmtc.net/astroway/apis/astroway-calculation-api.md) · [All operations](https://skmtc.net/astroway/apis/astroway-calculation-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/astroway/astroway-calculation-api/revisions/529d7d36d7d6/schema)
