Chinese astrology
AvailableI-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
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
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.
numbernumbernamestringcharactersstringglossstringsummarystringlinesarray of numberupper_trigramobjectlower_trigramobjectimagestringnotestring
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.
Related endpoints
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.


