/v1/random
A random card
Live testen
10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.
Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.
API-Key holenCode-Snippets
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_..."}
)
Beispiel-Response
Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.
{
"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
}