← 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": "6C",
        "image": "https://deckofcardsapi.com/static/img/6C.png",
        "suit": "CLUBS",
        "value": "6"
      },
      {
        "code": "0D",
        "image": "https://deckofcardsapi.com/static/img/0D.png",
        "suit": "DIAMONDS",
        "value": "10"
      },
      {
        "code": "KC",
        "image": "https://deckofcardsapi.com/static/img/KC.png",
        "suit": "CLUBS",
        "value": "KING"
      },
      {
        "code": "8C",
        "image": "https://deckofcardsapi.com/static/img/8C.png",
        "suit": "CLUBS",
        "value": "8"
      },
      {
        "code": "3H",
        "image": "https://deckofcardsapi.com/static/img/3H.png",
        "suit": "HEARTS",
        "value": "3"
      }
    ],
    "deck_id": "78rro552zh2d",
    "remaining": 47
  },
  "success": true
}