Skip to content
RoxyAPI
Get API Key

I-Ching API reference

I-Ching oracle API with all 64 hexagrams, 384 changing lines, 8 trigrams, and modern interpretations for love, career, and decision-making. Cast readings with the authentic three-coin method, get a daily hexagram, and explore the Book of Changes programmatically. Built for divination apps, AI oracle chatbots, fortune-telling platforms, daily wisdom features, and spiritual guidance products. One key covers every RoxyAPI domain, with Remote MCP and typed SDKs.

9 endpoints. Product page. Typed SDKs in six languages carry every operation below.

Kept in this tab only. Without a key, a small daily allowance still answers every request below.

Daily hexagram - Daily I-Ching oracle API

POST /api/v2/iching/daily

Receive a daily I-Ching hexagram for guidance and reflection. This endpoint uses seeded randomness to ensure the same seed gets the same hexagram on the same day, perfect for "Hexagram of the Day" features in oracle apps, meditation platforms, and daily wisdom tools. Returns the hexagram with judgment, image, and interpretations for love, career, decisions, and practical advice based on ancient Chinese wisdom from the Book of Changes.

Parameters

ParameterTypeDescription
lang querystring enumResponse language (BCP 47). Supported: en, tr, de, es, hi, pt, fr, ru, zh-Hans, zh-Hant. Defaults to en. Coverage varies by domain, and a field with no translation in the requested language returns English. Default en.

Request body

FieldTypeDescription
seedstringOptional seed for reproducible readings. Same seed + same date = same hexagram every time. Pass any unique identifier (userId, email hash, session token). Omit for anonymous daily readings.
datestring (date)Date for the reading in YYYY-MM-DD format. Defaults to today (UTC). Useful for viewing past daily readings or pre-generating future ones.
curl
curl -X POST "https://roxyapi.com/api/v2/iching/daily" \
  -H "X-API-Key: YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"seed":"user123","date":"2026-03-06"}'

Response fields

FieldTypeDescription
date requiredstringDate this daily hexagram is for (YYYY-MM-DD, UTC).
seed requiredstringComputed seed used for this reading. Same seed always produces the same hexagram.
hexagram requiredobject
hexagram.number requirednumberHexagram number in King Wen sequence (1-64).
hexagram.symbol requiredstringUnicode hexagram symbol for display.
hexagram.chinese requiredstringOriginal Chinese name.
hexagram.english requiredstringEnglish translation of the hexagram name.
hexagram.pinyin requiredstringPinyin romanization with tone marks.
hexagram.upperTrigram requiredstringUpper trigram (lines 4-6).
hexagram.lowerTrigram requiredstringLower trigram (lines 1-3).
hexagram.judgment requiredstringThe Judgment (Tuan) text, the primary oracle statement of the hexagram offering core guidance.
hexagram.image requiredstringThe Image (Xiang) text, symbolic guidance derived from the trigram combination describing the ideal action.
hexagram.interpretation requiredobjectModern interpretations across life areas based on ancient I-Ching wisdom.
hexagram.interpretation.general requiredstringGeneral life situation interpretation.
Show all fieldsShow fewer fields
FieldTypeDescription
hexagram.interpretation.love requiredstringLove and relationship guidance.
hexagram.interpretation.career requiredstringCareer and professional interpretation.
hexagram.interpretation.decision requiredstringDecision-making guidance for whether to act, wait, or change course.
hexagram.interpretation.advice requiredstringPractical wisdom and actionable advice.
dailyMessage requiredstringConcise daily message summarizing the hexagram guidance
Example response
{
  "date": "2026-01-28",
  "seed": "user123-2026-01-28",
  "hexagram": {
    "number": 1,
    "symbol": "䷀",
    "chinese": "乾",
    "english": "The Creative",
    "pinyin": "Qián",
    "upperTrigram": "Heaven",
    "lowerTrigram": "Heaven",
    "judgment": "Pure creative force is available and it runs from origin to completion without obstruction, so the situation rewards initiative that stays correct and does not slacken. Success here is built by sustained effort held to a straight line, not by a single burst.",
    "image": "Heaven above heaven: the same motion repeated without pause and without fatigue. Renew your own strength on your own schedule rather than waiting to be driven by circumstances.",
    "interpretation": {
      "general": "A time of great creative power and initiative. The universe supports bold action and forward movement. Success comes through strength of character and unwavering perseverance.",
      "love": "A time of strong creative energy and passionate connection. Take the initiative in expressing your feelings, but avoid arrogance.",
      "career": "Exceptional opportunities for advancement and recognition await. Your creative ideas and leadership abilities are at their peak.",
      "decision": "The time is right for bold action. Trust your instincts and move forward with confidence.",
      "advice": "Be like the heavens: consistent, powerful, and untiring. Make yourself strong through steady effort, not through force."
    }
  },
  "dailyMessage": "Your hexagram for 2026-01-28: The Creative (乾). Be like the heavens: consistent, powerful, and untiring."
}

Try it

JSON, as the example above shows it.
Not sent

Cast daily reading with changing lines - I-Ching divination API

POST /api/v2/iching/daily/cast

Cast a complete daily I-Ching reading using the traditional three-coin method with seeded randomness. Unlike the simple daily hexagram, this provides the full casting experience with line values (6-9), changing line positions, and the resulting hexagram if transformation occurs. Same seed + same date = same casting result. Perfect for I-Ching divination apps requiring authentic oracle experience with daily consistency.

Parameters

ParameterTypeDescription
lang querystring enumResponse language (BCP 47). Supported: en, tr, de, es, hi, pt, fr, ru, zh-Hans, zh-Hant. Defaults to en. Coverage varies by domain, and a field with no translation in the requested language returns English. Default en.

Request body

