🔮 Tarot API Demo

Test all Tarot API endpoints

API Configuration
Enter your API token to test the endpoints
GET /api/tarot/cards
Fetch all 78 tarot cards
GET /api/tarot/cards/{id_or_name}
Fetch a specific tarot card by ID or name
POST /api/tarot/draw
Draw random tarot cards with optional shuffle seed
API Usage Examples
Copy these examples to use in your applications

cURL Examples:

# Get all cards

curl "https://your-domain.com/api/tarot/cards?token=YOUR_TOKEN"

# Get specific card

curl "https://your-domain.com/api/tarot/cards/0?token=YOUR_TOKEN"

# Draw 3 cards

curl -X POST "https://your-domain.com/api/tarot/draw?token=YOUR_TOKEN" \

-H "Content-Type: application/json" \

-d '{"count": 3, "shuffle_seed": 12345}'

JavaScript Examples:

// Get all cards

const response = await fetch('/api/tarot/cards?token=YOUR_TOKEN');

const data = await response.json();

// Draw cards

const response = await fetch('/api/tarot/draw?token=YOUR_TOKEN', {

method: 'POST',

headers: { 'Content-Type': 'application/json' },

body: JSON.stringify({ count: 3, shuffle_seed: 12345 })

});