Docs Quickstart

Compute a reading in one request.

A reading is identified by its six lines, written bottom line first. Each line is a 6, 7, 8 or 9. Every file sits under a release, so first ask which release is current, then request the reading by its six digits.

PreviewThese pages show how the documentation will read. The dataset and the MCP server arrive with the first release. The two example readings are verified. {release} is a placeholder for a release ID, and the licence and sources values are illustrative until then.

1. Find the release, then request a reading

Shell
# 1. Find the current release
curl https://api.divinacci.com/v1/current.json

# 2. Read one reading from that release
curl https://api.divinacci.com/v1/releases/{release}/iching/readings/977777.json

2. Read the response

Every file has the same envelope: release, licence, sources, then data. Here the first line is a 9, an old yang line that changes. The other five are 7. That gives hexagram 1, 乾 Qián, changing into hexagram 44, 姤 Gòu.

1 · 乾 Qián
44 · 姤 Gòu
Response · 200
{
  "release": "{release}",
  "licence": "CC BY 4.0",
  "sources": { "…": "one per field" },
  "data": {
    "lines": "977777",
    "primary": {
      "number": 1,
      "name": "乾",
      "pinyin": "Qián"
    },
    "changing": [1],
    "resulting": {
      "number": 44,
      "name": "姤",
      "pinyin": "Gòu"
    }
  }
}

The fields are explained in Concepts, and every path is listed in the API reference.

3. Or give the tools to an agent

Claude Code
claude mcp add --transport http divinacci https://mcp.divinacci.com/mcp

See MCP setup for other clients and the list of tools.