FieldTypeDescription
seedstringOptional seed for reproducible readings. Same seed + same date = same hexagram every time. Pass any unique identifier (userId, email hash, session token). Omit for anonymous daily readings.
datestring (date)Date for the reading in YYYY-MM-DD format. Defaults to today (UTC). Useful for viewing past daily readings or pre-generating future ones.
curl
curl -X POST "https://roxyapi.com/api/v2/iching/daily/cast" \
  -H "X-API-Key: YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"seed":"user123","date":"2026-03-06"}'

Response fields

FieldTypeDescription
date requiredstringDate this daily casting is for (YYYY-MM-DD, UTC).
seed requiredstringComputed seed for reproducible castings.
hexagramobject
hexagram.number requirednumberHexagram number in King Wen sequence (1-64).
hexagram.symbol requiredstringUnicode hexagram symbol for display.
hexagram.chinese requiredstringOriginal Chinese name.
hexagram.english requiredstringEnglish translation of the hexagram name.
hexagram.pinyin requiredstringPinyin romanization with tone marks.
hexagram.upperTrigram requiredstringUpper trigram (lines 4-6).
hexagram.lowerTrigram requiredstringLower trigram (lines 1-3).
hexagram.judgment requiredstringThe Judgment (Tuan) text, the primary oracle statement of the hexagram offering core guidance.
hexagram.image requiredstringThe Image (Xiang) text, symbolic guidance derived from the trigram combination describing the ideal action.
hexagram.interpretation requiredobjectModern interpretations across life areas based on ancient I-Ching wisdom.
hexagram.interpretation.general requiredstringGeneral life situation interpretation.
Show all fieldsShow fewer fields
FieldTypeDescription
hexagram.interpretation.love requiredstringLove and relationship guidance.
hexagram.interpretation.career requiredstringCareer and professional interpretation.
hexagram.interpretation.decision requiredstringDecision-making guidance for whether to act, wait, or change course.
hexagram.interpretation.advice requiredstringPractical wisdom and actionable advice.
hexagram.binary requiredstringBinary line pattern (6 digits, bottom to top). 1 = yang (solid line), 0 = yin (broken line). Lines 1-3 form the lower trigram, lines 4-6 form the upper trigram.
hexagram.changingLinesarray of objectThe oracle statement and meaning of each line that came up CHANGING, and only those. The changing lines are what the cast is actually about, so this saves a second call to read them and stops a consuming agent from having to invent them.
hexagram.changingLines[].position requirednumberLine position (1-6, bottom to top). In I-Ching, each hexagram has six lines (yao) read from bottom upward.
hexagram.changingLines[].text requiredstringThe oracle statement for this line. It applies when this specific line comes up changing (old yin or old yang) in a casting, and it speaks in the concrete imagery of the tradition.
hexagram.changingLines[].meaningstringWhat the line statement asks of the querent, read from its position in the hexagram (1 is the hidden beginning, 3 is the exposed threshold, 5 is the ruling line, 6 is past the peak) and from whether the line is yin or yang. This is the meaning behind the image, so a consuming agent does not have to invent one.
lines requiredarray of numberLine values (6-9) from bottom to top. 6=old yin (changing), 7=young yang, 8=young yin, 9=old yang (changing).
changingLinePositions requiredarray of numberPositions of changing lines (1-6, bottom to top). These lines transform yin to yang or vice versa.
changingLinesarray of objectThe oracle statement and meaning of each line that came up CHANGING, and only those. The changing lines are what the cast is actually about, so this saves a second call to read them and stops a consuming agent from having to invent them.
changingLines[].position requirednumberLine position (1-6, bottom to top). In I-Ching, each hexagram has six lines (yao) read from bottom upward.
changingLines[].text requiredstringThe oracle statement for this line. It applies when this specific line comes up changing (old yin or old yang) in a casting, and it speaks in the concrete imagery of the tradition.
changingLines[].meaningstringWhat the line statement asks of the querent, read from its position in the hexagram (1 is the hidden beginning, 3 is the exposed threshold, 5 is the ruling line, 6 is past the peak) and from whether the line is yin or yang. This is the meaning behind the image, so a consuming agent does not have to invent one.
resultingHexagramobjectHexagram after transformation (if changing lines present)
resultingHexagram.number requirednumberHexagram number in King Wen sequence (1-64).
resultingHexagram.symbol requiredstringUnicode hexagram symbol for display.
resultingHexagram.chinese requiredstringOriginal Chinese name.
resultingHexagram.english requiredstringEnglish translation of the hexagram name.
resultingHexagram.pinyin requiredstringPinyin romanization with tone marks.
resultingHexagram.upperTrigram requiredstringUpper trigram (lines 4-6).
resultingHexagram.lowerTrigram requiredstringLower trigram (lines 1-3).
resultingHexagram.judgment requiredstringThe Judgment (Tuan) text, the primary oracle statement of the hexagram offering core guidance.
resultingHexagram.image requiredstringThe Image (Xiang) text, symbolic guidance derived from the trigram combination describing the ideal action.
resultingHexagram.interpretation requiredobjectModern interpretations across life areas based on ancient I-Ching wisdom.
resultingHexagram.interpretation.general requiredstringGeneral life situation interpretation.
resultingHexagram.interpretation.love requiredstringLove and relationship guidance.
resultingHexagram.interpretation.career requiredstringCareer and professional interpretation.
resultingHexagram.interpretation.decision requiredstringDecision-making guidance for whether to act, wait, or change course.
resultingHexagram.interpretation.advice requiredstringPractical wisdom and actionable advice.
Example response
{
  "date": "2026-01-28",
  "seed": "user123-2026-01-28",
  "hexagram": {
    "number": 1,
    "symbol": "䷀",
    "chinese": "乾",
    "english": "The Creative",
    "pinyin": "Qián",
    "upperTrigram": "Heaven",
    "lowerTrigram": "Heaven",
    "judgment": "Pure creative force is available and it runs from origin to completion without obstruction, so the situation rewards initiative that stays correct and does not slacken. Success here is built by sustained effort held to a straight line, not by a single burst.",
    "image": "Heaven above heaven: the same motion repeated without pause and without fatigue. Renew your own strength on your own schedule rather than waiting to be driven by circumstances.",
    "interpretation": {
      "general": "A time of great creative power and initiative. The universe supports bold action and forward movement. Success comes through strength of character and unwavering perseverance.",
      "love": "A time of strong creative energy and passionate connection. Take the initiative in expressing your feelings, but avoid arrogance.",
      "career": "Exceptional opportunities for advancement and recognition await. Your creative ideas and leadership abilities are at their peak.",
      "decision": "The time is right for bold action. Trust your instincts and move forward with confidence.",
      "advice": "Be like the heavens: consistent, powerful, and untiring. Make yourself strong through steady effort, not through force."
    },
    "binary": "111111",
    "changingLines": [
      {
        "position": 1,
        "text": "The dragon is still hidden below the surface, so it does not act.",
        "meaning": "The first line is the beginning, still underground and unrecognized. Strength is present but untested, and showing it now invites resistance it cannot yet survive. Stay hidden and build."
      }
    ]
  },
  "lines": [
    7,
    8
  ],
  "changingLinePositions": [
    3,
    5
  ],
  "changingLines": [
    {
      "position": 1,
      "text": "The dragon is still hidden below the surface, so it does not act.",
      "meaning": "The first line is the beginning, still underground and unrecognized. Strength is present but untested, and showing it now invites resistance it cannot yet survive. Stay hidden and build."
    }
  ],
  "resultingHexagram": {
    "number": 1,
    "symbol": "䷀",
    "chinese": "乾",
    "english": "The Creative",
    "pinyin": "Qián",
    "upperTrigram": "Heaven",
    "lowerTrigram": "Heaven",
    "judgment": "Pure creative force is available and it runs from origin to completion without obstruction, so the situation rewards initiative that stays correct and does not slacken. Success here is built by sustained effort held to a straight line, not by a single burst.",
    "image": "Heaven above heaven: the same motion repeated without pause and without fatigue. Renew your own strength on your own schedule rather than waiting to be driven by circumstances.",
    "interpretation": {
      "general": "A time of great creative power and initiative. The universe supports bold action and forward movement. Success comes through strength of character and unwavering perseverance.",
      "love": "A time of strong creative energy and passionate connection. Take the initiative in expressing your feelings, but avoid arrogance.",
      "career": "Exceptional opportunities for advancement and recognition await. Your creative ideas and leadership abilities are at their peak.",
      "decision": "The time is right for bold action. Trust your instincts and move forward with confidence.",
      "advice": "Be like the heavens: consistent, powerful, and untiring. Make yourself strong through steady effort, not through force."
    }
  }
}

