{"uid":"cap_Oe3AO7o9P60qzqbdBA3_P","slug":"chinese-calendar-and-culture-i-ching-hexagram-lookup-and-casting-17e293c8","name":"Chinese Calendar and Culture – I Ching Hexagram Lookup and Casting","description":"Look up an I Ching hexagram by number or lines, or cast one from a question and date with changing lines.","url":"https://chinese-culture.x402tookit.com/i-ching?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":[],"properties":{"cast":{"type":"string","description":"A question or any text: the same text always casts the same hexagram"},"date":{"type":"string","description":"Optional date mixed into the cast seed, any text such as 2026-10-21"},"lines":{"type":"string","description":"Six lines bottom to top as 1 (solid) and 0 (broken), e.g. 111000"},"number":{"type":"integer","description":"Hexagram 1 to 64 (King Wen order)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"asOf":{"type":["null","string"]},"source":{"type":["null","string"]},"primary":{"type":["null","object"],"properties":{"number":{"type":["null","number"]},"pinyin":{"type":["null","string"]},"symbol":{"type":["null","string"]},"chinese":{"type":["null","string"]},"english":{"type":["null","string"]},"lowerTrigram":{"type":["null","object"],"properties":{"name":{"type":["null","string"]},"nature":{"type":["null","string"]},"chinese":{"type":["null","string"]}}},"upperTrigram":{"type":["null","object"],"properties":{"name":{"type":["null","string"]},"nature":{"type":["null","string"]},"chinese":{"type":["null","string"]}}},"linesBottomToTop":{"type":["null","string"]}}},"reasons":{"type":["array","null"],"items":{"type":"string"}},"summary":{"type":["null","string"]},"verdict":{"type":["null","string"]},"degraded":{"type":["boolean","null"]},"relating":{"type":["null","object"],"properties":{"number":{"type":["null","number"]},"pinyin":{"type":["null","string"]},"symbol":{"type":["null","string"]},"chinese":{"type":["null","string"]},"english":{"type":["null","string"]},"lowerTrigram":{"type":["null","object"],"properties":{"name":{"type":["null","string"]},"nature":{"type":["null","string"]},"chinese":{"type":["null","string"]}}},"upperTrigram":{"type":["null","object"],"properties":{"name":{"type":["null","string"]},"nature":{"type":["null","string"]},"chinese":{"type":["null","string"]}}},"linesBottomToTop":{"type":["null","string"]}}},"disclaimer":{"type":["null","string"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"changingLines":{"type":["array","null"],"items":{"type":"number"}},"lineValuesBottomToTop":{"type":["array","null"],"items":{"type":"number"}}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_HN4CTGfEat0m2h01UMPlX","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Look up an I Ching hexagram by number or line pattern, or cast one deterministically from a question text and optional date, returning full hexagram details including trigrams, symbols, and changing lines.","exampleAgentPrompt":"Cast an I Ching hexagram for my question 'Should I accept the new job offer?' using today's date 2025-07-15, and tell me the hexagram name, symbol, trigrams, and any relating hexagram from changing lines.","exampleUseCases":[{"title":"Career decision I Ching reading","prompt":"I'm wondering whether to start my own business — can you cast an I Ching hexagram for the question 'Is now the right time to launch my startup?' using the date 2025-07-15 and tell me what it says including any changing lines?"},{"title":"Look up specific hexagram by number","prompt":"Can you look up I Ching hexagram 42 — Yi, Increase — and give me its Chinese name, pinyin, symbol, upper and lower trigrams, and the line pattern?"},{"title":"Identify hexagram from a line reading","prompt":"I drew six lines in an I Ching reading and got solid, solid, broken, solid, broken, broken from bottom to top — that's 110110 — can you tell me which hexagram that is and what it means?"}],"resultDescription":"Returns a structured I Ching reading including: the primary hexagram's number, Chinese name, pinyin, Unicode symbol, upper and lower trigrams (name, nature, Chinese), the six-line pattern, an English name, a summary interpretation, a verdict, and optionally a relating (transformed) hexagram when changing lines are present, plus data source and timestamp.","failureModes":["Invalid hexagram number (outside 1-64) returns an error","Ambiguous or conflicting query parameters (e.g. both number and lines provided with mismatch) may return an error or default behavior","Lines string not exactly 6 characters of 0s and 1s returns a validation error","Missing required cast text when using cast mode returns an error","Network timeout or upstream service unavailability"],"whenToPreferThis":"Choose this endpoint when you need structured, machine-readable I Ching hexagram data — either by direct lookup (number or line pattern) or deterministic casting from a question. Prefer it over generic text-based divination if you need parsed trigram data, symbols, and changing-line analysis. The cast function is deterministic (same question + date always returns the same hexagram), making it suitable for reproducible readings.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-02T18:33:03.522Z","isFirstParty":false,"canonicalSlug":"chinese-calendar-and-culture-i-ching-hexagram-lookup-and-casting-17e293c8"}