Hi, I am Rosie. I can show you a live reading, or get readings onto your site or app today.
Yes or no question API for oracle apps
Let your users ask a question and get an answer back: a Yes, No or Maybe from one tarot card, a spread cast for the question, an I Ching casting, or a KP horary chart judged for the moment it was asked. One key, every method, with Remote MCP tools for AI agents and widgets for sites with no code.
Question-and-answer is the core loop of every oracle app, tarot chatbot, coaching tool and creator site: someone asks, the platform answers, and they come back with the next question. This page maps each kind of question to the call that answers it, shows how to keep one honest answer per question, and links each call to its reference. For the full tarot catalog start with the Tarot API guide; for the I Ching, the I Ching API guide.
Put a question box on your site with the tarot spread component, which answers yes or no or casts a spread, or cast the I Ching with the hexagram component. Two lines of HTML, shown in Ask without writing code.
Which call answers which question?
| Your user asks | Call | MCP tool | What comes back |
|---|---|---|---|
| A yes or no question | POST /tarot/yes-no | post_tarot_yes_no | Yes, No or Maybe, its strength, the card and why |
| An open question about the past, present and future | POST /tarot/spreads/three-card | post_tarot_spreads_three_card | Three cards read in position, plus a summary |
| A question about love | POST /tarot/spreads/love | post_tarot_spreads_love | Five cards: you, the other person, the relationship, the challenge and the outcome |
| A question about work | POST /tarot/spreads/career | post_tarot_spreads_career | Seven cards on a SWOT frame, with advice and an outcome |
| A deep question | POST /tarot/spreads/celtic-cross | post_tarot_spreads_celtic_cross | Ten positions from the situation to the outcome |
| A question in your own format | POST /tarot/spreads/custom | post_tarot_spreads_custom | One to ten positions you name and describe |
| A question for the Book of Changes | GET /iching/cast | get_iching_cast | A hexagram, its changing lines and the hexagram it moves into |
| A question judged by Vedic astrology | POST /vedic-astrology/kp/horary | post_vedic_astrology_kp_horary | A KP horary chart from a number 1 to 249 and the moment of the question |
Every tarot call takes question and echoes it back, so a saved or shared reading carries what was asked. Every call takes ?lang= for the reading in your user's language.
Ask a yes or no question
Get your API key, then send the question:
curl -s -X POST "https://roxyapi.com/api/v2/tarot/yes-no" \
-H "X-API-Key: $ROXY_API_KEY" \
-H "Content-Type: application/json" \
-d '{"question": "Should I accept the job offer?"}'The answer is drawn from one card:
answer:Yesfor an upright card,Nofor a reversed one. The Hanged Man, the Wheel of Fortune, Temperance, the Two of Swords and the Four of Swords answerMaybeeither way: each signals a pause or a turn still in motion.strength:Strongwhen the card is from the Major Arcana,Qualifiedfrom the Minor Arcana. Show it beside the answer: "a qualified no" reads very differently from "a strong no".card: the card drawn, with its name, arcana, keywords and animageUrlfrom our original deck, recoloured to your brand.interpretation: why the card answers the way it does, ready to show.
answer and strength stay in English so your code can compare them. With ?lang=es or any other language, answerLocalized and strengthLocalized carry the words your user reads. The full response, with a live example: yes no tarot API.
Ask an open question with a spread
Not every question has a yes or no answer. "What should I know about my new business?" deserves a spread. Send the same question field to a spread and each card is read in its position:
curl -s -X POST "https://roxyapi.com/api/v2/tarot/spreads/three-card" \
-H "X-API-Key: $ROXY_API_KEY" \
-H "Content-Type: application/json" \
-d '{"question": "Will my bakery do well this year?"}'positions holds each card with its interpretation for that position, and summary reads the cards together. The custom spread returns the positions you defined, each with its card, and no summary. The tarot report takes the same question and prints it on a branded PDF for your client.
Cast the I Ching for a question
The I Ching answers a question the user holds in mind while the coins are thrown. GET /iching/cast takes no question text: pass the question through seed so the same question returns the same casting.
curl -s "https://roxyapi.com/api/v2/iching/cast?seed=user-42:9f2c" \
-H "X-API-Key: $ROXY_API_KEY"hexagram: the primary hexagram, withjudgment,imageandinterpretationsplit intogeneral,love,career,decisionandadvice. Show the area that matches the question.linesandchangingLinePositions: the six lines thrown, and which of them are changing.resultingHexagram: where the situation is heading once the changing lines turn. A casting with no changing lines has none.
The book has its own rule about asking again. Hexagram 4 reads: "Answer the first honest question; a question repeated three times to force a different answer earns no answer at all."
Judge a question by KP horary
KP (Krishnamurti Paddhati) horary needs no birth details. The person asking picks a number from 1 to 249 while holding the question, and the chart is cast for the moment and place the question is judged:
curl -s -X POST "https://roxyapi.com/api/v2/vedic-astrology/kp/horary" \
-H "X-API-Key: $ROXY_API_KEY" \
-H "Content-Type: application/json" \
-d '{"horaryNumber": 108, "date": "2026-12-03", "time": "14:30:00", "latitude": 51.5074, "longitude": -0.1278, "timezone": "Europe/London"}'The number sets the ascendant; the twelve cusps each carry their starLord and subLord, the planets come from the real sky at that moment, and rulingPlanets and significators show which grahas confirm the chart. In KP practice the sub lord of the cusp the question concerns decides whether the matter is promised. Add ?focus=finance for money questions and houseThemes names each house in that light.
Resolve the place with GET /location/search and send its coordinates and IANA timezone; never ask your user for coordinates. For the ruling planets alone, at the moment a question arrives, use POST /vedic-astrology/kp/ruling-planets (post_vedic_astrology_kp_ruling_planets). More in the KP astrology guide.
Keep one honest answer per question
Without a seed, every call is a fresh draw, which is what a "draw again" button wants. Most question apps want the opposite: the same person asking the same question gets the same answer, so asking again cannot shop for a better one.
The seed alone decides the draw, so build it from your user and the question:
async function questionSeed(userId, question) {
const text = question.trim().toLowerCase();
const bytes = await crypto.subtle.digest('SHA-256', new TextEncoder().encode(text));
const hash = [...new Uint8Array(bytes).slice(0, 4)].map((b) => b.toString(16).padStart(2, '0')).join('');
return `${userId}:${hash}`;
}
const seed = await questionSeed('user-42', 'Should I accept the job offer?');
const res = await fetch('https://roxyapi.com/api/v2/tarot/yes-no', {
method: 'POST',
headers: { 'X-API-Key': process.env.ROXY_API_KEY, 'Content-Type': 'application/json' },
body: JSON.stringify({ question: 'Should I accept the job offer?', seed }),
});
const { answer, strength, card } = await res.json();The same seed works on every tarot call and on the I Ching cast. Add the date to the seed for an answer that may change tomorrow, or leave it out for one that never changes. Every seeded response echoes seed, so a stored answer can be reproduced exactly.
Let an AI agent answer questions
An AI chatbot can call these as tools over Remote MCP: the tarot tools at https://roxyapi.com/mcp/tarot, the I Ching cast at https://roxyapi.com/mcp/iching and KP horary at https://roxyapi.com/mcp/vedic-astrology, each tool named in the table above. The agent picks the method that fits the question, passes it through, and answers from the reading instead of inventing one. Setup for Claude, ChatGPT, Cursor and other clients: MCP guide. To show the cards or the hexagram beside the reply, render the tool result with the UI components.
Ask without writing code
Paste the component and it renders the question box, sends the question and shows the answer with its card. spread picks the reading: yes-no, three-card, love, career or celtic-cross.
<script src="https://cdn.jsdelivr.net/npm/@roxyapi/ui@latest/dist/cdn/roxy-ui.js" defer></script>
<roxy-tarot-spread spread="yes-no" publishable-key="pk_live_YOUR_KEY"></roxy-tarot-spread>For the I Ching, the hexagram component shows a Cast button and draws the hexagram, its changing lines and the reading for each life area:
<roxy-hexagram data-endpoint="iching/cast" method="GET" publishable-key="pk_live_YOUR_KEY"></roxy-hexagram>Mint a publishable key in your account, list your site on it, and both paste into Squarespace, Wix, WordPress, Shopify or any HTML block. Themes, brand colours and language: widgets guide. To try the tarot widget first, open it in the widget builder.
FAQ
Is there a yes or no tarot API?
Yes. POST /tarot/yes-no takes a question and answers Yes, No or Maybe from one tarot card, with a strength, the card drawn and an interpretation of why. Five cards always answer Maybe: the Hanged Man, the Wheel of Fortune, Temperance, the Two of Swords and the Four of Swords.
Does the question change the answer?
The question is echoed back with the reading, and the draw itself comes from seed. To give each question its own fixed answer, build the seed from your user id and a hash of the question. Without a seed every call is a fresh draw.
Can I ask the I Ching a question by API?
Yes. Call GET /iching/cast while your user holds the question, and pass a seed built from the question so asking again returns the same hexagram. The interpretation has a decision area written for exactly this.
Can a question be answered without birth details?
Yes. Tarot, the I Ching and KP horary all answer without a birth chart. KP horary needs only a number from 1 to 249 and the time and place the question is judged.
Can an AI chatbot answer questions with these?
Yes. Every call on this page is a Remote MCP tool, so an agent in Claude, ChatGPT or your own chat UI can pick the method that fits the question and answer from a real reading.
What to build next
- Tarot API guide: the daily card, every spread and the card catalog.
- I Ching API guide: hexagrams, trigrams and the daily casting.
- KP astrology guide: cusps, significators and ruling planets.
- Tarot card API with images: the cards in your brand colours.
- Widgets: question boxes on any site with no code.