Try it

JSON, as the example above shows it.
Not sent

List all 64 hexagrams - I-Ching hexagram catalog API

GET /api/v2/iching/hexagrams

Browse all 64 I-Ching hexagrams from the Book of Changes with their Chinese names, English translations, and trigram compositions. The hexagrams are ordered by the traditional King Wen sequence used in I-Ching divination for 3,000 years. Each hexagram represents a unique life situation combining two trigrams (Heaven, Earth, Thunder, Wind, Water, Fire, Mountain, Lake) into profound wisdom for decision-making and self-understanding.

Parameters

ParameterTypeDescription
lang querystring enumResponse language (BCP 47). Supported: en, tr, de, es, hi, pt, fr, ru, zh-Hans, zh-Hant. Defaults to en. Coverage varies by domain, and a field with no translation in the requested language returns English. Default en.
limit queryintegerMaximum items to return per page. Range: 1-64, default 20. Default 20.
offset queryintegerNumber of items to skip for pagination. Default 0. Default 0.
curl
curl "https://roxyapi.com/api/v2/iching/hexagrams" \
  -H "X-API-Key: YOUR_KEY"

Response fields

FieldTypeDescription
total requirednumberTotal number of I-Ching hexagrams (always 64).
limit requirednumberPage size used for this response.
offset requirednumberNumber of hexagrams skipped. Use with limit for pagination.
hexagrams requiredarray of objectHexagrams for the current page. Use /hexagrams/{number} for full details.
hexagrams[].number requirednumberHexagram number in King Wen sequence (1-64).
hexagrams[].symbol requiredstringUnicode hexagram symbol for display.
hexagrams[].chinese requiredstringOriginal Chinese name of the hexagram.
hexagrams[].english requiredstringEnglish translation of the hexagram name.
hexagrams[].pinyin requiredstringPinyin romanization of the Chinese name with tone marks.
hexagrams[].upperTrigram requiredstringUpper trigram (lines 4-6). One of 8 trigrams: Heaven, Earth, Thunder, Wind, Water, Fire, Mountain, Lake.
hexagrams[].lowerTrigram requiredstringLower trigram (lines 1-3). Combines with upper trigram to form the hexagram.
Example response
{
  "total": 64,
  "limit": 20,
  "offset": 0,
  "hexagrams": [
    {
      "number": 1,
      "symbol": "䷀",
      "chinese": "乾",
      "english": "The Creative",
      "pinyin": "Qián",
      "upperTrigram": "Heaven",
      "lowerTrigram": "Heaven"
    }
  ]
}

Try it

Not sent

Random hexagram - I-Ching hexagram picker API

GET /api/v2/iching/hexagrams/random

Receive a random I-Ching hexagram with full interpretation. Perfect for daily oracle features, meditation prompts, or exploring the Book of Changes. Returns complete hexagram data including judgment, image, interpretations for love/career/decisions, and all six changing line meanings.

Parameters

