64 Hexagrams | Changing Lines | Trigram Analysis | AI Interpretation
The Book of Changes as a REST API. Cast hexagrams using traditional yarrow stalk or coin toss methods. Get the original texts, changing lines, nuclear hexagrams, and AI-powered natural language readings.
Traditional wisdom, modern interface
Cast hexagrams using yarrow stalk simulation or three-coin method. Returns primary hexagram, changing lines, and resulting hexagram with full texts.
/v2/divination/iching/cast
Complete reference data for all 64 hexagrams. Name, judgment, image text, line texts, trigram composition, and traditional commentary.
/v2/divination/iching/hexagrams
Analysis of moving lines that transform the primary hexagram into the resulting hexagram. Each changing line returns its specific text and meaning.
/v2/divination/iching/lines
Detailed upper and lower trigram analysis. Eight trigrams with elemental associations, family members, body parts, and directional attributes.
/v2/divination/iching/trigrams
Vedika AI interprets hexagram readings in context of your question. Natural language wisdom drawing from the I Ching tradition.
/v2/divination/iching/interpret
Daily hexagram of the day with interpretation. Date-seeded for consistency. Perfect for daily content feeds and app notifications.
/v2/divination/iching/daily
curl -X POST https://api.vedika.io/v2/divination/iching/cast \
-H "Authorization: Bearer your_api_key" \
-H "Content-Type: application/json" \
-d '{
"question": "Should I start this venture?",
"method": "coin"
}'
const res = await fetch(
'https://api.vedika.io/v2/divination/iching/cast',
{
method: 'POST',
headers: {
'Authorization': 'Bearer your_api_key',
'Content-Type': 'application/json'
},
body: JSON.stringify({
question: 'Should I start this venture?',
method: 'yarrow'
})
}
);
const { data } = await res.json();
console.log(data.hexagram.name);
console.log(data.changing_lines);
console.log(data.interpretation);
All endpoints included in every plan.
64 hexagrams. Changing lines. AI wisdom. Plans from $12/month.