/api/astro/tarot/deck/1 क्रेडिटटैरो डेक संदर्भ
पूरा डेक, और सभी स्प्रेड, संदर्भ डेटा के रूप में। सभी अठहत्तर कार्ड — बाईस मेजर आर्काना और चौदह-चौदह कार्डों के चार सूट — हर कार्ड के साथ उसका सूट, तत्व, संख्या, और सीधे व उल्टे, दोनों रूपों के कीवर्ड। साथ में हर स्प्रेड, उसकी स्थितियों के लेबल के साथ; `spread` में क्या भेजा जा सकता है, यह जानने का यही एक तरीका है। यह इसलिए है कि क्लाइंट निकाले गए कार्ड को दिखाने के लिए डेक की अपनी अलग प्रति न रखे, जो समय के साथ इससे अलग हो जाए।
https://api.occultapi.com/api/astro/tarot/deck/ऑथेंटिकेशन
अपनी कुंजी X-API-Key हेडर में भेजें। कुंजी सिर्फ़ सर्वर पर रखने की चीज़ है — इसे कभी ब्राउज़र के JavaScript या मोबाइल ऐप में न डालें।
X-API-Key: yt_live_a1b2c3d4_…
Content-Type: application/jsonअनुरोध के फ़ील्ड
| फ़ील्ड | टाइप | ज़रूरी | टिप्पणी |
|---|---|---|---|
| arcana | string | वैकल्पिक | सूची छोटी करें। बाईस मेजर आर्काना अक्सर अलग से चाहिए होते हैं — कुछ रीडर केवल इन्हीं से काम करते हैं। bothmajorminor |
| suit | string | वैकल्पिक | केवल एक सूट लौटाया जाता है। arcana 'major' हो तो यह अनदेखा होता है। allWandsCupsSwordsPentacles |
उदाहरण अनुरोध
curl -X POST https://api.occultapi.com/api/astro/tarot/deck/ \
-H "X-API-Key: $OCCULT_API_KEY" \
-H "Content-Type: application/json" \
-d '{"arcana":"both","suit":"all"}'उत्तर
{
"_truncated": true,
"_note": "Response shortened for the catalogue.",
"preview": "{\"data\": {\"deck\": \"Rider-Waite-Smith\", \"arcana\": \"both\", \"suit\": \"all\", \"count\": 78, \"deck_size\": 78, \"suits\": [{\"suit\": \"Wands\", \"element\": \"fire\", \"covers\": \"action, ambition, creativity, drive\"}, {\"suit\": \"Cups\", \"element\": \"water\", \"covers\": \"emotion, relationship, intuition, the inner life\"}, {\"suit\": \"Swords\", \"element\": \"air\", \"covers\": \"thought, conflict, truth, communication\"}, {\"suit\": \"Pentacles\", \"element\": \"earth\", \"covers\": \"work, money, the body, the material world\"}], \"ranks\": [\"Ace\", \"Two\", \"Three\", \"Four\", \"Five\", \"Six\", \"Seven\", \"Eight\", \"Nine\", \"Ten\", \"Page\", \"Knight\", \"Queen\", \"King\"], \"cards\": [{\"id\": 0, \"name\": \"The Fool\", \"arcana\": \"major\", \"suit\": null, \"rank\": null, \"number\": 0, \"element\": null, \"upright\": \"beginnings, innocence, spontaneity, a leap taken\", \"reversed\": \"naivety, recklessness, a risk not thought through\"}, {\"id\": 1, \"name\": \"The Magician\", \"arcana\": \"major\", \"suit\": null, \"rank\": null, \"number\": 1, \"element\": null, \"upright\": \"manifestation, resourcefulness, power, focused will\", \"reversed\": \"manipulation, untapped talent, scattered effort\"}, {\"id\": 2, \"name\": \"The High Priestess\", \"arcana\": \"major\", \"suit\": null, \"rank\": null, \"number\": 2, \"element\": null, \"upright\": \"intuition, mystery, the inner voice, patience\", \"reversed\": \"secrets withheld, disconnection from instinct\"}, {\"id\": 3, \"name\": \"The Empress\", \"arcana\": \"major\", \"suit\": null, \"rank\": null, \"number\": 3, \"element\": null, \"upright\": \"abundance, nurturing, fertility, creation\", \"reversed\": \"dependence, smothering, creative block\"}, {\"id\": 4, \"name\": \"The Emperor\", \"arcana\": \"major\", \"suit\": null, \"rank\": null, \"number\": 4, \"element\": null, \"upright\": \"authority, structure, control, established order\", \"reversed\": \"domination, rigidity, authority misused\"}, {\"id\": 5, \"name\": \"The Hierophant\", \"arcana\": \"major\", \"suit\": null, \"rank\": null, \"number\": 5, \"element\": null, \"upright\": \"tradition, institutions, guidance, orthodoxy\", \"reversed\": \"rebellion, dogma questioned, going your own way\"}, {\"id\": 6, \"name\": \"The Lovers\", \"arcana\": \"major\", \"suit\": null, \"rank\": null, \"number\": 6, \"element\": null, \"upright\": \"union, choice, alignment of values\", \"reversed\": \"disharmony, misalignment, a choice avoided\"}, {\"id\": 7, \"name\": \"The Chariot\", \"arcana\": \"major\", \"suit\": null, \"rank\": null, \"number\": 7, \"element\": null, \"upright\": \"determination, momentum, willpower, control held\", \"reversed\": \"lack of direction, aggression, momentum lost\"}, {\"id\": 8, \"name\": \"Strength\", \"arcana\": \"major\", \"suit\": null, \"rank\": null, \"number\": 8, \"element\": null, \"upright\": \"courage, patience, gentle power, self-mastery\", \"reversed\": \"self-doubt, force misapplied, inner weakness\"}, {\"id\": 9, \"name\": \"The Hermit\", \"arcana\": \"major\", \"suit\": null, \"rank\": null, \"number\": 9, \"element\": null, \"upright\": \"introspection, solitude, the search, inner guidance\", \"reversed\": \"isolation, withdrawal, refusing counsel\"}, {\"id\": 10, \"name\": \"Wheel of Fortune\", \"arcana\": \"major\", \"suit\": null, \"rank\": null, \"number\": 10, \"element\": null, \"upright\": \"luck, cycles, a turning point, fate moving\", \"reversed\": \"bad luck, resistance to change, a cycle repeating\"}, {\"id\": 11, \"name\": \"Justice\", \"arcana\": \"major\", \"suit\": null, \"rank\": null, \"number\": 11, \"element\": null, \"upright\": \"fairness, truth, cause and effect, accountability\", \"reversed\": \"unfairness, dishonesty, consequences dodged\"}, {\"id\": 12, \"name\": \"The Hanged Man\", \"arcana\": \"major\", \"suit\": null, \"rank\": null, \"number\": 12, \"element\": null, \"upright\": \"pause, surrender, a new perspective, suspension\", \"reversed\": \"stalling, indecision, delay without purpose\"}, {\"id\": 13, \"name\": \"Death\", \"arcana\": \"major\", \"suit\": null, \"rank\": null, \"number\": 13, \"element\": null, \"upright\": \"endings, transformation, transition, what must go\", \"reversed\": \"resistance to change, stagnation, holding on\"}, {\"id\": 14, \"name\": \"Temperance\", \"arcana\": \"major\", \"suit\": null, \"rank\": null, \"number\": 14, \"element\": null, \"upright\": \"b"
}ऊपर वाले अनुरोध से ही की गई असली कॉल का उत्तर। नतीजे data के अंदर हैं।
त्रुटियाँ
कुंजी और क्रेडिट की जाँच से आई त्रुटियाँ { "error": "…", "message": "<code>", "is_error": true } रूप में आती हैं। लोगों को error दिखाएँ और कोड में message देखकर फ़ैसला करें। पूरी सूची त्रुटि संदर्भ में है।