ParameterTypeDescription
lang querystring enumResponse language (BCP 47). Supported: en, tr, de, es, hi, pt, fr, ru, zh-Hans, zh-Hant. Defaults to en. Coverage varies by domain, and a field with no translation in the requested language returns English. Default en.
curl
curl "https://roxyapi.com/api/v2/iching/hexagrams/random" \
  -H "X-API-Key: YOUR_KEY"

Response fields

FieldTypeDescription
number requirednumberHexagram number in the traditional King Wen sequence (1-64), the standard ordering used in I-Ching divination for over 3,000 years.
symbol requiredstringUnicode hexagram symbol (U+4DC0 block) representing all six lines. Use for visual display in I-Ching apps and divination interfaces.
chinese requiredstringOriginal Chinese character name of the hexagram in traditional script.
english requiredstringEnglish translation of the hexagram name, conveying the core concept and life situation it represents.
pinyin requiredstringPinyin romanization of the Chinese name with tone marks for correct pronunciation.
binary requiredstringBinary line pattern (6 digits, bottom to top). 1 = yang (solid line), 0 = yin (broken line). Lines 1-3 form the lower trigram, lines 4-6 form the upper trigram.
upperTrigram requiredstringUpper trigram (lines 4-6). One of 8 trigrams: Heaven, Earth, Thunder, Wind, Water, Fire, Mountain, Lake.
lowerTrigram requiredstringLower trigram (lines 1-3). Combines with the upper trigram to form the hexagram and its meaning.
judgment requiredstringThe Judgment (Tuan) text, the primary oracle statement of the hexagram offering core guidance and outcome.
image requiredstringThe Image (Xiang) text, symbolic guidance derived from the trigram combination describing the ideal attitude and action.
interpretation requiredobject
interpretation.general requiredstringGeneral life situation interpretation of this hexagram.
interpretation.love requiredstringLove and relationship guidance from this hexagram.
interpretation.career requiredstringCareer and professional life interpretation.
Show all fieldsShow fewer fields
FieldTypeDescription
interpretation.decision requiredstringDecision-making guidance for whether to act, wait, retreat, or advance based on this hexagram.
interpretation.advice requiredstringPractical wisdom and actionable advice from this hexagram for daily life application.
changingLines requiredarray of objectChanging line interpretations for all 6 lines
changingLines[].position requirednumberLine position (1-6, bottom to top). In I-Ching, each hexagram has six lines (yao) read from bottom upward.
changingLines[].text requiredstringThe oracle statement for this line. It applies when this specific line comes up changing (old yin or old yang) in a casting, and it speaks in the concrete imagery of the tradition.
changingLines[].meaningstringWhat the line statement asks of the querent, read from its position in the hexagram (1 is the hidden beginning, 3 is the exposed threshold, 5 is the ruling line, 6 is past the peak) and from whether the line is yin or yang. This is the meaning behind the image, so a consuming agent does not have to invent one.
Example response
{
  "number": 1,
  "symbol": "䷀",
  "chinese": "乾",
  "english": "The Creative",
  "pinyin": "Qián",
  "binary": "111111",
  "upperTrigram": "Heaven",
  "lowerTrigram": "Heaven",
  "judgment": "Pure creative force is available and it runs from origin to completion without obstruction, so the situation rewards initiative that stays correct and does not slacken. Success here is built by sustained effort held to a straight line, not by a single burst.",
  "image": "Heaven above heaven: the same motion repeated without pause and without fatigue. Renew your own strength on your own schedule rather than waiting to be driven by circumstances.",
  "interpretation": {
    "general": "This hexagram represents the primal power of creation and the energy of pure initiative.",
    "love": "A time of strong attraction and passionate connection. Take the initiative in expressing your feelings.",
    "career": "Exceptional opportunities for advancement and recognition. Your creative ideas are at their peak.",
    "decision": "The time is right for bold action. Trust your instincts and move forward with confidence.",
    "advice": "Be like the heavens: consistent, powerful, and untiring. Make yourself strong through steady effort."
  },
  "changingLines": [
    {
      "position": 1,
      "text": "The dragon is still hidden below the surface, so it does not act.",
      "meaning": "The first line is the beginning, still underground and unrecognized. Strength is present but untested, and showing it now invites resistance it cannot yet survive. Stay hidden and build."
    }
  ]
}

Try it

Not sent

Lookup hexagram by line pattern - I-Ching binary lookup API

GET /api/v2/iching/hexagrams/lookup

Find an I-Ching hexagram by its binary line pattern. Provide 6 digits (0 or 1) representing broken (yin) and solid (yang) lines from bottom to top. Use this for custom divination interfaces where users input their own line configurations, or to find hexagrams matching specific trigram combinations. Example: "111111" returns Hexagram 1 (The Creative), "000000" returns Hexagram 2 (The Receptive).

Parameters

ParameterTypeDescription
lang querystring enumResponse language (BCP 47). Supported: en, tr, de, es, hi, pt, fr, ru, zh-Hans, zh-Hant. Defaults to en. Coverage varies by domain, and a field with no translation in the requested language returns English. Default en.
lines required querystringSix-digit binary pattern (0=yin/broken, 1=yang/solid) from bottom to top.
curl
curl "https://roxyapi.com/api/v2/iching/hexagrams/lookup?lines=111111" \
  -H "X-API-Key: YOUR_KEY"

Response fields

