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

Draw cards

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

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

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

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

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

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

curl "https://api.oanor.com/cards-api/v1/draw" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/cards-api/v1/draw", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/cards-api/v1/draw");
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/cards-api/v1/draw",
    headers={"x-oanor-key": "oanor_test_..."}
)

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

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

{
    "data": {
        "cards": [
            {
                "svg": "https://deckofcardsapi.com/static/img/0H.svg",
                "code": "0H",
                "suit": "HEARTS",
                "image": "https://deckofcardsapi.com/static/img/0H.png",
                "value": "10"
            },
            {
                "svg": "https://deckofcardsapi.com/static/img/AC.svg",
                "code": "AC",
                "suit": "CLUBS",
                "image": "https://deckofcardsapi.com/static/img/AC.png",
                "value": "ACE"
            },
            {
                "svg": "https://deckofcardsapi.com/static/img/6S.svg",
                "code": "6S",
                "suit": "SPADES",
                "image": "https://deckofcardsapi.com/static/img/6S.png",
                "value": "6"
            },
            {
                "svg": "https://deckofcardsapi.com/static/img/8S.svg",
                "code": "8S",
                "suit": "SPADES",
                "image": "https://deckofcardsapi.com/static/img/8S.png",
                "value": "8"
            },
            {
                "svg": "https://deckofcardsapi.com/static/img/KH.svg",
                "code": "KH",
                "suit": "HEARTS",
                "image": "https://deckofcardsapi.com/static/img/KH.png",
                "value": "KING"
            }
        ],
        "count": 5,
        "deck_id": "omkxczyahuao",
        "remaining": 47
    },
    "meta": {
        "timestamp": "2026-05-31T14:57:46.303Z",
        "request_id": "6ce63238-8e31-42cc-8c4a-135483393b67"
    },
    "status": "ok",
    "message": "Cards drawn",
    "success": true
}