Naar de inhoud
GET /v1/draw

Draw cards

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/cards-api

Het werkt. Haal een API-key op en gebruik hem in je project.

Verkrijg een API-sleutel

Codefragmenten

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_..."}
)

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste health check.

{
    "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
}