FieldTypeDescription
number requirednumberHexagram number in the traditional King Wen sequence (1-64), the standard ordering used in I-Ching divination for over 3,000 years.
symbol requiredstringUnicode hexagram symbol (U+4DC0 block) representing all six lines. Use for visual display in I-Ching apps and divination interfaces.
chinese requiredstringOriginal Chinese character name of the hexagram in traditional script.
english requiredstringEnglish translation of the hexagram name, conveying the core concept and life situation it represents.
pinyin requiredstringPinyin romanization of the Chinese name with tone marks for correct pronunciation.
binary requiredstringBinary line pattern (6 digits, bottom to top). 1 = yang (solid line), 0 = yin (broken line). Lines 1-3 form the lower trigram, lines 4-6 form the upper trigram.
upperTrigram requiredstringUpper trigram (lines 4-6). One of 8 trigrams: Heaven, Earth, Thunder, Wind, Water, Fire, Mountain, Lake.
lowerTrigram requiredstringLower trigram (lines 1-3). Combines with the upper trigram to form the hexagram and its meaning.
judgment requiredstringThe Judgment (Tuan) text, the primary oracle statement of the hexagram offering core guidance and outcome.
image requiredstringThe Image (Xiang) text, symbolic guidance derived from the trigram combination describing the ideal attitude and action.
interpretation requiredobject
interpretation.general requiredstringGeneral life situation interpretation of this hexagram.
interpretation.love requiredstringLove and relationship guidance from this hexagram.
interpretation.career requiredstringCareer and professional life interpretation.
Show all fieldsShow fewer fields
FieldTypeDescription
interpretation.decision requiredstringDecision-making guidance for whether to act, wait, retreat, or advance based on this hexagram.
interpretation.advice requiredstringPractical wisdom and actionable advice from this hexagram for daily life application.
changingLines requiredarray of objectChanging line interpretations for all 6 lines
changingLines[].position requirednumberLine position (1-6, bottom to top). In I-Ching, each hexagram has six lines (yao) read from bottom upward.
changingLines[].text requiredstringThe oracle statement for this line. It applies when this specific line comes up changing (old yin or old yang) in a casting, and it speaks in the concrete imagery of the tradition.
changingLines[].meaningstringWhat the line statement asks of the querent, read from its position in the hexagram (1 is the hidden beginning, 3 is the exposed threshold, 5 is the ruling line, 6 is past the peak) and from whether the line is yin or yang. This is the meaning behind the image, so a consuming agent does not have to invent one.
Example response
{
  "number": 1,
  "symbol": "䷀",
  "chinese": "乾",
  "english": "The Creative",
  "pinyin": "Qián",
  "binary": "111111",
  "upperTrigram": "Heaven",
  "lowerTrigram": "Heaven",
  "judgment": "Pure creative force is available and it runs from origin to completion without obstruction, so the situation rewards initiative that stays correct and does not slacken. Success here is built by sustained effort held to a straight line, not by a single burst.",
  "image": "Heaven above heaven: the same motion repeated without pause and without fatigue. Renew your own strength on your own schedule rather than waiting to be driven by circumstances.",
  "interpretation": {
    "general": "This hexagram represents the primal power of creation and the energy of pure initiative.",
    "love": "A time of strong attraction and passionate connection. Take the initiative in expressing your feelings.",
    "career": "Exceptional opportunities for advancement and recognition. Your creative ideas are at their peak.",
    "decision": "The time is right for bold action. Trust your instincts and move forward with confidence.",
    "advice": "Be like the heavens: consistent, powerful, and untiring. Make yourself strong through steady effort."
  },
  "changingLines": [
    {
      "position": 1,
      "text": "The dragon is still hidden below the surface, so it does not act.",
      "meaning": "The first line is the beginning, still underground and unrecognized. Strength is present but untested, and showing it now invites resistance it cannot yet survive. Stay hidden and build."
    }
  ]
}

Try it

Not sent

Get hexagram by number - I-Ching hexagram detail API

GET /api/v2/iching/hexagrams/{number}

Retrieve complete I-Ching hexagram details by King Wen sequence number (1-64). Returns the full hexagram with Chinese name, English translation, judgment text, image text, modern interpretations for general situations, love, career, and decision-making, plus all six changing line meanings. Use this to display detailed hexagram information after casting or for educational reference.

Parameters

ParameterTypeDescription
number required pathintegerHexagram number in King Wen sequence (1-64).
lang querystring enumResponse language (BCP 47). Supported: en, tr, de, es, hi, pt, fr, ru, zh-Hans, zh-Hant. Defaults to en. Coverage varies by domain, and a field with no translation in the requested language returns English. Default en.
curl
curl "https://roxyapi.com/api/v2/iching/hexagrams/1" \
  -H "X-API-Key: YOUR_KEY"

Response fields

