Skip to content
96Astro API

Chinese astrology

Available

I-Ching Hexagram API

One of the 64 hexagrams by King Wen number (name, characters, trigrams, lines and our own summary), or the list of all 64.

  • POST /v1/chinese/i-ching-hexagram
  • 1 credit
Request
curl https://api.96astroapi.com/v1/chinese/i-ching-hexagram \  -H "Authorization: Bearer $ASTRO_API_KEY" \  -H "Content-Type: application/json" \  -d '{
      "number": 11
    }'

Overview

One of the 64 hexagrams by King Wen number (name, characters, trigrams, lines and our own summary), or the list of all 64.

Call it with POST /v1/chinese/i-ching-hexagram. Input: specific input. Output: JSON, as a direct response. Each successful call costs 1 credit.

  • POST /v1/chinese/i-ching-hexagram
  • 1 credit
  • Specific input

Try it

Runs the real calculation, free and without a key, a few times a minute. For more, and for AI readings, get a free sandbox key.

Response

Ready when you are

Press Run it to see the live response here.

Example response

Fields in dataInferred from the example response: a guide to the shape, not a contract.

  • numbernumber
  • namestring
  • charactersstring
  • glossstring
  • summarystring
  • linesarray of number
  • upper_trigramobject
  • lower_trigramobject
  • imagestring
  • notestring
200Example response

Captured from the live engine with a sandbox key (so credits_used is 0) and trimmed: long arrays keep their first items and image data is shortened.

Loading the example…

Request schema and every field: the Chinese astrology reference.

FAQ

I-Ching Hexagram API: common questions

4answers

Ask the team
01What does the I-Ching Hexagram API return?

One of the 64 hexagrams by King Wen number (name, characters, trigrams, lines and our own summary), or the list of all 64. The response's data object includes number, name, characters, gloss, summary, lines, upper_trigram and lower_trigram. See the reference for an example response.

02What input does I-Ching Hexagram need?

Specific input.

03How much does a I-Ching Hexagram call cost?

1 credit per successful call; a failed call is not charged. Plans and top-ups are on the pricing page.

04Can I try it before paying?

Yes. Every account gets sandbox keys and trial credits, so you can call it from your own code before choosing a plan.

Send us feedback

What is it about?