Μετάβαση στο περιεχόμενο
GET /v1/random

A random card

Δοκιμάστε το ζωντανά

10 δωρεάν κλήσεις την ημέρα — χωρίς εγγραφή, χωρίς κλειδί API. Μέσω του gateway του oanor.

Προσαρμοσμένες κεφαλίδες (προαιρετικά)
api.oanor.com/yugioh-api

Δουλεύει. Πάρε ένα κλειδί API και χρησιμοποίησέ το στο έργο σου.

Λάβετε ένα κλειδί API

Αποσπάσματα κώδικα

curl "https://api.oanor.com/yugioh-api/v1/random" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/yugioh-api/v1/random", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/yugioh-api/v1/random");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
    "https://api.oanor.com/yugioh-api/v1/random",
    headers={"x-oanor-key": "oanor_test_..."}
)

Παράδειγμα απόκρισης

Πραγματική απόκριση αυτού του endpoint, από τον τελευταίο έλεγχο υγείας.

{
    "data": {
        "card": {
            "id": 93078761,
            "atk": null,
            "ban": null,
            "def": null,
            "name": "Diced Dice",
            "race": "Quick-Play",
            "rank": null,
            "sets": [
                {
                    "code": "MP21-EN146",
                    "name": "2021 Tin of Ancient Battles",
                    "price": "0.83",
                    "rarity": "Common"
                },
                {
                    "code": "ROTD-EN067",
                    "name": "Rise of the Duelist",
                    "price": "1.42",
                    "rarity": "Common"
                }
            ],
            "type": "Spell Card",
            "level": null,
            "scale": null,
            "images": [
                {
                    "id": 93078761,
                    "url": "https://images.ygoprodeck.com/images/cards/93078761.jpg",
                    "small": "https://images.ygoprodeck.com/images/cards_small/93078761.jpg",
                    "cropped": "https://images.ygoprodeck.com/images/cards_cropped/93078761.jpg"
                }
            ],
            "prices": {
                "ebay": "0.99",
                "amazon": "0.25",
                "tcgplayer": "0.10",
                "cardmarket": "0.04"
            },
            "archetype": null,
            "attribute": null,
            "frame_type": "spell",
            "link_value": null,
            "description": "Roll a six-sided die, and if you roll a 1 or 6, add 1 card from your Deck to your hand that requires a die roll. If you roll a number other than 1 or 6, roll it again, and apply the appropriate effect.\r\n● 1 or 6: Return this card to the hand.\r\n● 2, 3, 4, or 5: Place this card on top of the Deck.\r\nYou can only activate 1 \"Diced Dice\" per turn.",
            "link_markers": null
        }
    },
    "meta": {
        "timestamp": "2026-06-01T00:04:06.540Z",
        "request_id": "e3dccdf1-bc95-48e1-b83a-498aacba6db0"
    },
    "status": "ok",
    "message": "Random card retrieved",
    "success": true
}