FieldTypeDescription
number requirednumberHexagram number in the traditional King Wen sequence (1-64), the standard ordering used in I-Ching divination for over 3,000 years.
symbol requiredstringUnicode hexagram symbol (U+4DC0 block) representing all six lines. Use for visual display in I-Ching apps and divination interfaces.
chinese requiredstringOriginal Chinese character name of the hexagram in traditional script.
english requiredstringEnglish translation of the hexagram name, conveying the core concept and life situation it represents.
pinyin requiredstringPinyin romanization of the Chinese name with tone marks for correct pronunciation.
binary requiredstringBinary line pattern (6 digits, bottom to top). 1 = yang (solid line), 0 = yin (broken line). Lines 1-3 form the lower trigram, lines 4-6 form the upper trigram.
upperTrigram requiredstringUpper trigram (lines 4-6). One of 8 trigrams: Heaven, Earth, Thunder, Wind, Water, Fire, Mountain, Lake.
lowerTrigram requiredstringLower trigram (lines 1-3). Combines with the upper trigram to form the hexagram and its meaning.
judgment requiredstringThe Judgment (Tuan) text, the primary oracle statement of the hexagram offering core guidance and outcome.
image requiredstringThe Image (Xiang) text, symbolic guidance derived from the trigram combination describing the ideal attitude and action.
interpretation requiredobject
interpretation.general requiredstringGeneral life situation interpretation of this hexagram.
interpretation.love requiredstringLove and relationship guidance from this hexagram.
interpretation.career requiredstringCareer and professional life interpretation.
Show all fieldsShow fewer fields
FieldTypeDescription
interpretation.decision requiredstringDecision-making guidance for whether to act, wait, retreat, or advance based on this hexagram.
interpretation.advice requiredstringPractical wisdom and actionable advice from this hexagram for daily life application.
changingLines requiredarray of objectChanging line interpretations for all 6 lines
changingLines[].position requirednumberLine position (1-6, bottom to top). In I-Ching, each hexagram has six lines (yao) read from bottom upward.
changingLines[].text requiredstringThe oracle statement for this line. It applies when this specific line comes up changing (old yin or old yang) in a casting, and it speaks in the concrete imagery of the tradition.
changingLines[].meaningstringWhat the line statement asks of the querent, read from its position in the hexagram (1 is the hidden beginning, 3 is the exposed threshold, 5 is the ruling line, 6 is past the peak) and from whether the line is yin or yang. This is the meaning behind the image, so a consuming agent does not have to invent one.
Example response
{
  "number": 1,
  "symbol": "䷀",
  "chinese": "乾",
  "english": "The Creative",
  "pinyin": "Qián",
  "binary": "111111",
  "upperTrigram": "Heaven",
  "lowerTrigram": "Heaven",
  "judgment": "Pure creative force is available and it runs from origin to completion without obstruction, so the situation rewards initiative that stays correct and does not slacken. Success here is built by sustained effort held to a straight line, not by a single burst.",
  "image": "Heaven above heaven: the same motion repeated without pause and without fatigue. Renew your own strength on your own schedule rather than waiting to be driven by circumstances.",
  "interpretation": {
    "general": "This hexagram represents the primal power of creation and the energy of pure initiative.",
    "love": "A time of strong attraction and passionate connection. Take the initiative in expressing your feelings.",
    "career": "Exceptional opportunities for advancement and recognition. Your creative ideas are at their peak.",
    "decision": "The time is right for bold action. Trust your instincts and move forward with confidence.",
    "advice": "Be like the heavens: consistent, powerful, and untiring. Make yourself strong through steady effort."
  },
  "changingLines": [
    {
      "position": 1,
      "text": "The dragon is still hidden below the surface, so it does not act.",
      "meaning": "The first line is the beginning, still underground and unrecognized. Strength is present but untested, and showing it now invites resistance it cannot yet survive. Stay hidden and build."
    }
  ]
}

Try it

Not sent

Cast an I-Ching reading - Hexagram divination API

GET /api/v2/iching/cast

Generate an authentic I-Ching reading using the traditional three-coin casting method. Each of the six lines is determined by virtually tossing three coins, producing values 6-9 where 6 (old yin) and 9 (old yang) are changing lines. Returns the primary hexagram with full interpretation, the line values showing which lines are changing, and if any lines change, the resulting hexagram that the primary transforms into. Optionally provide a seed for reproducible castings. Perfect for divination apps, oracle features, and decision-making tools.

Parameters

ParameterTypeDescription
lang querystring enumResponse language (BCP 47). Supported: en, tr, de, es, hi, pt, fr, ru, zh-Hans, zh-Hant. Defaults to en. Coverage varies by domain, and a field with no translation in the requested language returns English. Default en.
seed querystringOptional seed for reproducible castings. Same seed = same casting every time. Pass any unique identifier (userId, session token, question hash). Omit for random casting.
curl
curl "https://roxyapi.com/api/v2/iching/cast" \
  -H "X-API-Key: YOUR_KEY"

Response fields

