← Spel

Snabbdragning

GET /cards/quickdraw

Create a ny deck and immediately draw kort in one request. Perfekt för quick kortspel prototyping.

Parametrar

count valfri standard: 5

Number of cards to draw

Exempelförfrågningar

Grundläggande användning
curl "https://nordapi.ee/api/v1/cards/quickdraw?count=5"

Livesvar

{
  "data": {
    "cards": [
      {
        "code": "AH",
        "image": "https://deckofcardsapi.com/static/img/AH.png",
        "suit": "HEARTS",
        "value": "ACE"
      },
      {
        "code": "7C",
        "image": "https://deckofcardsapi.com/static/img/7C.png",
        "suit": "CLUBS",
        "value": "7"
      },
      {
        "code": "0C",
        "image": "https://deckofcardsapi.com/static/img/0C.png",
        "suit": "CLUBS",
        "value": "10"
      },
      {
        "code": "KS",
        "image": "https://deckofcardsapi.com/static/img/KS.png",
        "suit": "SPADES",
        "value": "KING"
      },
      {
        "code": "KD",
        "image": "https://deckofcardsapi.com/static/img/KD.png",
        "suit": "DIAMONDS",
        "value": "KING"
      }
    ],
    "deck_id": "qkvwap1tqouz",
    "remaining": 47
  },
  "success": true
}