Methods 01
Classical I Ching
易經
First release · free
The classical I Ching as data. Give six line values, or cast them, and get the structure of the reading with its cited texts.
Inputs and outputs
Inputs
- Six line values, each 6, 7, 8 or 9, written bottom line first
- Or a cast of the six lines, by the coin method or the yarrow method
Outputs
- The primary hexagram
- The changing lines, as positions 1 to 6 from the bottom line
- The resulting hexagram, or null when no line changes
- Cited texts
Status
In the first release, and free: a static JSON dataset of every hexagram, trigram and reading, and four MCP tools for agents.
Start with the quickstart, read the API reference for the JSON dataset, or connect an agent through MCP setup. Line values and the coin and yarrow probabilities are in Concepts.
A published example
The lines 977777, bottom line first: hexagram 1, 乾 Qián, with its first line changing, becomes hexagram 44, 姤 Gòu.
{
"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"
}
}
}{release} is a placeholder, and the licence and sources values are illustrative until the first release. This site does not explain what the hexagrams mean; for that, see UAYA.