FieldTypeDescription
seedstringThe seed used for this casting (if provided)
hexagramobject
hexagram.number requirednumberHexagram number in the traditional King Wen sequence (1-64), the standard ordering used in I-Ching divination for over 3,000 years.
hexagram.symbol requiredstringUnicode hexagram symbol (U+4DC0 block) representing all six lines. Use for visual display in I-Ching apps and divination interfaces.
hexagram.chinese requiredstringOriginal Chinese character name of the hexagram in traditional script.
hexagram.english requiredstringEnglish translation of the hexagram name, conveying the core concept and life situation it represents.
hexagram.pinyin requiredstringPinyin romanization of the Chinese name with tone marks for correct pronunciation.
hexagram.binary requiredstringBinary line pattern (6 digits, bottom to top). 1 = yang (solid line), 0 = yin (broken line). Lines 1-3 form the lower trigram, lines 4-6 form the upper trigram.
hexagram.upperTrigram requiredstringUpper trigram (lines 4-6). One of 8 trigrams: Heaven, Earth, Thunder, Wind, Water, Fire, Mountain, Lake.
hexagram.lowerTrigram requiredstringLower trigram (lines 1-3). Combines with the upper trigram to form the hexagram and its meaning.
hexagram.judgment requiredstringThe Judgment (Tuan) text, the primary oracle statement of the hexagram offering core guidance and outcome.
hexagram.image requiredstringThe Image (Xiang) text, symbolic guidance derived from the trigram combination describing the ideal attitude and action.
hexagram.interpretation requiredobject
hexagram.interpretation.general requiredstringGeneral life situation interpretation of this hexagram.
Show all fieldsShow fewer fields
FieldTypeDescription
hexagram.interpretation.love requiredstringLove and relationship guidance from this hexagram.
hexagram.interpretation.career requiredstringCareer and professional life interpretation.
hexagram.interpretation.decision requiredstringDecision-making guidance for whether to act, wait, retreat, or advance based on this hexagram.
hexagram.interpretation.advice requiredstringPractical wisdom and actionable advice from this hexagram for daily life application.
hexagram.changingLines requiredarray of objectChanging line interpretations for all 6 lines
hexagram.changingLines[].position requirednumberLine position (1-6, bottom to top). In I-Ching, each hexagram has six lines (yao) read from bottom upward.
hexagram.changingLines[].text requiredstringThe oracle statement for this line. It applies when this specific line comes up changing (old yin or old yang) in a casting, and it speaks in the concrete imagery of the tradition.
hexagram.changingLines[].meaningstringWhat the line statement asks of the querent, read from its position in the hexagram (1 is the hidden beginning, 3 is the exposed threshold, 5 is the ruling line, 6 is past the peak) and from whether the line is yin or yang. This is the meaning behind the image, so a consuming agent does not have to invent one.
lines requiredarray of numberLine values (6-9) from bottom to top. 6=old yin (changing), 7=young yang, 8=young yin, 9=old yang (changing)
changingLinePositions requiredarray of numberPositions of changing lines (1-6, bottom to top)
resultingHexagramobject
resultingHexagram.number requirednumberHexagram number in the traditional King Wen sequence (1-64), the standard ordering used in I-Ching divination for over 3,000 years.
resultingHexagram.symbol requiredstringUnicode hexagram symbol (U+4DC0 block) representing all six lines. Use for visual display in I-Ching apps and divination interfaces.
resultingHexagram.chinese requiredstringOriginal Chinese character name of the hexagram in traditional script.
resultingHexagram.english requiredstringEnglish translation of the hexagram name, conveying the core concept and life situation it represents.
resultingHexagram.pinyin requiredstringPinyin romanization of the Chinese name with tone marks for correct pronunciation.
resultingHexagram.binary requiredstringBinary line pattern (6 digits, bottom to top). 1 = yang (solid line), 0 = yin (broken line). Lines 1-3 form the lower trigram, lines 4-6 form the upper trigram.
resultingHexagram.upperTrigram requiredstringUpper trigram (lines 4-6). One of 8 trigrams: Heaven, Earth, Thunder, Wind, Water, Fire, Mountain, Lake.
resultingHexagram.lowerTrigram requiredstringLower trigram (lines 1-3). Combines with the upper trigram to form the hexagram and its meaning.
resultingHexagram.judgment requiredstringThe Judgment (Tuan) text, the primary oracle statement of the hexagram offering core guidance and outcome.
resultingHexagram.image requiredstringThe Image (Xiang) text, symbolic guidance derived from the trigram combination describing the ideal attitude and action.
resultingHexagram.interpretation requiredobject
resultingHexagram.interpretation.general requiredstringGeneral life situation interpretation of this hexagram.
resultingHexagram.interpretation.love requiredstringLove and relationship guidance from this hexagram.
resultingHexagram.interpretation.career requiredstringCareer and professional life interpretation.
resultingHexagram.interpretation.decision requiredstringDecision-making guidance for whether to act, wait, retreat, or advance based on this hexagram.
resultingHexagram.interpretation.advice requiredstringPractical wisdom and actionable advice from this hexagram for daily life application.
resultingHexagram.changingLines requiredarray of objectChanging line interpretations for all 6 lines
resultingHexagram.changingLines[].position requirednumberLine position (1-6, bottom to top). In I-Ching, each hexagram has six lines (yao) read from bottom upward.
resultingHexagram.changingLines[].text requiredstringThe oracle statement for this line. It applies when this specific line comes up changing (old yin or old yang) in a casting, and it speaks in the concrete imagery of the tradition.
resultingHexagram.changingLines[].meaningstringWhat the line statement asks of the querent, read from its position in the hexagram (1 is the hidden beginning, 3 is the exposed threshold, 5 is the ruling line, 6 is past the peak) and from whether the line is yin or yang. This is the meaning behind the image, so a consuming agent does not have to invent one.
Example response
{
  "seed": "user123-question1",
  "hexagram": {
    "number": 1,
    "symbol": "䷀",
    "chinese": "乾",
    "english": "The Creative",
    "pinyin": "Qián",
    "binary": "111111",
    "upperTrigram": "Heaven",
    "lowerTrigram": "Heaven",
    "judgment": "Pure creative force is available and it runs from origin to completion without obstruction, so the situation rewards initiative that stays correct and does not slacken. Success here is built by sustained effort held to a straight line, not by a single burst.",
    "image": "Heaven above heaven: the same motion repeated without pause and without fatigue. Renew your own strength on your own schedule rather than waiting to be driven by circumstances.",
    "interpretation": {
      "general": "This hexagram represents the primal power of creation and the energy of pure initiative.",
      "love": "A time of strong attraction and passionate connection. Take the initiative in expressing your feelings.",
      "career": "Exceptional opportunities for advancement and recognition. Your creative ideas are at their peak.",
      "decision": "The time is right for bold action. Trust your instincts and move forward with confidence.",
      "advice": "Be like the heavens: consistent, powerful, and untiring. Make yourself strong through steady effort."
    },
    "changingLines": [
      {
        "position": 1,
        "text": "The dragon is still hidden below the surface, so it does not act.",
        "meaning": "The first line is the beginning, still underground and unrecognized. Strength is present but untested, and showing it now invites resistance it cannot yet survive. Stay hidden and build."
      }
    ]
  },
  "lines": [
    7,
    8
  ],
  "changingLinePositions": [
    3,
    5
  ],
  "resultingHexagram": {
    "number": 1,
    "symbol": "䷀",
    "chinese": "乾",
    "english": "The Creative",
    "pinyin": "Qián",
    "binary": "111111",
    "upperTrigram": "Heaven",
    "lowerTrigram": "Heaven",
    "judgment": "Pure creative force is available and it runs from origin to completion without obstruction, so the situation rewards initiative that stays correct and does not slacken. Success here is built by sustained effort held to a straight line, not by a single burst.",
    "image": "Heaven above heaven: the same motion repeated without pause and without fatigue. Renew your own strength on your own schedule rather than waiting to be driven by circumstances.",
    "interpretation": {
      "general": "This hexagram represents the primal power of creation and the energy of pure initiative.",
      "love": "A time of strong attraction and passionate connection. Take the initiative in expressing your feelings.",
      "career": "Exceptional opportunities for advancement and recognition. Your creative ideas are at their peak.",
      "decision": "The time is right for bold action. Trust your instincts and move forward with confidence.",
      "advice": "Be like the heavens: consistent, powerful, and untiring. Make yourself strong through steady effort."
    },
    "changingLines": [
      {
        "position": 1,
        "text": "The dragon is still hidden below the surface, so it does not act.",
        "meaning": "The first line is the beginning, still underground and unrecognized. Strength is present but untested, and showing it now invites resistance it cannot yet survive. Stay hidden and build."
      }
    ]
  }
}

