# Chinese Calendar and Culture – I Ching Hexagram Lookup and Casting

> Chinese Calendar and Culture – I Ching Hexagram Lookup and Casting is a paid API for AI agents from chinese-culture.x402tookit.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-11-02).

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.

## Facts

- Endpoint: GET https://chinese-culture.x402tookit.com/i-ching?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/chinese-calendar-and-culture-i-ching-hexagram-lookup-and-casting-17e293c8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Oe3AO7o9P60qzqbdBA3_P

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability chinese-calendar-and-culture-i-ching-hexagram-lookup-and-casting-17e293c8
```

Example prompt: 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.

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

Look up an I Ching hexagram by number or lines, or cast one from a question and date with changing lines.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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": 
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/chinese-calendar-and-culture-i-ching-hexagram-lookup-and-casting-17e293c8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from chinese-culture.x402tookit.com](https://www.zero.xyz/host/chinese-culture.x402tookit.com/llms.txt)