Try it

Not sent

List all 8 trigrams - Bagua trigram catalog API

GET /api/v2/iching/trigrams

Retrieve all 8 I-Ching trigrams (bagua), the fundamental building blocks of hexagrams. Each trigram consists of three lines and represents a primal force of nature: Heaven (Qian), Earth (Kun), Thunder (Zhen), Wind (Xun), Water (Kan), Fire (Li), Mountain (Gen), and Lake (Dui). Understanding trigrams is essential for interpreting hexagram meanings, as each hexagram combines an upper and lower trigram.

Parameters

ParameterTypeDescription
lang querystring enumResponse language (BCP 47). Supported: en, tr, de, es, hi, pt, fr, ru, zh-Hans, zh-Hant. Defaults to en. Coverage varies by domain, and a field with no translation in the requested language returns English. Default en.
curl
curl "https://roxyapi.com/api/v2/iching/trigrams" \
  -H "X-API-Key: YOUR_KEY"

Response fields

FieldTypeDescription
total requirednumberTotal number of I-Ching trigrams (always 8).
trigrams requiredarray of objectAll 8 trigrams (bagua) with basic details.
trigrams[].number requirednumberTrigram number (1-8)
trigrams[].symbol requiredstringUnicode trigram symbol
trigrams[].chinese requiredstringChinese name
trigrams[].english requiredstringEnglish name
trigrams[].pinyin requiredstringPinyin romanization
trigrams[].binary requiredstringBinary representation (1=Yang solid, 0=Yin broken)
trigrams[].attribute requiredstringCore attribute/quality
Example response
{
  "total": 8,
  "trigrams": [
    {
      "number": 1,
      "symbol": "☰",
      "chinese": "乾",
      "english": "Heaven",
      "pinyin": "Qián",
      "binary": "111",
      "attribute": "Creative"
    }
  ]
}

Try it

Not sent

Get trigram by number or name - Bagua trigram detail API

GET /api/v2/iching/trigrams/{id}

Retrieve a specific I-Ching trigram by its number (1-8) or English name (Heaven, Earth, Thunder, Wind, Water, Fire, Mountain, Lake). Returns complete trigram information including Chinese name, pinyin, element associations, core attributes, and symbolic meaning. Use this to understand the component trigrams of any hexagram.

Parameters

ParameterTypeDescription
id required pathstringTrigram number (1-8) or English name (Heaven, Earth, Thunder, Wind, Water, Fire, Mountain, Lake).
lang querystring enumResponse language (BCP 47). Supported: en, tr, de, es, hi, pt, fr, ru, zh-Hans, zh-Hant. Defaults to en. Coverage varies by domain, and a field with no translation in the requested language returns English. Default en.
curl
curl "https://roxyapi.com/api/v2/iching/trigrams/Heaven" \
  -H "X-API-Key: YOUR_KEY"

Response fields

FieldTypeDescription
number requirednumberStable identifier for the trigram, 1 to 8. This is our lookup key, not a canonical sequence: the tradition has several orderings (King Wen, Fu Xi, Earlier and Later Heaven) and they disagree, so do not read ranking or precedence into it.
symbol requiredstringUnicode trigram symbol (three lines) for visual display in I-Ching interfaces and Bagua diagrams.
chinese requiredstringOriginal Chinese character name of the trigram in traditional script.
english requiredstringEnglish name representing the natural force or element this trigram embodies.
pinyin requiredstringPinyin romanization of the Chinese name with tone marks for correct pronunciation.
binary requiredstringThree-digit binary representation of the trigram lines (bottom to top). 1 = yang (solid), 0 = yin (broken).
element requiredstringFive element (Wu Xing) correspondence: Metal, Wood, Water, Fire, or Earth. Used in Chinese metaphysics and feng shui analysis.
attribute requiredstringCore attribute or quality this trigram represents in I-Ching philosophy (e.g., Creative, Receptive, Arousing).
familyMember requiredstringFamily archetype in the Bagua system. Each trigram corresponds to a family role (Father, Mother, First Son, First Daughter, etc.).
direction requiredstringCompass direction in the King Wen (Later Heaven) Bagua arrangement. Used in feng shui spatial analysis.
bodyPart requiredstringBody part associated with this trigram in traditional Chinese medicine and I-Ching body mapping.
animal requiredstringAnimal symbol associated with this trigram in classical I-Ching imagery and divination.
season requiredstringSeason or time period associated with this trigram in the annual cycle of Chinese cosmology.
quality requiredstringEnergetic quality describing the dynamic nature of this trigram (e.g., Strong, Devoted, Joyous, Gentle).
Show all fieldsShow fewer fields
FieldTypeDescription
meaning requiredstringConcise interpretation of the trigram covering its symbolic meaning, key associations, and guidance for understanding hexagrams containing this trigram.
Example response
{
  "number": 1,
  "symbol": "☰",
  "chinese": "乾",
  "english": "Heaven",
  "pinyin": "Qián",
  "binary": "111",
  "element": "Metal",
  "attribute": "Creative",
  "familyMember": "Father",
  "direction": "Northwest",
  "bodyPart": "Head",
  "animal": "Horse",
  "season": "Late Autumn",
  "quality": "Strong",
  "meaning": "The Creative force representing pure yang energy, strength, leadership, and the power of initiative."
}

Try it

Not sent